2018-11-14 20:16:07 +01:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO civetweb/civetweb
|
2021-09-10 06:18:53 +02:00
|
|
|
REF eefb26f82b233268fc98577d265352720d477ba4 # v1.15
|
|
|
|
SHA512 5ce962e31b3c07b7110cbc645458dba9c0e26e693fbe3b4a7ffe8a28563827049a22fc5596a911fbcea4d88a9adbef3f82000ff61027ff4387f40e4a4045c26d
|
2018-11-14 20:16:07 +01:00
|
|
|
HEAD_REF master
|
2022-08-18 19:59:28 +02:00
|
|
|
PATCHES
|
|
|
|
disable_warnings.patch # cl will simply ignore the other invalid options.
|
2018-11-14 20:16:07 +01:00
|
|
|
)
|
|
|
|
|
2020-03-28 03:58:37 +01:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-07-20 12:24:58 -05:00
|
|
|
FEATURES
|
|
|
|
ssl CIVETWEB_ENABLE_SSL
|
2020-03-28 03:58:37 +01:00
|
|
|
)
|
|
|
|
|
2022-08-18 19:59:28 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-11-14 20:16:07 +01:00
|
|
|
OPTIONS
|
|
|
|
-DCIVETWEB_BUILD_TESTING=OFF
|
2020-12-18 21:07:41 +01:00
|
|
|
-DCIVETWEB_ENABLE_DEBUG_TOOLS=OFF
|
2018-11-14 20:16:07 +01:00
|
|
|
-DCIVETWEB_ENABLE_ASAN=OFF
|
|
|
|
-DCIVETWEB_ENABLE_CXX=ON
|
|
|
|
-DCIVETWEB_ENABLE_IPV6=ON
|
|
|
|
-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF
|
2020-03-28 03:58:37 +01:00
|
|
|
-DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF
|
2019-07-08 14:00:33 +08:00
|
|
|
-DCIVETWEB_ENABLE_WEBSOCKETS=ON
|
2022-08-18 19:59:28 +02:00
|
|
|
-DCIVETWEB_ALLOW_WARNINGS=ON
|
2020-03-28 03:58:37 +01:00
|
|
|
${FEATURE_OPTIONS}
|
2018-11-14 20:16:07 +01:00
|
|
|
)
|
|
|
|
|
2022-08-18 19:59:28 +02:00
|
|
|
vcpkg_cmake_install()
|
2018-11-14 20:16:07 +01:00
|
|
|
|
2022-08-18 19:59:28 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/civetweb)
|
2018-11-14 20:16:07 +01:00
|
|
|
|
2022-08-18 19:59:28 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2018-11-14 20:16:07 +01:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-08-18 19:59:28 +02: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()
|