Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
ee8fe0c
Fix Android build
ahmedalnuaimi Jan 18, 2021
5425e02
Add versioning support
ahmedalnuaimi Jan 18, 2021
d0ca64e
Disable building tests for cURL
ahmedalnuaimi Jan 18, 2021
04664bf
Fix patch file
ahmedalnuaimi Jan 19, 2021
299bd52
Fix patch file
ahmedalnuaimi Jan 19, 2021
5fbee0e
Fix patch file
ahmedalnuaimi Jan 19, 2021
9e3bb21
Fix versioning
ahmedalnuaimi Jan 19, 2021
7eace24
Fix patch file
ahmedalnuaimi Jan 19, 2021
188b641
[aws-sdk-cpp] Update patch
Jan 19, 2021
7da2a3d
update baseline
Jan 19, 2021
bf92d4b
Fix dependencies
ahmedalnuaimi Jan 19, 2021
d2477a8
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Jan 20, 2021
a36d031
Simplify Android configuration
ahmedalnuaimi Jan 20, 2021
3b9e298
Simplify Android configuration
ahmedalnuaimi Jan 20, 2021
df97ea4
Merge remote-tracking branch 'origin/master' into fix_aws_sdk_android
ahmedalnuaimi Jan 21, 2021
83e3b38
Simplify Android configuration
ahmedalnuaimi Jan 21, 2021
089e338
Bump port version
ahmedalnuaimi Jan 21, 2021
d8b6e24
Bump version files
ahmedalnuaimi Jan 21, 2021
01a4833
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Jan 21, 2021
1af87c6
Merge remote-tracking branch 'upstream/master' into fix-versions
strega-nil Jan 21, 2021
42a3417
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Jan 22, 2021
f93e994
Remove redundant file
ahmedalnuaimi Jan 22, 2021
310e5b6
Merge remote-tracking branch 'ahmedyarub/fix_aws_sdk_android' into fi…
ahmedalnuaimi Jan 22, 2021
2396d6d
Bump port version
ahmedalnuaimi Jan 22, 2021
9e30404
Fix version files
ahmedalnuaimi Jan 22, 2021
e28610d
Do not build curl, zlib and OpenSSL
ahmedalnuaimi Jan 22, 2021
f9a2d2f
Merge branch 'fix_aws_sdk_android' of https://github.com/ahmedyarub/v…
ahmedalnuaimi Jan 23, 2021
fa59817
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Jan 25, 2021
246c4ba
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Jan 29, 2021
2e8ade4
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 11, 2021
90af7ef
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 15, 2021
32ed0be
Typo de pkgconfig script
ahmedalnuaimi Feb 15, 2021
9d18e10
Fix cURL build for Android
ahmedalnuaimi Feb 15, 2021
3f12a4b
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 15, 2021
91b091f
Add required flags
ahmedalnuaimi Feb 16, 2021
41fc10d
Revert macro change
ahmedalnuaimi Feb 16, 2021
fea8318
Fix curl build for other platforms
ahmedalnuaimi Feb 16, 2021
fc2aee2
Fix curl build for other platforms
ahmedalnuaimi Feb 16, 2021
1609b8c
[vcpkg baseline][gsoap] Update to 2.8.111
Feb 18, 2021
540cf12
Update versions
Feb 18, 2021
9cfb3cf
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 18, 2021
c910d44
Merge remote-tracking branch 'NancyLi1013/dev/NancyLi/update-gsoap' i…
ahmedalnuaimi Feb 18, 2021
948358c
[ktx/otl] Update download hash
Feb 19, 2021
88919c7
update version record
Feb 19, 2021
44da795
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 19, 2021
9a38170
Merge remote-tracking branch 'JackBoosY/dev/jack/fix_baseline_2021021…
ahmedalnuaimi Feb 19, 2021
e2d51d0
Merge branch 'master' into fix_aws_sdk_android
JackBoosY Feb 19, 2021
8275274
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 19, 2021
5ed75ef
Merge remote-tracking branch 'ahmedyarub/fix_aws_sdk_android' into fi…
ahmedalnuaimi Feb 19, 2021
85b31c0
Fix curl build for other platforms
ahmedalnuaimi Feb 19, 2021
cebea69
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 20, 2021
3cc3054
Update ports/aws-sdk-cpp/portfile.cmake
Feb 20, 2021
9b1b630
Update ports/aws-sdk-cpp/portfile.cmake
Feb 20, 2021
71f0de6
Merge branch 'fix_aws_sdk_android' of https://github.com/ahmedyarub/v…
ahmedalnuaimi Feb 20, 2021
5be6571
Remove FingGit
ahmedalnuaimi Feb 20, 2021
014c15f
Fix configuration step
ahmedalnuaimi Feb 20, 2021
7814c39
Bump cURL port version
ahmedalnuaimi Feb 21, 2021
63a3177
Bump cURL port version
ahmedalnuaimi Feb 21, 2021
c0cace6
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 21, 2021
9796701
Bump AWS SDK C++ version
ahmedalnuaimi Feb 22, 2021
4bc50aa
Bump AWS SDK C++ version
ahmedalnuaimi Feb 22, 2021
9f179c8
Bump AWS SDK C++ version
ahmedalnuaimi Feb 22, 2021
77ebcf9
Bump AWS SDK C++ version
ahmedalnuaimi Feb 22, 2021
aca2faa
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 22, 2021
a556a63
Update ports/curl/CONTROL
JackBoosY Feb 23, 2021
2862e08
Update ports/curl/portfile.cmake
JackBoosY Feb 23, 2021
693a8a2
Merge branch 'master' of https://github.com/microsoft/vcpkg into fix_…
Feb 23, 2021
fba2905
update baseline record
Feb 23, 2021
8cd36b0
Merge branch 'fix_aws_sdk_android' of https://github.com/ahmedyarub/v…
ahmedalnuaimi Feb 23, 2021
2d879c7
Fix Git
ahmedalnuaimi Feb 23, 2021
f439a8e
update version record
Feb 24, 2021
618b10d
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Feb 24, 2021
58a4f5c
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 2, 2021
c549053
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 3, 2021
a41dd02
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 8, 2021
63e84df
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 11, 2021
da308b8
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 11, 2021
3fff51d
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 12, 2021
b1e1d21
Typo
ahmedalnuaimi Mar 14, 2021
301296b
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 15, 2021
ecb1bb6
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 16, 2021
8579397
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 18, 2021
8860e2d
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 18, 2021
f385f09
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 19, 2021
cc88407
Fix cross-platform builds of OpenSSL on MinGW/Windows
ahmedalnuaimi Mar 22, 2021
7225fcb
Update version
ahmedalnuaimi Mar 22, 2021
b524c04
Fix version
ahmedalnuaimi Mar 22, 2021
1613218
update doc
Mar 22, 2021
608deba
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 22, 2021
2e6d3c1
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 23, 2021
63baa26
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 23, 2021
45b1ffe
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 24, 2021
14a5013
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 25, 2021
7663db6
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 25, 2021
4f90fd5
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 25, 2021
4750f1c
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 26, 2021
e5dd615
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 26, 2021
8672920
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 27, 2021
cddccfe
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 29, 2021
84f4d17
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 29, 2021
abc2531
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 31, 2021
db96f95
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Mar 31, 2021
d3fdb4e
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 1, 2021
5ef0724
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 1, 2021
3ae30ad
Update ports/aws-sdk-cpp/portfile.cmake
Apr 2, 2021
4da5389
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 2, 2021
571c939
Merge remote-tracking branch 'ahmedyarub/fix_aws_sdk_android' into fi…
ahmedalnuaimi Apr 2, 2021
c709948
Update ports/aws-sdk-cpp/portfile.cmake
Apr 3, 2021
345f5f8
Add debug libraries to curl for Android
ahmedalnuaimi Apr 3, 2021
eee6866
Update aws-sdk-cpp, curl, and OpenSSL versions
ahmedalnuaimi Apr 3, 2021
ca2b626
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 7, 2021
4253f39
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 7, 2021
793d48f
Fix libssh after latest update
ahmedalnuaimi Apr 8, 2021
e0a655b
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 8, 2021
9517f15
Update libssh version
ahmedalnuaimi Apr 8, 2021
2841f8d
Update libssh version
ahmedalnuaimi Apr 8, 2021
2743cbf
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 9, 2021
9f61792
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 9, 2021
79de6f3
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 10, 2021
d6e01fc
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 12, 2021
d7abe17
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 13, 2021
974dc3b
Update ports/libssh/portfile.cmake
Apr 13, 2021
81979a3
Update ports/curl/portfile.cmake
Apr 13, 2021
d9f1f26
Update ports/libssh/portfile.cmake
strega-nil Apr 13, 2021
d1b0d34
Apply suggestions from code review
strega-nil Apr 13, 2021
dc088a4
Merge branch 'fix_aws_sdk_android' of https://github.com/ahmedyarub/v…
ahmedalnuaimi Apr 14, 2021
a658b2d
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 14, 2021
9df34f1
Use correct variables for OpenSSL libraries when building curl for An…
ahmedalnuaimi Apr 14, 2021
75de9a9
Bump zlib's port version
ahmedalnuaimi Apr 14, 2021
b331242
Update zlib, libssh, and curl versions
ahmedalnuaimi Apr 14, 2021
1d90b57
[vcpkg baseline][popsift] Fix vcpkg_find_cuda.cmake path
Apr 14, 2021
92523c0
update version record
Apr 14, 2021
f50e467
Merge remote-tracking branch 'JackBoosY/dev/jack/fix-baseline-2020041…
ahmedalnuaimi Apr 14, 2021
1170050
Merge branch 'master' of https://github.com/Microsoft/vcpkg into fix_…
ahmedalnuaimi Apr 15, 2021
c9554a2
Update versions/o-/openssl.json
Apr 15, 2021
5795463
Merge branch 'fix_aws_sdk_android' of https://github.com/ahmedyarub/v…
ahmedalnuaimi Apr 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/maintainers/vcpkg_common_definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_common_definitions.md).

