2021-09-16 04:26:33 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-07-10 04:59:37 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO kfrlib/kfr
|
2024-03-08 14:52:38 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 90ae299b1d3b9cc73de665f7c5ace757978b95d1546a4b00383a1a677ecfcd56698ea80e7bf7367e3f169238fff6391ee1f2a3558cfba7cc11c762cc3fbb3292
|
2020-07-10 04:59:37 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-09-16 04:26:33 +08:00
|
|
|
FEATURES
|
2023-01-24 16:41:53 +08:00
|
|
|
capi KFR_ENABLE_CAPI_BUILD
|
|
|
|
dft KFR_ENABLE_DFT
|
2020-07-10 04:59:37 +08:00
|
|
|
)
|
|
|
|
|
2021-09-16 04:26:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-07-10 04:59:37 +08:00
|
|
|
OPTIONS
|
|
|
|
-DENABLE_TESTS=OFF
|
2023-01-24 16:41:53 +08:00
|
|
|
-DENABLE_EXAMPLES=OFF
|
|
|
|
-DKFR_ENABLE_ASMTEST=OFF
|
|
|
|
-DKFR_REGENERATE_TESTS=OFF
|
2020-07-10 04:59:37 +08:00
|
|
|
-DKFR_EXTENDED_TESTS=OFF
|
2023-01-24 16:41:53 +08:00
|
|
|
-DKFR_SKIP_TESTS=ON
|
2020-07-10 04:59:37 +08:00
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
2021-09-16 04:26:33 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-03-08 14:52:38 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2020-07-10 04:59:37 +08:00
|
|
|
|
2021-09-16 04:26:33 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-07-10 04:59:37 +08:00
|
|
|
|
2021-09-16 04:26:33 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|