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