vcpkg/ports/simdjson/portfile.cmake

32 lines
1.1 KiB
CMake
Raw Normal View History

2019-03-03 20:09:01 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdjson/simdjson
REF c6c29c28278aeb29998e89f008908d951bb40c39 # v0.9.2
2019-03-03 20:09:01 +08:00
HEAD_REF master
SHA512 2c033e8fa253103f00606b7a14502d19c06385f22d1d09ea4b1edc6f443ba51ee95d49c790a05a64e28cd03f4350118b23c3c7f759a60e26a43da658609a5317
2019-03-03 20:09:01 +08:00
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_TARGET_ARCHITECTURE}" "arm64" SIMDJSON_IMPLEMENTATION_ARM64)
2019-03-03 20:09:01 +08:00
vcpkg_cmake_configure(
2019-03-03 20:09:01 +08:00
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DSIMDJSON_BUILD_STATIC=${SIMDJSON_BUILD_STATIC}
-DSIMDJSON_IMPLEMENTATION_ARM64=${SIMDJSON_IMPLEMENTATION_ARM64}
-DSIMDJSON_JUST_LIBRARY=ON
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF
-DSIMDJSON_COMPETITION=OFF
-DSIMDJSON_SANITIZE=OFF # issue 10145, pr 11495
2019-03-03 20:09:01 +08:00
)
vcpkg_cmake_install()
2019-03-03 20:09:01 +08:00
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
2019-03-03 20:09:01 +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)