2020-04-04 01:33:56 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cpp-netlib/url
|
2020-09-21 11:08:34 +08:00
|
|
|
REF v1.13.0
|
|
|
|
SHA512 187898f5c0d2919095b293c7fbb6757d7b1391c9c79ccc3467ffc8b76a10685fd91faf9e9b8b0c0c21d0a9aecb3a50d52f2eab52823e770fc10ecd6ed874a748
|
2020-06-19 07:27:17 +08:00
|
|
|
HEAD_REF main
|
2020-04-04 01:33:56 +08:00
|
|
|
)
|
|
|
|
|
2022-01-25 06:58:41 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-04-04 01:33:56 +08:00
|
|
|
OPTIONS
|
2020-04-04 23:40:13 +08:00
|
|
|
-Dskyr_BUILD_TESTS=OFF
|
|
|
|
-Dskyr_BUILD_DOCS=OFF
|
|
|
|
-Dskyr_BUILD_EXAMPLES=OFF
|
|
|
|
-Dskyr_WARNINGS_AS_ERRORS=OFF
|
2020-04-04 01:33:56 +08:00
|
|
|
)
|
|
|
|
|
2022-01-25 06:58:41 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-04-04 01:33:56 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-01-25 06:58:41 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/skyr-url)
|
|
|
|
|
2020-04-04 01:33:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-04-04 23:24:16 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-04-04 01:33:56 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-01-25 06:58:41 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|