2019-07-17 06:43:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cesanta/mongoose
|
2023-01-18 22:28:32 +01:00
|
|
|
REF 7.8
|
|
|
|
SHA512 6862d2db7eb424b9a4fe39a6de1c1ff992dbafe05796caab716dee484728dc5591473fb0e083a8cfdf3dddd04694be6d459f915471e708cfb0f693b705cddcc0
|
2019-07-17 06:43:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-01-18 21:17:59 +01:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-07-17 06:43:41 +08:00
|
|
|
|
2019-12-21 04:21:25 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2022-01-18 21:17:59 +01:00
|
|
|
FEATURES
|
|
|
|
ssl ENABLE_SSL
|
2019-12-21 04:21:25 +08:00
|
|
|
)
|
|
|
|
|
2022-01-18 21:17:59 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-12-21 04:21:25 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-07-17 06:43:41 +08:00
|
|
|
)
|
|
|
|
|
2022-01-18 21:17:59 +01:00
|
|
|
vcpkg_cmake_install()
|
2019-07-17 06:43:41 +08:00
|
|
|
|
2022-01-18 21:17:59 +01:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
|
2019-07-17 06:43:41 +08:00
|
|
|
|
2022-01-18 21:17:59 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-17 06:43:41 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-01-18 21:17:59 +01:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|