This file defines the following variabls which are commonly needed or used in portfiles:
This file defines the following variables which are commonly needed or used in portfiles:

```cmake
VCPKG_TARGET_IS_<target> with <target> being one of the following: WINDOWS, UWP, LINUX, OSX, ANDROID, FREEBSD, OPENBSD. only defined if <target>
Expand Down
2 changes: 1 addition & 1 deletion docs/maintainers/vcpkg_fixup_pkgconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/vcpkg_fixup_pkgconfig.md).

Fix common paths in *.pc files and make everything relativ to $(prefix)
Fix common paths in *.pc files and make everything relative to $(prefix)

## Usage
```cmake
Expand Down
16 changes: 16 additions & 0 deletions ports/aws-sdk-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,23 @@ set(BUILD_ONLY core)

include(${CMAKE_CURRENT_LIST_DIR}/compute_build_only.cmake)

set(EXTRA_ARGS)
if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
set(rpath "@loader_path")
elseif (VCPKG_TARGET_IS_ANDROID)
set(EXTRA_ARGS "-DTARGET_ARCH=ANDROID"
"-DGIT_EXECUTABLE=--invalid-git-executable--"
"-DGIT_FOUND=TRUE"
"-DNDK_DIR=$ENV{ANDROID_NDK_HOME}"
"-DANDROID_BUILD_ZLIB=FALSE"
"-DANDROID_BUILD_CURL=FALSE"
"-DANDROID_BUILD_OPENSSL=FALSE"
"-DENABLE_HW_OPTIMIZATION=OFF"
"-DCURL_HAS_H2_EXITCODE=0"
"-DCURL_HAS_H2_EXITCODE__TRYRUN_OUTPUT=\"\""
"-DCURL_HAS_TLS_PROXY_EXITCODE=0"
"-DCURL_HAS_TLS_PROXY_EXITCODE__TRYRUN_OUTPUT=\"\""
)
else()
set(rpath "\$ORIGIN")
endif()
Expand All @@ -27,6 +42,7 @@ vcpkg_configure_cmake(
DISABLE_PARALLEL_CONFIGURE
PREFER_NINJA
OPTIONS
${EXTRA_ARGS}
-DENABLE_UNITY_BUILD=ON
-DENABLE_TESTING=OFF
-DFORCE_SHARED_CRT=${FORCE_SHARED_CRT}
Expand Down
2 changes: 1 addition & 1 deletion ports/aws-sdk-cpp/vcpkg.in.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-sdk-cpp",
"version": "1.8.126",
"port-version": 7,
"port-version": 8,
"description": "AWS SDK for C++",
"homepage": "https://github.com/aws/aws-sdk-cpp",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion ports/aws-sdk-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-sdk-cpp",
"version": "1.8.126",
"port-version": 7,
"port-version": 8,
"description": "AWS SDK for C++",
"homepage": "https://github.com/aws/aws-sdk-cpp",
"dependencies": [
Expand Down
39 changes: 27 additions & 12 deletions ports/curl/0009_fix_openssl_config.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a13333..5a7ece0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -361,6 +361,7 @@ if(CMAKE_USE_SECTRANSP)
list(APPEND CURL_LIBS "${COREFOUNDATION_FRAMEWORK}" "${SECURITY_FRAMEWORK}")
endif()

+set(USE_OPENSSL OFF)
if(CMAKE_USE_OPENSSL)
find_package(OpenSSL REQUIRED)
set(SSL_ENABLED ON)
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt (revision e052859759b34d0e05ce0f17244873e5cd7b457b)
+++ b/CMakeLists.txt (date 1617452756163)
@@ -383,14 +383,21 @@
endif()

if(CMAKE_USE_OPENSSL)
- find_package(OpenSSL REQUIRED)
+ if(ANDROID)
+ message(WARNING "Setting paths manually (instead of using pkg-config) since this is an android build" )
+
+ set(OPENSSL_LIBRARIES ${OPENSSL_LIBRARY} ${CRYPT_LIBRARY})
+ include_directories("${OPENSSL_INCLUDE}")
+ else()
+ find_package(OpenSSL REQUIRED)
+ endif()
set(SSL_ENABLED ON)
set(USE_OPENSSL ON)

# Depend on OpenSSL via imported targets if supported by the running
# version of CMake. This allows our dependents to get our dependencies
# transitively.
- if(NOT CMAKE_VERSION VERSION_LESS 3.4)
+ if(NOT CMAKE_VERSION VERSION_LESS 3.4 AND NOT ANDROID)
list(APPEND CURL_LIBS OpenSSL::SSL OpenSSL::Crypto)
else()
list(APPEND CURL_LIBS ${OPENSSL_LIBRARIES})
4 changes: 2 additions & 2 deletions ports/curl/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: curl
Port-Version: 3
Port-Version: 4
Version: 7.74.0
Build-Depends: zlib
Homepage: https://github.com/curl/curl
Expand Down Expand Up @@ -56,4 +56,4 @@ Description: brotli support (brotli)

Feature: idn2
Build-Depends: libidn2
Description: idn2 support (libidn2)
Description: idn2 support (libidn2)
16 changes: 16 additions & 0 deletions ports/curl/CurlAndroidCrossCompile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0.
#

SET( HAVE_GLIBC_STRERROR_R 1 CACHE STRING "Result from TRY_RUN" FORCE)
SET( HAVE_GLIBC_STRERROR_R__TRYRUN_OUTPUT "" CACHE STRING "Output from TRY_RUN" FORCE)
SET( HAVE_POSIX_STRERROR_R 0 CACHE STRING "Result from TRY_RUN" FORCE)
SET( HAVE_POSIX_STRERROR_R__TRYRUN_OUTPUT "" CACHE STRING "Output from TRY_RUN" FORCE)
SET( HAVE_POLL_FINE_EXITCODE 0 CACHE STRING "Result from TRY_RUN" FORCE )
SET( HAVE_POLL_FINE_EXITCODE__TRYRUN_OUTPUT "" CACHE STRING "Output from TRY_RUN" FORCE)
SET( CURL_HAS_H2_EXITCODE 0 CACHE STRING "Result from TRY_RUN" FORCE )
SET( CURL_HAS_H2_EXITCODE__TRYRUN_OUTPUT "" CACHE STRING "Output from TRY_RUN" FORCE)
SET( CURL_HAS_TLS_PROXY_EXITCODE 0 CACHE STRING "Result from TRY_RUN" FORCE )
SET( CURL_HAS_TLS_PROXY_EXITCODE__TRYRUN_OUTPUT "" CACHE STRING "Output from TRY_RUN" FORCE)
SET( OPENSSL_CRYPTO_LIBRARY crypto CACHE STRING "Set crypto" FORCE )
SET( OPENSSL_SSL_LIBRARY ssl CACHE STRING "Set ssl" FORCE )
48 changes: 36 additions & 12 deletions ports/curl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
schannel CMAKE_USE_SCHANNEL
sectransp CMAKE_USE_SECTRANSP
idn2 CMAKE_USE_IDN2

INVERTED_FEATURES
non-http HTTP_ONLY
)
Expand All @@ -64,18 +64,40 @@ if(VCPKG_TARGET_IS_UWP)
)
endif()

