2018-11-15 03:16:07 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-05-01 08:56:33 +08:00
|
|
|
vcpkg_fail_port_install(MESSAGE "${PORT} does not currently support UWP" ON_TARGET "UWP")
|
2018-11-15 03:16:07 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO civetweb/civetweb
|
2020-05-01 08:56:33 +08:00
|
|
|
REF 4b440a339979852d5a51fb11a822952712231c23 # v1.12
|
|
|
|
SHA512 02b77cb7140eaab9c7d34461ec2e5ea3354601e369be424a48f4734acbd4f77a450b969ed7a0c0940fcac1900c3d78bae26e29dd6a396189862075781917f428
|
2018-11-15 03:16:07 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-03-28 10:58:37 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
ssl CIVETWEB_ENABLE_SSL
|
|
|
|
)
|
|
|
|
|
2018-11-15 03:16:07 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DCIVETWEB_BUILD_TESTING=OFF
|
|
|
|
-DCIVETWEB_ENABLE_ASAN=OFF
|
|
|
|
-DCIVETWEB_ENABLE_CXX=ON
|
|
|
|
-DCIVETWEB_ENABLE_IPV6=ON
|
|
|
|
-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF
|
2020-03-28 10:58:37 +08:00
|
|
|
-DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF
|
2019-07-08 14:00:33 +08:00
|
|
|
-DCIVETWEB_ENABLE_WEBSOCKETS=ON
|
2020-03-28 10:58:37 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-11-15 03:16:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-07-08 14:00:33 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/civetweb)
|
2018-11-15 03:16:07 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-05-01 08:56:33 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2019-07-08 14:00:33 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|