aboutsummaryrefslogtreecommitdiff
path: root/ports/curl/portfile.cmake
diff options
context:
space:
mode:
authorDale Stammen <dalestam@microsoft.com>2017-01-11 10:59:45 -0800
committerDale Stammen <dalestam@microsoft.com>2017-01-11 10:59:45 -0800
commit00679b66e3d9fd49afd19a88418426fb50c39b08 (patch)
tree47b5be91926d9682d15890dbbc461f275735fcca /ports/curl/portfile.cmake
parent3eccec7231da879a18eb16a318e4309e2f921843 (diff)
downloadvcpkg-00679b66e3d9fd49afd19a88418426fb50c39b08.tar.gz
vcpkg-00679b66e3d9fd49afd19a88418426fb50c39b08.zip
added support for building uwp versions
Diffstat (limited to 'ports/curl/portfile.cmake')
-rw-r--r--ports/curl/portfile.cmake46
1 files changed, 36 insertions, 10 deletions
diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake
index 01c76718b..e8fc658c0 100644
--- a/ports/curl/portfile.cmake
+++ b/ports/curl/portfile.cmake
@@ -13,22 +13,48 @@ vcpkg_apply_patches(
${CMAKE_CURRENT_LIST_DIR}/0001_cmake.patch
)
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES
+ ${CMAKE_CURRENT_LIST_DIR}/0002_fix_uwp.patch
+)
+endif()
+
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
SET(CURL_STATICLIB OFF)
else()
SET(CURL_STATICLIB ON)
endif()
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- OPTIONS
- -DBUILD_TESTING=OFF
- -DBUILD_CURL_EXE=OFF
- -DENABLE_MANUAL=OFF
- -DCURL_STATICLIB=${CURL_STATICLIB}
- OPTIONS_DEBUG
- -DENABLE_DEBUG=ON
-)
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ -DBUILD_CURL_EXE=OFF
+ -DENABLE_MANUAL=OFF
+ -DUSE_WIN32_LDAP=OFF
+ -DCURL_DISABLE_TELNET=ON
+ -DENABLE_IPV6=OFF
+ -DENABLE_UNIX_SOCKETS=OFF
+ -DCMAKE_USE_OPENSSL=ON
+ -DCURL_STATICLIB=${CURL_STATICLIB}
+ OPTIONS_DEBUG
+ -DENABLE_DEBUG=ON
+ )
+else()
+ vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ -DBUILD_CURL_EXE=OFF
+ -DENABLE_MANUAL=OFF
+ -DCURL_STATICLIB=${CURL_STATICLIB}
+ OPTIONS_DEBUG
+ -DENABLE_DEBUG=ON
+ )
+endif()
vcpkg_install_cmake()