if(VCPKG_TARGET_IS_ANDROID)
set(ADDITIONAL_SCRIPTS -C "${CMAKE_CURRENT_LIST_DIR}/CurlAndroidCrossCompile.cmake")

set(EXTRA_ARGS -DOPENSSL_INCLUDE="${CURRENT_INSTALLED_DIR}/include")

set(EXTRA_ARGS_DEBUG
-DOPENSSL_LIBRARY="${CURRENT_INSTALLED_DIR}/debug/lib/libssl.so"
-DCRYPT_LIBRARY="${CURRENT_INSTALLED_DIR}/debug/lib/libcrypto.so"
)

set(EXTRA_ARGS_RELEASE
-DOPENSSL_LIBRARY="${CURRENT_INSTALLED_DIR}/lib/libssl.so"
-DCRYPT_LIBRARY="${CURRENT_INSTALLED_DIR}/lib/libcrypto.so"
)
endif()

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
${UWP_OPTIONS}
${ADDITIONAL_SCRIPTS}
${EXTRA_ARGS}
${SECTRANSP_OPTIONS}
-DBUILD_TESTING=OFF
-DENABLE_MANUAL=OFF
-DCURL_STATICLIB=${CURL_STATICLIB}
-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON
-DENABLE_DEBUG=ON
-DCURL_CA_FALLBACK=ON
OPTIONS_DEBUG
${EXTRA_ARGS_DEBUG}
OPTIONS_RELEASE
${EXTRA_ARGS_RELEASE}
)

