vcpkg/ports/simdjson/portfile.cmake
myd7349 ea07b5d3cd
[simdjson] Update to 0.3.1 (#10709)
* [simdjson] Update to 0.3.1

* [simdjson] Update CI baseline

* [simdjson] Include arm build

* [simdjson] Make UWP happy

* [simdjson] Turn off SIMDJSON_COMPETITION for linux

* [simdjson] Update to 2020-05-06

[simdjson] Turn off SIMDJSON_SANITIZE under DEBUG mode (#10145)

* [simdjson] Update to lastest

* wip

* [simdjson] Update to 2020-05-20

* [simdjson] Update to 2020-05-21

* [simdjson] Fix ninja build

* [simdjson] arm-uwp still not supported

* [simdjson] Update to 2020-05-22 and disable UWP patch

* [itk] You shall pass

* [simdjson] Fix x64-uwp

* Revert "[itk] You shall pass"

This reverts commit 885e8a8af4.

* [simdjson] Update

* [simdjson] Update to 2020-05-26
2020-05-26 23:00:24 -07:00

37 lines
1.3 KiB
CMake

# https://github.com/Microsoft/vcpkg/issues/5418#issuecomment-470519894
vcpkg_fail_port_install(ON_ARCH "x86")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lemire/simdjson
REF ac0c3093f4935fd266656abc9311a63fad98e99e
SHA512 69bc9ce45839d5e42aefcf5a96f82f3049b05591f4d463b788365123ba06c36f0f784ede02e5015bd96bf8d0e631ccaac285ed5a63048113f2ea01d91d51b395
HEAD_REF master
PATCHES
no_benchmark.patch # `_pclose` is not available on UWP
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_TARGET_ARCHITECTURE}" "arm64" SIMDJSON_IMPLEMENTATION_ARM64)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DSIMDJSON_BUILD_STATIC=${SIMDJSON_BUILD_STATIC}
-DSIMDJSON_IMPLEMENTATION_ARM64=${SIMDJSON_IMPLEMENTATION_ARM64}
-DSIMDJSON_GOOGLE_BENCHMARKS=OFF
-DSIMDJSON_COMPETITION=OFF
-DSIMDJSON_SANITIZE=OFF # issue 10145, pr 11495
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)