early-access version 2853
This commit is contained in:
27
externals/vcpkg/ports/json5-parser/00001-fix-build.patch
vendored
Executable file
27
externals/vcpkg/ports/json5-parser/00001-fix-build.patch
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
diff --git a/json5_parser/CMakeLists.txt b/json5_parser/CMakeLists.txt
|
||||
index e83fb38..c09cae4 100644
|
||||
--- a/json5_parser/CMakeLists.txt
|
||||
+++ b/json5_parser/CMakeLists.txt
|
||||
@@ -15,3 +15,22 @@ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
|
||||
|
||||
ADD_LIBRARY(json5_parser STATIC ${JSON_SPIRIT_SRCS})
|
||||
|
||||
+if(MSVC)
|
||||
+ target_compile_options(json5_parser PRIVATE "/bigobj")
|
||||
+endif()
|
||||
+
|
||||
+target_include_directories(json5_parser PUBLIC $<INSTALL_INTERFACE:include>)
|
||||
+
|
||||
+install(TARGETS json5_parser EXPORT json5-parser-config
|
||||
+ RUNTIME DESTINATION bin
|
||||
+ ARCHIVE DESTINATION lib
|
||||
+ LIBRARY DESTINATION lib
|
||||
+)
|
||||
+install(EXPORT json5-parser-config DESTINATION share/cmake/json5-parser)
|
||||
+
|
||||
+file(GLOB HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} json5_parser*.h)
|
||||
+foreach (HEADER ${HEADERS} )
|
||||
+ get_filename_component(HEADER_DIR ${HEADER} DIRECTORY)
|
||||
+ install(FILES ${HEADER} DESTINATION include/${HEADER_DIR})
|
||||
+endforeach()
|
||||
+
|
||||
24
externals/vcpkg/ports/json5-parser/portfile.cmake
vendored
Executable file
24
externals/vcpkg/ports/json5-parser/portfile.cmake
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Caltech-IPAC/json5_parser
|
||||
REF 580bfe30c5ee5e06a0f536d7bddb75c07a29eda6 # 1.0.0
|
||||
SHA512 25cdbc02ed2e3b05f0644c3398230ab82ede093ed6f7d8f140a9810509dd05feab1187d62fc38818725a92c47029fe3dc5ecfdbe14e1e0a2ef314e925b369d59
|
||||
HEAD_REF master
|
||||
PATCHES 00001-fix-build.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}/json5_parser
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/json5-parser)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
10
externals/vcpkg/ports/json5-parser/vcpkg.json
vendored
Executable file
10
externals/vcpkg/ports/json5-parser/vcpkg.json
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "json5-parser",
|
||||
"version-string": "1.0.0",
|
||||
"port-version": 3,
|
||||
"description": "An enhancement of the JSON Spirit C++ library to understand json5.",
|
||||
"homepage": "https://github.com/Caltech-IPAC/json5_parser",
|
||||
"dependencies": [
|
||||
"boost-spirit"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user