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
|
|
|
|
REF 74870a81898ba44407f5dce1f0f50d4ea53fca04 # v0.4.6
|
2019-03-03 20:09:01 +08:00
|
|
|
HEAD_REF master
|
2020-07-08 04:54:46 +08:00
|
|
|
SHA512 abd8621cb5ed2a9ccad54c2b9e09a2fc8c8fe5d6a70501d23b879f33e34a6c25d33901b385615e9bb29817c302977aa89bc0ab2a13365e413da557f1a099dd21
|
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
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-03-05 08:23:35 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
2019-03-03 20:09:01 +08:00
|
|
|
|
2020-05-27 14:00:24 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
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)
|