2022-06-09 14:25:29 +02:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2021-06-09 15:29:56 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO intel/hexl
|
2024-03-05 17:44:49 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 1a5e42fdeac877f3b4ef87ab75ffa8280697e941d7a8f0f6dc8c5066f2dd405470530dfabdf12d846362bd3e7e6cd30fd1f11d8dd99bee5086d09371ba1da196
|
2022-06-09 14:25:29 +02:00
|
|
|
HEAD_REF development
|
2021-06-09 15:29:56 -07:00
|
|
|
)
|
|
|
|
|
2022-06-09 14:25:29 +02:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" HEXL_SHARED)
|
2021-09-03 00:00:29 -07:00
|
|
|
|
2021-06-09 15:29:56 -07:00
|
|
|
vcpkg_cmake_configure(
|
2022-06-09 14:25:29 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-09 15:29:56 -07:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
2022-06-09 14:25:29 +02:00
|
|
|
-DHEXL_BENCHMARK=OFF
|
|
|
|
-DHEXL_COVERAGE=OFF
|
|
|
|
-DHEXL_TESTING=OFF
|
|
|
|
-DHEXL_SHARED_LIB=${HEXL_SHARED}
|
2021-06-09 15:29:56 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2024-03-05 17:44:49 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake/hexl-${VERSION}")
|
2022-06-09 14:25:29 +02:00
|
|
|
vcpkg_copy_pdbs()
|
2021-06-09 15:29:56 -07:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|