Configurations/50-win-onecore.conf: add Windows 10 OneCore targets.
[openssl.git] / Configurations / 50-win-onecore.conf
1 # Windows OneCore targets.
2 #
3 # OneCore is new API stability "contract" that transends Desktop, IoT and
4 # Mobile[?] Windows editions. It's a set up "umbrella" libraries that
5 # export subset of Win32 API that are common to all Windows 10 devices.
6 #
7 # TODO: drop onecore_downlevel.lib.
8
9 my %targets = (
10     "VC-WIN32-ONECORE" => {
11         inherit_from    => [ "VC-WIN32" ],
12         # /NODEFAULTLIB:kernel32.lib is needed, because MSVCRT.LIB has
13         # hidden reference to kernel32.lib, but we don't actually want
14         # it in "onecore" build.
15         lflags          => add("/NODEFAULTLIB:kernel32.lib"),
16         ex_libs         => "onecore.lib onecore_downlevel.lib",
17     },
18     "VC-WIN64A-ONECORE" => {
19         inherit_from    => [ "VC-WIN64A" ],
20         lflags          => add("/NODEFAULTLIB:kernel32.lib"),
21         ex_libs         => "onecore.lib onecore_downlevel.lib",
22     },
23
24     # Windows on ARM targets. ARM compilers are additional components in
25     # VS2017, i.e. they are not installed by default. And when installed,
26     # there are no "ARM Tool Command Prompt"s on Start menu, you have
27     # to locate vcvarsall.bat and act accordingly. VC-WIN32-ARM has
28     # received limited testing with evp_test.exe on Windows 10 IoT Core,
29     # but not VC-WIN64-ARM, no hardware... In other words they are not
30     # actually supported...
31     #
32     # Another thing to keep in mind [in cross-compilation scenario such
33     # as this one] is that target's file system has nothing to do with
34     # compilation system's one. This means that you're are likely to use
35     # --prefix and --openssldir with target-specific values. 'nmake install'
36     # step is effectively meaningless in cross-compilation case, though
37     # it might be useful to 'nmake install DESTDIR=S:\ome\where' where you
38     # can point Visual Studio to when compiling custom application code.
39
40     "VC-WIN32-ARM" => {
41         inherit_from    => [ "VC-noCE-common" ],
42         defines         => add("_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE"),
43         bn_ops          => "BN_LLONG RC4_CHAR EXPORT_VAR_AS_FN",
44         lflags          => add("/NODEFAULTLIB:kernel32.lib"),
45         ex_libs         => "onecore.lib onecore_downlevel.lib",
46         multilib        => "-arm",
47     },
48     "VC-WIN64-ARM" => {
49         inherit_from    => [ "VC-noCE-common" ],
50         defines         => add("_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE"),
51         bn_ops          => "SIXTY_FOUR_BIT RC4_CHAR EXPORT_VAR_AS_FN",
52         lflags          => add("/NODEFAULTLIB:kernel32.lib"),
53         ex_libs         => "onecore.lib onecore_downlevel.lib",
54         multilib        => "-arm64",
55     },
56 );