2017-08-11 03:43:50 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO curl/curl
|
2020-12-11 02:17:16 +08:00
|
|
|
REF e052859759b34d0e05ce0f17244873e5cd7b457b #curl-7_74_0
|
|
|
|
SHA512 3dbbab00dda4f0e7d012fab358d2dd1362ff0c0f59c81f638fb547acba6f74a61c306906892447af3b18e8b0ebb93ebb8e0ac77e92247864bfa3a9c4ce7ea1d0
|
2017-08-11 03:43:50 +08:00
|
|
|
HEAD_REF master
|
2016-12-07 16:04:49 +08:00
|
|
|
PATCHES
|
2018-12-01 08:37:54 +08:00
|
|
|
0002_fix_uwp.patch
|
|
|
|
0004_nghttp2_staticlib.patch
|
2019-06-27 02:49:39 +08:00
|
|
|
0005_remove_imp_suffix.patch
|
2019-10-26 05:28:11 +08:00
|
|
|
0006_fix_tool_depends.patch
|
2020-01-07 07:09:13 +08:00
|
|
|
0007_disable_tool_export_curl_target.patch
|
2020-02-05 06:40:19 +08:00
|
|
|
0009_fix_openssl_config.patch
|
2020-04-17 04:31:08 +08:00
|
|
|
0010_fix_othertests_cmake.patch
|
2020-08-13 01:23:44 +08:00
|
|
|
0011_fix_static_build.patch
|
2020-12-23 15:19:50 +08:00
|
|
|
0012-fix-dependency-idn2.patch
|
2016-12-07 16:04:49 +08:00
|
|
|
)
|
|
|
|
|
2018-02-28 04:15:37 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CURL_STATICLIB)
|
|
|
|
|
2020-09-05 12:18:37 +08:00
|
|
|
# schannel will enable sspi, but sspi do not support uwp
|
2020-11-13 04:33:02 +08:00
|
|
|
foreach(feature "schannel" "sspi" "tool")
|
|
|
|
if(feature IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
|
|
|
|
message(FATAL_ERROR "Feature ${feature} is not supported on UWP.")
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2020-02-05 06:40:19 +08:00
|
|
|
|
|
|
|
if("sectransp" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
|
|
|
|
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
# Support HTTP2 TLS Download https://curl.haxx.se/ca/cacert.pem rename to curl-ca-bundle.crt, copy it to libcurl.dll location.
|
2020-09-05 12:18:37 +08:00
|
|
|
http2 USE_NGHTTP2
|
|
|
|
openssl CMAKE_USE_OPENSSL
|
|
|
|
mbedtls CMAKE_USE_MBEDTLS
|
|
|
|
ssh CMAKE_USE_LIBSSH2
|
|
|
|
tool BUILD_CURL_EXE
|
|
|
|
c-ares ENABLE_ARES
|
|
|
|
sspi CURL_WINDOWS_SSPI
|
|
|
|
brotli CURL_BROTLI
|
|
|
|
schannel CMAKE_USE_SCHANNEL
|
2020-02-05 06:40:19 +08:00
|
|
|
sectransp CMAKE_USE_SECTRANSP
|
2020-12-23 15:19:50 +08:00
|
|
|
idn2 CMAKE_USE_IDN2
|
2021-04-20 08:08:51 +08:00
|
|
|
|
2020-02-05 06:40:19 +08:00
|
|
|
INVERTED_FEATURES
|
|
|
|
non-http HTTP_ONLY
|
|
|
|
)
|
2018-01-24 04:11:15 +08:00
|
|
|
|
2019-05-27 07:53:41 +08:00
|
|
|
set(SECTRANSP_OPTIONS)
|
|
|
|
if("sectransp" IN_LIST FEATURES)
|
2020-02-05 06:40:19 +08:00
|
|
|
set(SECTRANSP_OPTIONS -DCURL_CA_PATH=none)
|
2019-07-08 14:11:01 +08:00
|
|
|
endif()
|
|
|
|
|
2018-02-28 04:15:37 +08:00
|
|
|
# UWP targets
|
2017-08-11 03:43:50 +08:00
|
|
|
set(UWP_OPTIONS)
|
2020-02-05 06:40:19 +08:00
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
2017-08-11 03:43:50 +08:00
|
|
|
set(UWP_OPTIONS
|
|
|
|
-DUSE_WIN32_LDAP=OFF
|
|
|
|
-DCURL_DISABLE_TELNET=ON
|
|
|
|
-DENABLE_IPV6=OFF
|
|
|
|
-DENABLE_UNIX_SOCKETS=OFF
|
2017-01-12 02:59:45 +08:00
|
|
|
)
|
|
|
|
endif()
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2021-04-20 08:08:51 +08:00
|
|
|
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()
|
|
|
|
|
2017-08-11 03:43:50 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-02-05 06:40:19 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2017-08-11 03:43:50 +08:00
|
|
|
${UWP_OPTIONS}
|
2021-04-20 08:08:51 +08:00
|
|
|
${ADDITIONAL_SCRIPTS}
|
|
|
|
${EXTRA_ARGS}
|
2019-05-27 07:53:41 +08:00
|
|
|
${SECTRANSP_OPTIONS}
|
2017-08-11 03:43:50 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DENABLE_MANUAL=OFF
|
|
|
|
-DCURL_STATICLIB=${CURL_STATICLIB}
|
2019-05-27 07:53:41 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON
|
2017-08-11 03:43:50 +08:00
|
|
|
-DENABLE_DEBUG=ON
|
2020-09-05 12:18:37 +08:00
|
|
|
-DCURL_CA_FALLBACK=ON
|
2021-04-20 08:08:51 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
${EXTRA_ARGS_DEBUG}
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
${EXTRA_ARGS_RELEASE}
|
2017-08-11 03:43:50 +08:00
|
|
|
)
|
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2020-02-05 06:40:19 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-04-09 14:53:10 +08:00
|
|
|
|
2020-02-05 06:40:19 +08:00
|
|
|
if ("tool" IN_LIST FEATURES)
|
2020-08-08 07:15:20 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES curl AUTO_CLEAN)
|
2018-02-28 04:15:37 +08:00
|
|
|
endif()
|
|
|
|
|
2020-02-05 06:40:19 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/CURL)
|
2019-06-27 02:49:39 +08:00
|
|
|
|
2020-02-05 06:40:19 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-05-13 23:57:55 +08:00
|
|
|
|
2020-11-13 04:33:02 +08:00
|
|
|
file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/curl-config DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/curl-config ${CURRENT_PACKAGES_DIR}/debug/bin/curl-config)
|
|
|
|
#Fix install path
|
|
|
|
file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/curl-config CURL_CONFIG)
|
|
|
|
string(REPLACE "${CURRENT_PACKAGES_DIR}" "${CURRENT_INSTALLED_DIR}" CURL_CONFIG "${CURL_CONFIG}")
|
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/curl-config "${CURL_CONFIG}")
|
|
|
|
|
2021-02-09 10:17:32 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_ANDROID)
|
2016-11-27 08:05:46 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
2017-08-11 03:43:50 +08:00
|
|
|
endif()
|
|
|
|
|
2019-06-27 02:49:39 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2020-07-07 04:23:44 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/curl/curl.h
|
|
|
|
"#ifdef CURL_STATICLIB"
|
|
|
|
"#if 1"
|
|
|
|
)
|
2017-08-11 03:43:50 +08:00
|
|
|
else()
|
2020-07-07 04:23:44 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/curl/curl.h
|
|
|
|
"#ifdef CURL_STATICLIB"
|
|
|
|
"#if 0"
|
|
|
|
)
|
2016-11-27 08:05:46 +08:00
|
|
|
endif()
|
|
|
|
|
2020-11-21 04:18:17 +08:00
|
|
|
# Fix the pkgconfig file for debug
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
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}/lib/zlib.lib" "-lzlibd")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libssl.lib" "-lssl")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libcrypto.lib" "-lcrypto")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/mbedtls.lib" "-lmbedtls")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/mbedx509.lib" "-lmbedx509")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/mbedcrypto.lib" "-lmbedcrypto")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/nghttp2.lib" "-lnghttp2")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libssh2.lib" "-lssh2")
|
2020-11-24 07:26:38 +08:00
|
|
|
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")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/brotlidec.lib" "-lbrotlidec")
|
2020-11-24 07:26:38 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/pthreadVC3d.lib" "-lpthreadVC3d")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " ${CURRENT_INSTALLED_DIR}/lib/pthreadVC3.lib" "")
|
2020-11-24 07:26:38 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " -loptimized" "")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc " -ldebug" "")
|
|
|
|
|
2020-11-21 04:18:17 +08:00
|
|
|
elseif(VCPKG_TARGET_IS_LINUX)
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "-lcurl" "-lcurl-d")
|
2020-11-21 04:18:17 +08:00
|
|
|
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")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libcurl.pc "${CURRENT_INSTALLED_DIR}/debug/lib/libcares.a" "-lcares")
|
2020-11-21 04:18:17 +08:00
|
|
|
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)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Fix the pkgconfig file for release
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
#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/zlib.lib" "-lzlib")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libssl.lib" "-lssl")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libcrypto.lib" "-lcrypto")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/mbedtls.lib" "-lmbedtls")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/mbedx509.lib" "-lmbedx509")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/mbedcrypto.lib" "-lmbedcrypto")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/nghttp2.lib" "-lnghttp2")
|
|
|
|
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")
|
2020-11-24 07:26:38 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/brotlicommon.lib" "-lbrotlicommon")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/brotlidec.lib" "-lbrotlidec")
|
2020-11-24 07:26:38 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/pthreadVC3.lib" "-lpthreadVC3")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " ${CURRENT_INSTALLED_DIR}/debug/lib/pthreadVC3d.lib" "")
|
2020-11-24 07:26:38 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " -loptimized" "")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc " -ldebug" "")
|
2020-11-21 04:18:17 +08:00
|
|
|
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")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libcrypto.a" "-lcrypto")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libmbedtls.a" "-lmbedtls")
|
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libmbedx509.a" "-lmbedx509")
|
|
|
|
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")
|
2021-04-20 08:08:51 +08:00
|
|
|
vcpkg_replace_string(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libcurl.pc "${CURRENT_INSTALLED_DIR}/lib/libcares.a" "-lcares")
|
2020-11-21 04:18:17 +08:00
|
|
|
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()
|
2021-04-20 08:08:51 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2020-11-21 04:18:17 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
elseif(VCPKG_TARGET_IS_LINUX)
|
|
|
|
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread dl c)
|
2021-04-20 08:08:51 +08:00
|
|
|
elseif(VCPKG_TARGET_IS_ANDROID)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2020-11-21 04:18:17 +08:00
|
|
|
endif()
|
|
|
|
|
2020-02-05 06:40:19 +08:00
|
|
|
file(INSTALL ${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2020-12-23 15:19:50 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|