2023-05-24 04:00:34 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ada-url/ada
|
|
|
|
REF "v${VERSION}"
|
2024-08-31 23:08:32 -07:00
|
|
|
SHA512 74bad3f234dfe7b72e2057583e077e6a0f78f34b9c699751972d079b8027ef2dc34e6ef07c0dedeb923d8979f91c58a8a90473e69152c89e76baaa3659fa575b
|
2023-05-24 04:00:34 +08:00
|
|
|
HEAD_REF main
|
2023-11-29 06:56:08 +01:00
|
|
|
PATCHES
|
|
|
|
no-cpm.patch
|
2023-05-24 04:00:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
tools ADA_TOOLS
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DADA_BENCHMARKS=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2023-11-29 06:56:08 +01:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Python3=ON
|
2023-05-24 04:00:34 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2023-11-29 06:56:08 +01:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DADA_TOOLS=OFF
|
2023-05-24 04:00:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ada CONFIG_PATH "lib/cmake/ada")
|
|
|
|
|
|
|
|
if("tools" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES adaparse AUTO_CLEAN)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE" "${SOURCE_PATH}/LICENSE-MIT")
|