vcpkg_install_cmake()
Expand Down Expand Up @@ -127,22 +149,22 @@ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libssh2.lib" "-lssh2")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/cares.lib" "-lcares")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/brotlicommon.lib" "-lbrotlicommon")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/brotlidec.lib" "-lbrotlidec")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/brotlidec.lib" "-lbrotlidec")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/pthreadVC3d.lib" "-lpthreadVC3d")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " ${CURRENT_INSTALLED_DIR}/lib/pthreadVC3.lib" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " ${CURRENT_INSTALLED_DIR}/lib/pthreadVC3.lib" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " -loptimized" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " -ldebug" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " -ldebug" "")

elseif(VCPKG_TARGET_IS_LINUX)
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "-lcurl" "-lcurl-d")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "-lcurl" "-lcurl-d")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libssl.a" "-lssl")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libcrypto.a" "-lcrypto")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libmbedtls.a" "-lmbedtls")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libmbedx509.a" "-lmbedx509")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libmbedcrypto.a" "-lmbedcrypto")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libnghttp2.a" "-lnghttp2")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libssh2.a" "-lssh2")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libcares.a" "-lcares")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libcares.a" "-lcares")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libz.a" "-lz")
endif()
file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
Expand All @@ -162,11 +184,11 @@ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libssh2.lib" "-lssh2")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/cares.lib" "-lcares")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/brotlicommon.lib" "-lbrotlicommon")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/brotlidec.lib" "-lbrotlidec")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/brotlidec.lib" "-lbrotlidec")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/pthreadVC3.lib" "-lpthreadVC3")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " ${CURRENT_INSTALLED_DIR}/debug/lib/pthreadVC3d.lib" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " ${CURRENT_INSTALLED_DIR}/debug/lib/pthreadVC3d.lib" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " -loptimized" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " -ldebug" "")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " -ldebug" "")
elseif(VCPKG_TARGET_IS_LINUX)
#vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "-lcurl" "-lcurl")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libssl.a" "-lssl")
Expand All @@ -176,15 +198,17 @@ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libmbedcrypto.a" "-lmbedcrypto")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libnghttp2.a" "-lnghttp2")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libssh2.a" "-lssh2")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libcares.a" "-lcares")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libcares.a" "-lcares")
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libz.a" "-lz")
endif()
file(COPY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc DESTINATION ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
endif()
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_fixup_pkgconfig()
elseif(VCPKG_TARGET_IS_LINUX)
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread dl c)
elseif(VCPKG_TARGET_IS_ANDROID)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(INSTALL ${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
Expand Down
12 changes: 12 additions & 0 deletions ports/libssh/0002-mingw_for_Android.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
--- a/src/CMakeLists.txt (revision 0cceefd49d4d397eb21bd36e314ac87739da51ff)
+++ b/src/CMakeLists.txt (date 1617870624653)
@@ -361,7 +361,7 @@
set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
endif (WITH_VISIBILITY_HIDDEN)

-if (MINGW)
+if (MINGW AND NOT ANDROID)
set_target_properties(ssh PROPERTIES LINK_FLAGS "-Wl,--enable-stdcall-fixup")
set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-D_POSIX_SOURCE")
endif ()
2 changes: 1 addition & 1 deletion ports/libssh/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: libssh
Version: 0.9.5
Port-Version: 2
Port-Version: 3
Homepage: https://www.libssh.org/
Build-Depends: libssh[core,mbedtls] (android)
Description: libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side
Expand Down
1 change: 1 addition & 0 deletions ports/libssh/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vcpkg_from_git(
SHA512 64e692a0bfa7f73585ea7b7b8b1d4c9a7f9be59565bfd4de32ca8cd9db121f87e7ad51f5c80269fbd99545af34dcf1894374ed8a6d6c1ac5f8601c026572ac18
PATCHES
0001-export-pkgconfig-file.patch
0002-mingw_for_Android.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down
1 change: 1 addition & 0 deletions ports/openssl/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: openssl
Version: 1.1.1j
Port-Version: 1
Homepage: https://www.openssl.org
Description: OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.
2 changes: 1 addition & 1 deletion ports/openssl/unix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if(BUILD_SHARED_LIBS)
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "iOS")
set(LIB_EXT dylib)
set(LIB_EXTS ${SHLIB_VERSION}.${LIB_EXT})
elseif(MINGW)
elseif(VCPKG_TARGET_IS_MINGW)
string(REPLACE "." "_" SHLIB_VERSION "${SHLIB_VERSION}")
set(BIN_EXT dll)
set(LIB_EXT dll.a)
Expand Down
21 changes: 21 additions & 0 deletions ports/zlib/0002-android-build-mingw.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt (date 1618364429263)
+++ b/CMakeLists.txt (date 1618364429263)
@@ -170,7 +170,7 @@
string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*"
"\\1" ZLIB_FULL_VERSION ${_zlib_h_contents})

-if(MINGW)
+if(MINGW AND NOT ANDROID)
# This gets us DLL resource information when compiling on MinGW.
if(NOT CMAKE_RC_COMPILER)
set(CMAKE_RC_COMPILER windres.exe)
@@ -186,7 +186,7 @@
if(BUILD_SHARED_LIBS)
set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
endif()
-endif(MINGW)
+endif(MINGW AND NOT ANDROID)

add_library(zlib ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL)
2 changes: 1 addition & 1 deletion ports/zlib/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: zlib
Version: 1.2.11
Port-Version: 9
Port-Version: 10
Homepage: https://www.zlib.net/
Description: A compression library
1 change: 1 addition & 0 deletions ports/zlib/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ vcpkg_extract_source_archive_ex(
"cmake_dont_build_more_than_needed.patch"
"0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch"
"add_debug_postfix_on_mingw.patch"
"0002-android-build-mingw.patch"
)

# This is generated during the cmake build
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/vcpkg_common_definitions.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[===[.md:
# vcpkg_common_definitions

This file defines the following variabls which are commonly needed or used in portfiles:
This file defines the following variables which are commonly needed or used in portfiles:

```cmake
VCPKG_TARGET_IS_<target> with <target> being one of the following: WINDOWS, UWP, LINUX, OSX, ANDROID, FREEBSD, OPENBSD. only defined if <target>
Expand Down
2 changes: 1 addition & 1 deletion scripts/cmake/vcpkg_fixup_pkgconfig.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[===[.md:
# vcpkg_fixup_pkgconfig

Fix common paths in *.pc files and make everything relativ to $(prefix)
Fix common paths in *.pc files and make everything relative to $(prefix)

## Usage
```cmake
Expand Down
5 changes: 5 additions & 0 deletions versions/a-/aws-sdk-cpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e1cf5cdb2c16125d532b8281d6901839f11a25f5",
"version": "1.8.126",
"port-version": 8
},
{
"git-tree": "f1baa5b35e752a0576d9d81d70d15b2c44a467db",
"version": "1.8.126",
Expand Down
Loading