mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 14:47:49 +08:00
bdae0904c4
* [ports] Update openssl-unix to 1.1.1c * [ports] Update openssl-unix to 1.1.1d * [ports] openssl-unix platform 'AMD64' is called 'x86_64' on Linux * [ports] fix openssl platform * [ports] openssl-windows update openssl to 1.1.1d * [ports] Fix openssl post build * [ports] openssl add EnableUWPSupport.patch Reference: https://github.com/openssl/openssl/pull/8917 https://github.com/openssl/openssl/pull/9440 * [ports] openssl-uwp update openssl to 1.1.1d * Updated support for OpenSSL v1.1 With OpenSSL v1.1 we need an additional flag for ACE * update to 12.0 and change to vcpkg_configure_make * remove msys line * remove custom cmakelists * use --without-readline on linux * Update CONTROL Fix version * fix portfile * add all possible libpq features * create vcpkg_get_build_depends * create vcpkg_read_dependent_port_info * add vcpkg_write_port_info * fix a few bugs * libpq first succesful x86 build with core features. (files still must be moved) * always write the variable * Fix separate make and install execution error issue. * trigger CI system. * add openssl and win_bison win_flex patch * add configuration dependent patches * add bonjour as a dependency on macosx * apply patches and configure features * more patches to fix the windows build * more install fixes * remove unnecessary code * bit of code cleanup * remove unrelated files * remove unrelated function call. function was removed with last commit * removed hardcoded platform * fix patch * build only the interface libraries and nothing more * forgot to remove tool ecpg from install * seperate minimal install patch from normal install patch and introduce client feature * fix x86 Platform variable being x86 and not Win32 as required by the generated project * make linux build work * make more linux work * openssl return version number directly without calling openssl (should probably be done differently) * fix some more path and platform identification * comments to reduce install. currently libpq installs static and shared libraries and some tools on linux * patch arm * fix platform detection logic * make libpq osx buildable * Rename debug import library after build. (So that we don't affect external CMake users.) * revert debug naming and install a wrapper instead. * fix gdal regression due to name change * fix cutelyst regression due to qt5-base wrapper (why was it not using the target in the first place?) * correct wrapper install path * correct the arm patch. * trying to fix static gdal build * gdal still needs more work * update version of openssl in libpq openssl patch * nmap fix openssl * qt5 fix openssl * gdal fix openssl * librtmp migrate to openssl 1.1.1 * fail in patch since what is intended is not going to work in openssl 1.1.1 * fix static yara build * freedtds deactivate openssl feature until freetds decides to upgrade to 1.1 * fix libwebsockets cmakelists * fix the patch so that the generated targets also include crypt32 * xmlsec add threads dependency * bump control since I am unable to reproduce the regression * add pthread to openssl detection logic * fix freetds linkage missing crypt32 and fix the cmake checks. * fix the openssl wrapper to add the threads library * fix libmysql regression * add threads to openssl libraries. * upgrade libssh to 0.9 * fix nmap regression * fix mosquitto regression * fix openssl wrapper to make libarchive work * fix quickfix * changed patch a bit * improve freetds patch * fix case in librtmp * update control * bump control * fix case * make jasper a dependency of qt5-imageformats to fix flaky CI build. * add jasper libraries explicitly * jasper depends on freeglut so add it as a dependency. turbo_jpeg is also a dependency but that should already be handled in qt5-base * more glut names * bump control for macosx ci retry * fix slikenet regression * fix linebreak in qt5-base * update baseline * Update ci.baseline.txt those ports are not supported on UWP * [libevent] add dependency on libevent[threads] to openssl feature * [pdal,freerdp] Update CI baseline to fail * fix static pdal build * fix freerdp on linux * trying to revert some changes * revert changes in build make * revert x264 version bump Co-authored-by: Force Charlie <6904176+fcharlie@users.noreply.github.com> Co-authored-by: Johnny Willemsen <jwillemsen@remedy.nl> Co-authored-by: Lennart Trunk <lennart.trunk@outlook.de> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
176 lines
6.9 KiB
Diff
176 lines
6.9 KiB
Diff
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
|
|
index 3c4299d264..99fcb1f713 100644
|
|
--- a/Configurations/10-main.conf
|
|
+++ b/Configurations/10-main.conf
|
|
@@ -1287,7 +1287,7 @@ my %targets = (
|
|
},
|
|
"VC-WIN64I" => {
|
|
inherit_from => [ "VC-WIN64-common", asm("ia64_asm"),
|
|
- sub { $disabled{shared} ? () : "ia64_uplink" } ],
|
|
+ sub { $disabled{uplink} ? () : "ia64_uplink" } ],
|
|
AS => "ias",
|
|
ASFLAGS => "-d debug",
|
|
asoutflag => "-o ",
|
|
@@ -1299,7 +1299,7 @@ my %targets = (
|
|
},
|
|
"VC-WIN64A" => {
|
|
inherit_from => [ "VC-WIN64-common", asm("x86_64_asm"),
|
|
- sub { $disabled{shared} ? () : "x86_64_uplink" } ],
|
|
+ sub { $disabled{uplink} ? () : "x86_64_uplink" } ],
|
|
AS => sub { vc_win64a_info()->{AS} },
|
|
ASFLAGS => sub { vc_win64a_info()->{ASFLAGS} },
|
|
asoutflag => sub { vc_win64a_info()->{asoutflag} },
|
|
@@ -1312,7 +1312,7 @@ my %targets = (
|
|
},
|
|
"VC-WIN32" => {
|
|
inherit_from => [ "VC-noCE-common", asm("x86_asm"),
|
|
- sub { $disabled{shared} ? () : "uplink_common" } ],
|
|
+ sub { $disabled{uplink} ? () : "uplink_common" } ],
|
|
CFLAGS => add("/WX"),
|
|
AS => sub { vc_win32_info()->{AS} },
|
|
ASFLAGS => sub { vc_win32_info()->{ASFLAGS} },
|
|
@@ -1375,7 +1375,7 @@ my %targets = (
|
|
#### MinGW
|
|
"mingw" => {
|
|
inherit_from => [ "BASE_unix", asm("x86_asm"),
|
|
- sub { $disabled{shared} ? () : "x86_uplink" } ],
|
|
+ sub { $disabled{uplink} ? () : "x86_uplink" } ],
|
|
CC => "gcc",
|
|
CFLAGS => picker(default => "-Wall",
|
|
debug => "-g -O0",
|
|
diff --git a/Configurations/50-win-onecore.conf b/Configurations/50-win-onecore.conf
|
|
index d478f42b0f..e0fb70daca 100644
|
|
--- a/Configurations/50-win-onecore.conf
|
|
+++ b/Configurations/50-win-onecore.conf
|
|
@@ -1,3 +1,4 @@
|
|
+## -*- mode: perl; -*-
|
|
# Windows OneCore targets.
|
|
#
|
|
# OneCore is new API stability "contract" that transcends Desktop, IoT and
|
|
@@ -10,6 +11,25 @@
|
|
# TODO: extend error handling to use ETW based eventing
|
|
# (Or rework whole error messaging)
|
|
|
|
+my $UWP_info = {};
|
|
+sub UWP_info {
|
|
+ unless (%$UWP_info) {
|
|
+ my $SDKver = `powershell -Command \"& {\$(Get-Item \\\"hklm:\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\\").GetValue(\\\"CurrentVersion\\\")}\"`;
|
|
+ $SDKver =~ s|\R$||;
|
|
+ my @SDKver_split = split(/\./, $SDKver);
|
|
+ # SDK version older than 10.0.17763 don't support our ASM builds
|
|
+ if ($SDKver_split[0] < 10
|
|
+ || ($SDKver_split[0] == 10
|
|
+ && $SDKver_split[1] == 0
|
|
+ && $SDKver_split[2] < 17763)) {
|
|
+ $UWP_info->{disable} = [ 'asm' ];
|
|
+ } else {
|
|
+ $UWP_info->{disable} = [ ];
|
|
+ }
|
|
+ }
|
|
+ return $UWP_info;
|
|
+}
|
|
+
|
|
my %targets = (
|
|
"VC-WIN32-ONECORE" => {
|
|
inherit_from => [ "VC-WIN32" ],
|
|
@@ -61,4 +81,57 @@ my %targets = (
|
|
ex_libs => "onecore.lib",
|
|
multilib => "-arm64",
|
|
},
|
|
+
|
|
+ # Universal Windows Platform (UWP) App Support
|
|
+
|
|
+ # TODO
|
|
+ #
|
|
+ # The 'disable' attribute should have 'uplink'.
|
|
+ # however, these are checked in some 'inherit_from', which is processed
|
|
+ # very early, before the 'disable' attributes are seen.
|
|
+ # This is a problem that needs to be resolved in Configure first.
|
|
+ #
|
|
+ # But if you want to build library with Windows 10 Version 1809 SDK or
|
|
+ # earlier, the 'disable' attribute should also have 'asm'.
|
|
+
|
|
+ "VC-WIN32-UWP" => {
|
|
+ inherit_from => [ "VC-WIN32-ONECORE" ],
|
|
+ lflags => add("/APPCONTAINER"),
|
|
+ defines => add("WINAPI_FAMILY=WINAPI_FAMILY_APP",
|
|
+ "_WIN32_WINNT=0x0A00"),
|
|
+ dso_scheme => "",
|
|
+ disable => sub { [ 'ui-console', 'stdio', 'async', 'uplink',
|
|
+ @{ UWP_info()->{disable} } ] },
|
|
+ ex_libs => "WindowsApp.lib",
|
|
+ },
|
|
+ "VC-WIN64A-UWP" => {
|
|
+ inherit_from => [ "VC-WIN64A-ONECORE" ],
|
|
+ lflags => add("/APPCONTAINER"),
|
|
+ defines => add("WINAPI_FAMILY=WINAPI_FAMILY_APP",
|
|
+ "_WIN32_WINNT=0x0A00"),
|
|
+ dso_scheme => "",
|
|
+ disable => sub { [ 'ui-console', 'stdio', 'async', 'uplink',
|
|
+ @{ UWP_info()->{disable} } ] },
|
|
+ ex_libs => "WindowsApp.lib",
|
|
+ },
|
|
+ "VC-WIN32-ARM-UWP" => {
|
|
+ inherit_from => [ "VC-WIN32-ARM" ],
|
|
+ lflags => add("/APPCONTAINER"),
|
|
+ defines => add("WINAPI_FAMILY=WINAPI_FAMILY_APP",
|
|
+ "_WIN32_WINNT=0x0A00"),
|
|
+ dso_scheme => "",
|
|
+ disable => sub { [ 'ui-console', 'stdio', 'async', 'uplink',
|
|
+ @{ UWP_info()->{disable} } ] },
|
|
+ ex_libs => "WindowsApp.lib",
|
|
+ },
|
|
+ "VC-WIN64-ARM-UWP" => {
|
|
+ inherit_from => [ "VC-WIN64-ARM" ],
|
|
+ lflags => add("/APPCONTAINER"),
|
|
+ defines => add("WINAPI_FAMILY=WINAPI_FAMILY_APP",
|
|
+ "_WIN32_WINNT=0x0A00"),
|
|
+ dso_scheme => "",
|
|
+ disable => sub { [ 'ui-console', 'stdio', 'async', 'uplink',
|
|
+ @{ UWP_info()->{disable} } ] },
|
|
+ ex_libs => "WindowsApp.lib",
|
|
+ },
|
|
);
|
|
diff --git a/Configure b/Configure
|
|
index 5a699836f3..de45f1e299 100755
|
|
--- a/Configure
|
|
+++ b/Configure
|
|
@@ -1,4 +1,5 @@
|
|
#! /usr/bin/env perl
|
|
+#! /usr/bin/env perl
|
|
# -*- mode: perl; -*-
|
|
# Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
#
|
|
@@ -407,6 +408,7 @@ my @disablables = (
|
|
"ubsan",
|
|
"ui-console",
|
|
"unit-test",
|
|
+ "uplink",
|
|
"whirlpool",
|
|
"weak-ssl-ciphers",
|
|
"zlib",
|
|
@@ -479,7 +481,7 @@ my @disable_cascades = (
|
|
|
|
# Without position independent code, there can be no shared libraries or DSOs
|
|
"pic" => [ "shared" ],
|
|
- "shared" => [ "dynamic-engine" ],
|
|
+ "shared" => [ "dynamic-engine", "uplink" ],
|
|
"engine" => [ "afalgeng", "devcryptoeng" ],
|
|
|
|
# no-autoalginit is only useful when building non-shared
|
|
diff --git a/INSTALL b/INSTALL
|
|
index 2119cbae9e..ee54e8c215 100644
|
|
--- a/INSTALL
|
|
+++ b/INSTALL
|
|
@@ -560,6 +560,10 @@
|
|
likely to complement configuration command line with
|
|
suitable compiler-specific option.
|
|
|
|
+ no-uplink
|
|
+ Don't build support for UPLINK interface.
|
|
+
|
|
+
|
|
no-<prot>
|
|
Don't build support for negotiating the specified SSL/TLS
|
|
protocol (one of ssl, ssl3, tls, tls1, tls1_1, tls1_2,
|