2017-11-06 16:56:24 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Blosc/c-blosc
|
2020-04-14 04:14:21 +08:00
|
|
|
REF 9fae1c9acb659159321aca69aefcdbce663e2374 # v1.18.1
|
|
|
|
SHA512 6cc77832100041aca8f320e44aa803adc0d3344b52742b995a3155b953e5d149534de65c8244d964448150b73715a81f54285d7d01f1b45d7b10fe07f5bdb141
|
2017-11-06 16:56:24 +08:00
|
|
|
HEAD_REF master
|
2019-08-12 03:26:23 +08:00
|
|
|
PATCHES
|
|
|
|
0001-find-deps.patch
|
2020-04-14 04:14:21 +08:00
|
|
|
0002-export-blosc-config.patch
|
2017-11-06 16:56:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
set(BLOSC_STATIC ON)
|
|
|
|
set(BLOSC_SHARED OFF)
|
|
|
|
else()
|
|
|
|
set(BLOSC_STATIC OFF)
|
|
|
|
set(BLOSC_SHARED ON)
|
|
|
|
endif()
|
|
|
|
|
2018-05-16 11:39:10 +08:00
|
|
|
file(REMOVE_RECURSE ${SOURCE_PATH}/internal-complibs)
|
|
|
|
|
2017-11-06 16:56:24 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2017-11-06 16:56:24 +08:00
|
|
|
OPTIONS -DPREFER_EXTERNAL_LZ4=ON
|
|
|
|
-DPREFER_EXTERNAL_SNAPPY=ON
|
|
|
|
-DPREFER_EXTERNAL_ZLIB=ON
|
|
|
|
-DPREFER_EXTERNAL_ZSTD=ON
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_BENCHMARKS=OFF
|
|
|
|
-DBUILD_STATIC=${BLOSC_STATIC}
|
|
|
|
-DBUILD_SHARED=${BLOSC_SHARED}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-06-18 02:31:14 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-04-14 04:14:21 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/blosc)
|
2017-11-06 16:56:24 +08:00
|
|
|
|
|
|
|
# cleanup
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSES/BLOSC.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/blosc RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|