2019-03-03 20:09:01 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-07-08 04:54:46 +08:00
|
|
|
REPO simdjson/simdjson
|
2021-04-30 01:44:52 +08:00
|
|
|
REF c6c29c28278aeb29998e89f008908d951bb40c39 # v0.9.2
|
2019-03-03 20:09:01 +08:00
|
|
|
HEAD_REF master
|
2021-04-30 01:44:52 +08:00
|
|
|
SHA512 2c033e8fa253103f00606b7a14502d19c06385f22d1d09ea4b1edc6f443ba51ee95d49c790a05a64e28cd03f4350118b23c3c7f759a60e26a43da658609a5317
|
2019-03-03 20:09:01 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
|
2020-05-27 14:00:24 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_TARGET_ARCHITECTURE}" "arm64" SIMDJSON_IMPLEMENTATION_ARM64)
|
2019-03-03 20:09:01 +08:00
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-03-03 20:09:01 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DSIMDJSON_BUILD_STATIC=${SIMDJSON_BUILD_STATIC}
|
2020-05-27 14:00:24 +08:00
|
|
|
-DSIMDJSON_IMPLEMENTATION_ARM64=${SIMDJSON_IMPLEMENTATION_ARM64}
|
2020-07-08 04:54:46 +08:00
|
|
|
-DSIMDJSON_JUST_LIBRARY=ON
|
2020-05-27 14:00:24 +08:00
|
|
|
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF
|
|
|
|
-DSIMDJSON_COMPETITION=OFF
|
|
|
|
-DSIMDJSON_SANITIZE=OFF # issue 10145, pr 11495
|
2019-03-03 20:09:01 +08:00
|
|
|
)
|
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-03-03 20:09:01 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-03-03 20:09:01 +08:00
|
|
|
|
2021-04-30 01:44:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-03-03 20:09:01 +08:00
|
|
|
|
2020-01-07 03:14:52 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|