Skip to content

Commit

Permalink
[simdjson] Update library (microsoft#9484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored and dan-shaw committed Jan 6, 2020
1 parent 96bfe1b commit bff594f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ports/simdjson/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: simdjson
Version: 2019-08-05
Version: 2019-12-27
Description: A extremely fast JSON library that can parse gigabytes of JSON per second
Homepage: https://github.com/lemire/simdjson
20 changes: 20 additions & 0 deletions ports/simdjson/no_benchmark.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9668819..cf5e89f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,6 @@ include(include/CMakeLists.txt)
add_subdirectory(src)
add_subdirectory(tools)
add_subdirectory(tests)
-add_subdirectory(benchmark)

# for fuzzing, read the comments in the fuzz/CMakeLists.txt file
option(ENABLE_FUZZING "enable building the fuzzers" ON)
@@ -73,5 +72,3 @@ set(CPACK_RPM_PACKAGE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_SOURCE_GENERATOR "TGZ;ZIP")

include(CPack)
-
-
--
2.20.1.windows.1
18 changes: 5 additions & 13 deletions ports/simdjson/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
include(vcpkg_common_functions)

# https://github.com/Microsoft/vcpkg/issues/5418#issuecomment-470519894
if(TARGET_TRIPLET MATCHES "^(x86|arm-)")
message(FATAL_ERROR "simdjson doesn't support x86 or 32-bit ARM architecture.")
elseif(TARGET_TRIPLET MATCHES "^arm64")
message(FATAL_ERROR "simdjson doesn't support ARM64 architecture currently.")
endif()
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" "x86")

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lemire/simdjson
REF d9a0e2b8f441c20ad46276fdb8ce24f2aebdc07b
SHA512 05523c59b95485b93646370ac1ef9f80a72351a5bfe76797c5bbbf249bedd81b962dad19040a7eaac80744aaec18be9bec1120da44a9a1e4328e68b3d671bdaf
REF 4da06830f1389c8cd33171f5ab3558e79f0ece04
SHA512 ffb11ee91f97d975fba2946653c9c847565933380f94e334d15e627f77a7a750702c539ca55d17e077b2ed0a79006f56a3b9a202d888bb7e2e3f0484237cb537
HEAD_REF master
PATCHES ${CMAKE_CURRENT_LIST_DIR}/no_benchmark.patch
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SIMDJSON_BUILD_STATIC)
Expand All @@ -37,7 +32,4 @@ file(REMOVE_RECURSE
)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)

# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

0 comments on commit bff594f

Please sign in to comment.