Spaces:
Sleeping
Sleeping
cf1b62312bbb2e499182cf78884c3cd865baca6f0192b6829bc222c4459675bd
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jaeger-client-cpp/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jansson/portfile.cmake +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jansson/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jasper/portfile.cmake +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jasper/vcpkg.json +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbig2dec/CMakeLists.txt +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbig2dec/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbig2dec/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbigkit/CMakeLists.txt +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbigkit/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbigkit/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/fix-cmakelists.patch +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/fix-static-build.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/fix-utilities.patch +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jinja2cpplight/portfile.cmake +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jinja2cpplight/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/josuttis-jthread/portfile.cmake +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/josuttis-jthread/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsmn/portfile.cmake +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsmn/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-c/pkgconfig.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-c/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-c/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-dto/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-dto/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/cmake-find-package.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/fix-ambiguous-assignment.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/forward-find-package.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/Fix-link-error-C1128.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/dll-wins.patch +281 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/destination.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/json11-config.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json5-parser/00001-fix-build.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json5-parser/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/json5-parser/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncons/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncons/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncpp/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncpp/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsonnet/0003-use-upstream-nlohmann-json.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsonnet/0004-incorporate-md5.patch +41 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jaeger-client-cpp/vcpkg.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jaeger-client-cpp",
|
| 3 |
+
"version-semver": "0.7.0",
|
| 4 |
+
"port-version": 1,
|
| 5 |
+
"description": "C++ OpenTracing binding for Jaeger https://jaegertracing.io/",
|
| 6 |
+
"homepage": "https://github.com/jaegertracing/jaeger-client-cpp",
|
| 7 |
+
"supports": "!arm64",
|
| 8 |
+
"dependencies": [
|
| 9 |
+
"nlohmann-json",
|
| 10 |
+
"opentracing",
|
| 11 |
+
"thrift",
|
| 12 |
+
{
|
| 13 |
+
"name": "vcpkg-cmake",
|
| 14 |
+
"host": true
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"name": "vcpkg-cmake-config",
|
| 18 |
+
"host": true
|
| 19 |
+
},
|
| 20 |
+
"yaml-cpp"
|
| 21 |
+
]
|
| 22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jansson/portfile.cmake
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO akheron/jansson
|
| 4 |
+
REF e9ebfa7e77a6bee77df44e096b100e7131044059 # v2.13.1
|
| 5 |
+
SHA512 88a59c1cf5150699def17c86192ca9bacdfe6669319f770c3fbf14fa8edc48b4bb015a4a634a09db40fba9054320ac7c133c4d156f813af540a636f7825f0610
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
| 10 |
+
set(JANSSON_STATIC_CRT ON)
|
| 11 |
+
else()
|
| 12 |
+
set(JANSSON_STATIC_CRT OFF)
|
| 13 |
+
endif()
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
| 17 |
+
set(JANSSON_BUILD_SHARED_LIBS ON)
|
| 18 |
+
else()
|
| 19 |
+
set(JANSSON_BUILD_SHARED_LIBS OFF)
|
| 20 |
+
endif()
|
| 21 |
+
|
| 22 |
+
# Jansson tries to random-seed its hash table with system-provided entropy.
|
| 23 |
+
# This is not ported to UWP yet.
|
| 24 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
| 25 |
+
set(USE_WINDOWS_CRYPTOAPI OFF)
|
| 26 |
+
else()
|
| 27 |
+
set(USE_WINDOWS_CRYPTOAPI ON)
|
| 28 |
+
endif()
|
| 29 |
+
|
| 30 |
+
vcpkg_configure_cmake(
|
| 31 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 32 |
+
PREFER_NINJA
|
| 33 |
+
OPTIONS
|
| 34 |
+
-DJANSSON_STATIC_CRT=${JANSSON_STATIC_CRT}
|
| 35 |
+
-DJANSSON_EXAMPLES=OFF
|
| 36 |
+
-DJANSSON_WITHOUT_TESTS=ON
|
| 37 |
+
-DJANSSON_BUILD_SHARED_LIBS=${JANSSON_BUILD_SHARED_LIBS}
|
| 38 |
+
-DUSE_WINDOWS_CRYPTOAPI=${USE_WINDOWS_CRYPTOAPI}
|
| 39 |
+
-DJANSSON_INSTALL_CMAKE_DIR:STRING=share/jansson
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
vcpkg_install_cmake()
|
| 43 |
+
vcpkg_fixup_cmake_targets()
|
| 44 |
+
|
| 45 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 46 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
| 47 |
+
|
| 48 |
+
vcpkg_copy_pdbs()
|
| 49 |
+
|
| 50 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jansson/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jansson",
|
| 3 |
+
"version-string": "2.13.1",
|
| 4 |
+
"port-version": 2,
|
| 5 |
+
"description": "Jansson is a C library for encoding, decoding and manipulating JSON data",
|
| 6 |
+
"homepage": "https://github.com/akheron/jansson"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jasper/portfile.cmake
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO mdadams/jasper
|
| 4 |
+
REF fe00207dc10db1d7cc6f2757961c5c6bdfd10973 # version-2.0.33
|
| 5 |
+
SHA512 887bb8e6096b41d5b61970d70b0e7b9cc1c31dd63467386aa35003c146d200bbae9ad46825a3313aeed403ac6fb26d504f489386cbc7ca364d95deeb5a94af46
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
| 10 |
+
set(VCPKG_CXX_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_CXX_FLAGS}")
|
| 11 |
+
set(VCPKG_C_FLAGS "/D_CRT_DECLARE_NONSTDC_NAMES ${VCPKG_C_FLAGS}")
|
| 12 |
+
endif()
|
| 13 |
+
|
| 14 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" JAS_ENABLE_SHARED)
|
| 15 |
+
|
| 16 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
| 17 |
+
FEATURES
|
| 18 |
+
opengl JAS_ENABLE_OPENGL
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
vcpkg_cmake_configure(
|
| 22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
| 23 |
+
OPTIONS
|
| 24 |
+
-DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
|
| 25 |
+
-DJAS_ENABLE_LIBJPEG=ON
|
| 26 |
+
-DJAS_ENABLE_OPENGL=${JAS_ENABLE_OPENGL}
|
| 27 |
+
-DJAS_ENABLE_DOC=OFF
|
| 28 |
+
-DJAS_ENABLE_PROGRAMS=OFF
|
| 29 |
+
-DJAS_ENABLE_SHARED=${JAS_ENABLE_SHARED}
|
| 30 |
+
OPTIONS_DEBUG
|
| 31 |
+
-DCMAKE_DEBUG_POSTFIX=d # Due to CMakes FindJasper
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
vcpkg_cmake_install()
|
| 35 |
+
vcpkg_copy_pdbs()
|
| 36 |
+
vcpkg_fixup_pkgconfig()
|
| 37 |
+
|
| 38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
| 39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
| 40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
|
| 41 |
+
|
| 42 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jasper/vcpkg.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jasper",
|
| 3 |
+
"version": "2.0.33",
|
| 4 |
+
"port-version": 3,
|
| 5 |
+
"description": "Open source implementation of the JPEG-2000 Part-1 standard",
|
| 6 |
+
"homepage": "https://github.com/mdadams/jasper",
|
| 7 |
+
"dependencies": [
|
| 8 |
+
"libjpeg-turbo",
|
| 9 |
+
{
|
| 10 |
+
"name": "vcpkg-cmake",
|
| 11 |
+
"host": true
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "vcpkg-cmake-config",
|
| 15 |
+
"host": true
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"default-features": [
|
| 19 |
+
"opengl"
|
| 20 |
+
],
|
| 21 |
+
"features": {
|
| 22 |
+
"opengl": {
|
| 23 |
+
"description": "Enable the use of the OpenGL/GLUT Library",
|
| 24 |
+
"dependencies": [
|
| 25 |
+
{
|
| 26 |
+
"name": "freeglut",
|
| 27 |
+
"platform": "!osx"
|
| 28 |
+
},
|
| 29 |
+
"opengl"
|
| 30 |
+
]
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbig2dec/CMakeLists.txt
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cmake_minimum_required(VERSION 3.9)
|
| 2 |
+
project(jbig2dec C)
|
| 3 |
+
|
| 4 |
+
set(CMAKE_DEBUG_POSTFIX d)
|
| 5 |
+
|
| 6 |
+
file(GLOB SOURCES jbig2*.c)
|
| 7 |
+
list(REMOVE_ITEM SOURCES
|
| 8 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2dec.c"
|
| 9 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2_image_png.c"
|
| 10 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2_image_pbm.c"
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
add_library(jbig2dec ${SOURCES})
|
| 14 |
+
|
| 15 |
+
install(TARGETS jbig2dec
|
| 16 |
+
RUNTIME DESTINATION bin
|
| 17 |
+
LIBRARY DESTINATION lib
|
| 18 |
+
ARCHIVE DESTINATION lib
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
| 22 |
+
install(FILES jbig2.h DESTINATION include)
|
| 23 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbig2dec/portfile.cmake
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
| 2 |
+
|
| 3 |
+
vcpkg_from_github(
|
| 4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 5 |
+
REPO ArtifexSoftware/jbig2dec
|
| 6 |
+
REF 1c336b8ab44524dc56ea837e2211ff4207704cdd # 0.19
|
| 7 |
+
SHA512 e189a80cc8da18813cf6c8edc6f1a799793adcba7ea6f302a8cced349bffac68869af338d9723ee1efdc07115ae554cd5757bfda7d7ac41324fde1f9c3a8343c
|
| 8 |
+
HEAD_REF master
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
| 12 |
+
|
| 13 |
+
vcpkg_configure_cmake(
|
| 14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 15 |
+
PREFER_NINJA
|
| 16 |
+
OPTIONS_DEBUG
|
| 17 |
+
-DDISABLE_INSTALL_HEADERS=1
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
vcpkg_install_cmake()
|
| 21 |
+
|
| 22 |
+
# Handle copyright
|
| 23 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/jbig2dec RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbig2dec/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jbig2dec",
|
| 3 |
+
"version-string": "0.19",
|
| 4 |
+
"port-version": 1,
|
| 5 |
+
"description": "a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later.",
|
| 6 |
+
"homepage": "https://github.com/ArtifexSoftware/jbig2dec"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbigkit/CMakeLists.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cmake_minimum_required(VERSION 3.4)
|
| 2 |
+
project(libjbig C)
|
| 3 |
+
|
| 4 |
+
set(SOURCES
|
| 5 |
+
"libjbig/jbig.c"
|
| 6 |
+
"libjbig/jbig_ar.c"
|
| 7 |
+
"libjbig/jbig85.c")
|
| 8 |
+
|
| 9 |
+
set(HEADERS
|
| 10 |
+
"libjbig/jbig.h"
|
| 11 |
+
"libjbig/jbig_ar.h"
|
| 12 |
+
"libjbig/jbig85.h"
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
add_library(libjbig ${SOURCES})
|
| 16 |
+
|
| 17 |
+
install(
|
| 18 |
+
TARGETS libjbig
|
| 19 |
+
RUNTIME DESTINATION bin
|
| 20 |
+
LIBRARY DESTINATION lib
|
| 21 |
+
ARCHIVE DESTINATION lib
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
install(
|
| 25 |
+
FILES ${HEADERS}
|
| 26 |
+
DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbigkit/portfile.cmake
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
| 2 |
+
|
| 3 |
+
set(JBIGKIT_VERSION 2.1)
|
| 4 |
+
set(JBIGKIT_HASH c4127480470ef90db1ef3bd2caa444df10b50ed8df0bc9997db7612cb48b49278baf44965028f1807a21028eb965d677e015466306b44683c4ec75a23e1922cf)
|
| 5 |
+
|
| 6 |
+
vcpkg_download_distfile(ARCHIVE
|
| 7 |
+
URLS "http://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-${JBIGKIT_VERSION}.tar.gz"
|
| 8 |
+
FILENAME "jbigkit-${JBIGKIT_VERSION}.tar.gz"
|
| 9 |
+
SHA512 ${JBIGKIT_HASH}
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
vcpkg_extract_source_archive_ex(
|
| 13 |
+
ARCHIVE ${ARCHIVE}
|
| 14 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
| 18 |
+
|
| 19 |
+
vcpkg_configure_cmake(
|
| 20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 21 |
+
PREFER_NINJA)
|
| 22 |
+
|
| 23 |
+
vcpkg_install_cmake()
|
| 24 |
+
vcpkg_copy_pdbs()
|
| 25 |
+
|
| 26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 27 |
+
|
| 28 |
+
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/jbigkit)
|
| 29 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/jbigkit/COPYING ${CURRENT_PACKAGES_DIR}/share/jbigkit/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jbigkit/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jbigkit",
|
| 3 |
+
"version-string": "2.1",
|
| 4 |
+
"port-version": 5,
|
| 5 |
+
"description": "A software implementation of the JBIG1 data compression standard (ITU-T T.82)",
|
| 6 |
+
"homepage": "https://www.cl.cam.ac.uk/~mgk25/jbigkit"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/fix-cmakelists.patch
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index 06e83ef..229e17a 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -57,6 +57,7 @@ option(enable-lazy-lock "Enable lazy locking (only lock when multi-threaded" OFF
|
| 6 |
+
option(force_lazy_lock "Forcing lazy-lock to avoid allocator/threading bootstrap issues" OFF)
|
| 7 |
+
# install_prefix - installation directory prefix
|
| 8 |
+
# with-xslroot=<path> XSL stylesheet root path
|
| 9 |
+
+option(build-tests "Build tests" OFF)
|
| 10 |
+
|
| 11 |
+
set (PACKAGE_NAME "jemalloc")
|
| 12 |
+
project (${PACKAGE_NAME} C)
|
| 13 |
+
@@ -711,12 +712,8 @@ endif()
|
| 14 |
+
|
| 15 |
+
# The original library, delivery product
|
| 16 |
+
set(LIBJEMALLOCLIB jemalloc${install_suffix})
|
| 17 |
+
-add_library(${LIBJEMALLOCLIB} STATIC ${C_SRCS})
|
| 18 |
+
-
|
| 19 |
+
-# Now add shared library. Needed for integration tests
|
| 20 |
+
-# and a benchmark
|
| 21 |
+
-set(LIBJEMALLOCSO jemallocso${install_suffix})
|
| 22 |
+
-add_library(${LIBJEMALLOCSO} SHARED ${C_SRCS})
|
| 23 |
+
+set(LIBJEMALLOCSO ${LIBJEMALLOCLIB})
|
| 24 |
+
+add_library(${LIBJEMALLOCLIB} ${C_SRCS})
|
| 25 |
+
|
| 26 |
+
if(WIN32)
|
| 27 |
+
# May want to replace /d2Zi+ to /Zo
|
| 28 |
+
@@ -745,8 +745,6 @@ if(WIN32)
|
| 29 |
+
# either impport or export which is both wrong for a static library
|
| 30 |
+
set_target_properties(${LIBJEMALLOCLIB}
|
| 31 |
+
PROPERTIES
|
| 32 |
+
- COMPILE_DEFINITIONS
|
| 33 |
+
- "JEMALLOC_EXPORT="
|
| 34 |
+
CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_DEBUG
|
| 35 |
+
${PROJECT_BINARY_DIR}/Debug
|
| 36 |
+
CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY_RELEASE
|
| 37 |
+
@@ -754,6 +752,9 @@ if(WIN32)
|
| 38 |
+
COMPILE_PDB_NAME
|
| 39 |
+
${LIBJEMALLOCLIB}
|
| 40 |
+
)
|
| 41 |
+
+ if(NOT BUILD_SHARED_LIBS)
|
| 42 |
+
+ target_compile_definitions(${LIBJEMALLOCLIB} "JEMALLOC_EXPORT=")
|
| 43 |
+
+ endif()
|
| 44 |
+
|
| 45 |
+
endif()
|
| 46 |
+
|
| 47 |
+
@@ -825,6 +822,14 @@ if(C_UTIL_INTEGRATION_DEFS)
|
| 48 |
+
"${C_UTIL_INTEGRATION_DEFS}")
|
| 49 |
+
endif()
|
| 50 |
+
|
| 51 |
+
+install(FILES include/jemalloc/jemalloc${install_suffix}.h
|
| 52 |
+
+ DESTINATION include/jemalloc)
|
| 53 |
+
+
|
| 54 |
+
+install(TARGETS ${LIBJEMALLOCSO}
|
| 55 |
+
+ RUNTIME DESTINATION bin
|
| 56 |
+
+ LIBRARY DESTINATION lib
|
| 57 |
+
+ ARCHIVE DESTINATION lib)
|
| 58 |
+
+if (build-tests)
|
| 59 |
+
##################################################################
|
| 60 |
+
# Common source for Unit, Integration and stress test libraries
|
| 61 |
+
set(C_TESTLIB_SRCS
|
| 62 |
+
@@ -1028,4 +1033,4 @@ foreach(sourcefile ${TESTS_INTEGRATION})
|
| 63 |
+
add_test(NAME ${exename} COMMAND ${exename})
|
| 64 |
+
add_dependencies(check ${exename})
|
| 65 |
+
endforeach(sourcefile ${TESTS_UNIT})
|
| 66 |
+
-
|
| 67 |
+
+endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/fix-static-build.patch
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index 0b8959a..55e6a5f 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -826,10 +826,16 @@ endif()
|
| 6 |
+
install(FILES include/jemalloc/jemalloc${install_suffix}.h
|
| 7 |
+
DESTINATION include/jemalloc)
|
| 8 |
+
|
| 9 |
+
-install(TARGETS ${LIBJEMALLOCSO}
|
| 10 |
+
- RUNTIME DESTINATION bin
|
| 11 |
+
- LIBRARY DESTINATION lib
|
| 12 |
+
- ARCHIVE DESTINATION lib)
|
| 13 |
+
+if (without-export)
|
| 14 |
+
+ install(TARGETS ${C_JETLIB}
|
| 15 |
+
+ LIBRARY DESTINATION lib
|
| 16 |
+
+ ARCHIVE DESTINATION lib)
|
| 17 |
+
+else()
|
| 18 |
+
+ install(TARGETS ${LIBJEMALLOCSO}
|
| 19 |
+
+ RUNTIME DESTINATION bin
|
| 20 |
+
+ LIBRARY DESTINATION lib
|
| 21 |
+
+ ARCHIVE DESTINATION lib)
|
| 22 |
+
+endif()
|
| 23 |
+
if (build-tests)
|
| 24 |
+
##################################################################
|
| 25 |
+
# Common source for Unit, Integration and stress test libraries
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/fix-utilities.patch
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/Utilities.cmake b/Utilities.cmake
|
| 2 |
+
index 562e948..d2d3530 100644
|
| 3 |
+
--- a/Utilities.cmake
|
| 4 |
+
+++ b/Utilities.cmake
|
| 5 |
+
@@ -633,9 +633,11 @@ file(TO_NATIVE_PATH "${file_path}" ntv_file_path)
|
| 6 |
+
# This converts #undefs into #cmakedefines so configure_file can handle it
|
| 7 |
+
set(PS_CMD
|
| 8 |
+
"Get-Content \"${ntv_file_path}\" |
|
| 9 |
+
-ForEach {
|
| 10 |
+
+ForEach {
|
| 11 |
+
if($_ -match '^#undef[ \t]*[^ \t]*')
|
| 12 |
+
- { $_ -replace '^#undef[ \t]*([^ \t]*)','#cmakedefine $1 @$1@' } else {$_}}"
|
| 13 |
+
+ { $_ -replace '^#undef[ \t]*([^ \t]*)','#cmakedefine $1 @$1@' } else {$_}
|
| 14 |
+
+} |
|
| 15 |
+
+Set-Content \"${ntv_file_path}.cmake\""
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
if(EXISTS ${file_path})
|
| 19 |
+
@@ -646,9 +648,8 @@ if(EXISTS ${file_path})
|
| 20 |
+
# Convert autoconf .in into a cmake .in
|
| 21 |
+
execute_process(COMMAND powershell -Command "${PS_CMD}"
|
| 22 |
+
RESULT_VARIABLE error_level
|
| 23 |
+
- ERROR_VARIABLE error_output
|
| 24 |
+
- OUTPUT_FILE ${file_path}.cmake)
|
| 25 |
+
-
|
| 26 |
+
+ ERROR_VARIABLE error_output)
|
| 27 |
+
+
|
| 28 |
+
if(NOT ${error_level} EQUAL 0)
|
| 29 |
+
message(FATAL_ERROR "Powershell completed with ${error_level} : ${error_output}")
|
| 30 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/portfile.cmake
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
| 2 |
+
|
| 3 |
+
vcpkg_from_github(
|
| 4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 5 |
+
REPO jemalloc/jemalloc-cmake
|
| 6 |
+
REF jemalloc-cmake.4.3.1
|
| 7 |
+
SHA512 e94b62ec3a53acc0ab5acb247d7646bc172108e80f592bb41c2dd50d181cbbeb33d623adf28415ffc0a0e2de3818af2dfe4c04af75ac891ef5042bc5bb186886
|
| 8 |
+
HEAD_REF master
|
| 9 |
+
PATCHES
|
| 10 |
+
fix-cmakelists.patch
|
| 11 |
+
fix-utilities.patch
|
| 12 |
+
fix-static-build.patch
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
| 16 |
+
set(BUILD_STATIC_LIBRARY OFF)
|
| 17 |
+
else()
|
| 18 |
+
set(BUILD_STATIC_LIBRARY ON)
|
| 19 |
+
endif()
|
| 20 |
+
vcpkg_configure_cmake(
|
| 21 |
+
DISABLE_PARALLEL_CONFIGURE
|
| 22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 23 |
+
PREFER_NINJA
|
| 24 |
+
OPTIONS -DGIT_FOUND=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON -Dwithout-export=${BUILD_STATIC_LIBRARY}
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
vcpkg_install_cmake()
|
| 28 |
+
|
| 29 |
+
vcpkg_copy_pdbs()
|
| 30 |
+
|
| 31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 32 |
+
|
| 33 |
+
# Handle copyright
|
| 34 |
+
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/jemalloc)
|
| 35 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/jemalloc/COPYING ${CURRENT_PACKAGES_DIR}/share/jemalloc/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jemalloc/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jemalloc",
|
| 3 |
+
"version-string": "4.3.1",
|
| 4 |
+
"port-version": 5,
|
| 5 |
+
"description": "jemalloc is a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support",
|
| 6 |
+
"homepage": "https://github.com/jemalloc/jemalloc-cmake"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jinja2cpplight/portfile.cmake
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
if(VCPKG_TARGET_IS_UWP)
|
| 2 |
+
message(FATAL_ERROR "jinja2cpplight doesn't support UWP.")
|
| 3 |
+
endif()
|
| 4 |
+
|
| 5 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
| 6 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
| 7 |
+
else()
|
| 8 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
| 9 |
+
endif()
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
vcpkg_from_github(
|
| 13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 14 |
+
REPO hughperkins/Jinja2CppLight
|
| 15 |
+
REF 04196b080adf6edb86184824a1cf948ace310d19 #Commits on May 8, 2018
|
| 16 |
+
SHA512 30415da5ebc4fb805953cc9ff7e5fcd357d6fa1818c1ff2570b795252de6215562cd0f2f0418a1fa60e9d74b88339a3fea7166b898f54cface6ab1cfe3581bb5
|
| 17 |
+
HEAD_REF master
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
vcpkg_configure_cmake(
|
| 21 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 22 |
+
PREFER_NINJA
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
vcpkg_install_cmake()
|
| 26 |
+
|
| 27 |
+
vcpkg_copy_pdbs()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
file(GLOB_RECURSE JINJA2CPPLIGHT_EXES ${CURRENT_PACKAGES_DIR}/bin/jinja2cpplight_unittests*)
|
| 31 |
+
file(COPY ${JINJA2CPPLIGHT_EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
| 32 |
+
file(REMOVE_RECURSE ${JINJA2CPPLIGHT_EXES})
|
| 33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
| 34 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 35 |
+
|
| 36 |
+
# Handle copyright
|
| 37 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jinja2cpplight/vcpkg.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jinja2cpplight",
|
| 3 |
+
"version-string": "2018-05-08",
|
| 4 |
+
"port-version": 1,
|
| 5 |
+
"description": "(very) lightweight version of Jinja2 for C++, Lightweight templating engine for C++, based on Jinja2.",
|
| 6 |
+
"homepage": "https://github.com/hughperkins/Jinja2CppLight",
|
| 7 |
+
"supports": "!uwp"
|
| 8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/josuttis-jthread/portfile.cmake
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# header-only library
|
| 2 |
+
|
| 3 |
+
vcpkg_from_github(
|
| 4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 5 |
+
REPO josuttis/jthread
|
| 6 |
+
REF 3e1908f3bbaba6d2195bb423840c23e107c9e8b2
|
| 7 |
+
SHA512 b6e4df35b364848a433eb31023a8b5b5045b2445aaf9a81406a6b3ce7cfdda08bcdb486be9201f5b1e54df38884c1763fae336fdcb9ad79f11658a92c535055d
|
| 8 |
+
HEAD_REF master
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
file(INSTALL ${SOURCE_PATH}/source/jthread.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
| 12 |
+
file(INSTALL ${SOURCE_PATH}/source/stop_token.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
| 13 |
+
file(INSTALL ${SOURCE_PATH}/source/condition_variable_any2.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
| 14 |
+
|
| 15 |
+
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/josuttis-jthread/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "josuttis-jthread",
|
| 3 |
+
"version-string": "2020-07-21",
|
| 4 |
+
"port-version": 2,
|
| 5 |
+
"description": "C++ class for a joining and cooperative interruptible thread (std::jthread) with stop_token helper",
|
| 6 |
+
"homepage": "https://github.com/josuttis/jthread"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsmn/portfile.cmake
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# header-only library
|
| 2 |
+
|
| 3 |
+
vcpkg_from_github(
|
| 4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 5 |
+
REPO zserge/jsmn
|
| 6 |
+
REF fdcef3ebf886fa210d14956d3c068a653e76a24e
|
| 7 |
+
SHA512 ec3a6b106b868238aa626e5b4477ace4414f385a35c695a583598975202b73a2a446143eb5f0ea73b0a84113c610ea36e64341fccecd1d1ddd9080e06f599575
|
| 8 |
+
HEAD_REF master
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
file(COPY ${SOURCE_PATH}/jsmn.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
| 12 |
+
|
| 13 |
+
# Handle copyright
|
| 14 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsmn/vcpkg.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jsmn",
|
| 3 |
+
"version-string": "2019-04-27",
|
| 4 |
+
"port-version": 1,
|
| 5 |
+
"description": "A minimalistic JSON parser in C."
|
| 6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-c/pkgconfig.patch
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index ffb1db3dc..a82ed8619 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -273,7 +273,7 @@ install(
|
| 6 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
-if (UNIX OR MINGW OR CYGWIN)
|
| 10 |
+
+if (1)
|
| 11 |
+
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
| 12 |
+
# exec_prefix is prefix by default and CMake does not have the
|
| 13 |
+
# concept.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-c/portfile.cmake
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO json-c/json-c
|
| 4 |
+
REF eae040a84a479ccad1d1c48314345c51ecf1a4a4
|
| 5 |
+
SHA512 18d8a31b341830b04676cad13fbc0608fb75a323522161ac8fd0bb5058db82c1c261d504696a1e12f4b03eb0967632885580ff81d808adf2f1dff7e32d131ba0
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
PATCHES pkgconfig.patch
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
vcpkg_configure_cmake(
|
| 11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 12 |
+
PREFER_NINJA
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
vcpkg_install_cmake()
|
| 16 |
+
|
| 17 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
| 18 |
+
vcpkg_fixup_pkgconfig()
|
| 19 |
+
vcpkg_copy_pdbs()
|
| 20 |
+
|
| 21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 22 |
+
|
| 23 |
+
# Handle copyright
|
| 24 |
+
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-c/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json-c",
|
| 3 |
+
"version-string": "2019-09-10",
|
| 4 |
+
"port-version": 2,
|
| 5 |
+
"description": "A JSON implementation in C",
|
| 6 |
+
"homepage": "https://github.com/json-c/json-c"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-dto/portfile.cmake
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO stiffstream/json_dto
|
| 4 |
+
REF 9a08aaab6caee28300043c96e1ad3e6700f0f8fc # v.0.3.1
|
| 5 |
+
SHA512 09ca1072a3de2cc5c5ab6eeaa1b82014dcc6139992da84558e77fe4bfa42210ff9f7fa6ee7d7e6b2d4ac15fd7ae6286a6a56d8a72cce75fc73b91755bb831864
|
| 6 |
+
)
|
| 7 |
+
|
| 8 |
+
vcpkg_cmake_configure(
|
| 9 |
+
SOURCE_PATH ${SOURCE_PATH}/dev
|
| 10 |
+
OPTIONS
|
| 11 |
+
-DJSON_DTO_INSTALL=ON
|
| 12 |
+
-DJSON_DTO_TEST=OFF
|
| 13 |
+
-DJSON_DTO_SAMPLE=OFF
|
| 14 |
+
-DJSON_DTO_INSTALL_SAMPLES=OFF
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
vcpkg_cmake_install()
|
| 18 |
+
|
| 19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/json-dto)
|
| 20 |
+
|
| 21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
| 22 |
+
|
| 23 |
+
# Handle copyright
|
| 24 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
| 25 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-dto/vcpkg.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json-dto",
|
| 3 |
+
"version": "0.3.1",
|
| 4 |
+
"description": "A small header-only library for converting data between json representation and c++ structs.",
|
| 5 |
+
"homepage": "https://github.com/Stiffstream/json_dto",
|
| 6 |
+
"license": "BSD-3-Clause",
|
| 7 |
+
"dependencies": [
|
| 8 |
+
"rapidjson",
|
| 9 |
+
{
|
| 10 |
+
"name": "vcpkg-cmake",
|
| 11 |
+
"host": true
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "vcpkg-cmake-config",
|
| 15 |
+
"host": true
|
| 16 |
+
}
|
| 17 |
+
]
|
| 18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/cmake-find-package.patch
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index c4cc218..ff2b706 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.2)
|
| 6 |
+
option(BUILD_TESTS "Build tests" ON)
|
| 7 |
+
option(BUILD_EXAMPLES "Build examples" ON)
|
| 8 |
+
|
| 9 |
+
+find_package(nlohmann_json CONFIG REQUIRED)
|
| 10 |
+
+
|
| 11 |
+
# the library
|
| 12 |
+
add_library(nlohmann_json_schema_validator
|
| 13 |
+
src/json-schema-draft7.json.cpp
|
| 14 |
+
@@ -34,6 +36,13 @@ set_target_properties(nlohmann_json_schema_validator
|
| 15 |
+
# because of the dependency to nlohmann_json.
|
| 16 |
+
set(JSON_VALIDATOR_INSTALL ON)
|
| 17 |
+
|
| 18 |
+
+target_link_libraries(
|
| 19 |
+
+ nlohmann_json_schema_validator
|
| 20 |
+
+ PUBLIC
|
| 21 |
+
+ nlohmann_json
|
| 22 |
+
+ nlohmann_json::nlohmann_json)
|
| 23 |
+
+
|
| 24 |
+
+if(0)
|
| 25 |
+
# here we decice how nlohmann::json is found and used to build this project
|
| 26 |
+
|
| 27 |
+
# first, check whether a nlohmann_json::nlohmann_json target exists already
|
| 28 |
+
@@ -92,7 +101,7 @@ else()
|
| 29 |
+
set(nlohmann_json_DIR ${JSON_HPP})
|
| 30 |
+
endif()
|
| 31 |
+
endif()
|
| 32 |
+
-
|
| 33 |
+
+endif()
|
| 34 |
+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
|
| 35 |
+
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
| 36 |
+
target_compile_options(nlohmann_json_schema_validator
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/fix-ambiguous-assignment.patch
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/src/json-validator.cpp b/src/json-validator.cpp
|
| 2 |
+
index f16f3ef..1f7b615 100644
|
| 3 |
+
--- a/src/json-validator.cpp
|
| 4 |
+
+++ b/src/json-validator.cpp
|
| 5 |
+
@@ -663,7 +663,7 @@ public:
|
| 6 |
+
#ifndef NO_STD_REGEX
|
| 7 |
+
attr = sch.find("pattern");
|
| 8 |
+
if (attr != sch.end()) {
|
| 9 |
+
- patternString_ = attr.value();
|
| 10 |
+
+ patternString_ = attr.value().get<std::string>();
|
| 11 |
+
pattern_ = {true, REGEX_NAMESPACE::regex(attr.value().get<std::string>(),
|
| 12 |
+
REGEX_NAMESPACE::regex::ECMAScript)};
|
| 13 |
+
sch.erase(attr);
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/forward-find-package.patch
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/nlohmann_json_schema_validatorConfig.cmake.in b/nlohmann_json_schema_validatorConfig.cmake.in
|
| 2 |
+
index 6ee0df2..e0315fa 100644
|
| 3 |
+
--- a/nlohmann_json_schema_validatorConfig.cmake.in
|
| 4 |
+
+++ b/nlohmann_json_schema_validatorConfig.cmake.in
|
| 5 |
+
@@ -7,6 +7,9 @@
|
| 6 |
+
get_filename_component(NLOHMANN_JSON_SCHEMA_VALIDATOR_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
| 7 |
+
set(NLOHMANN_JSON_SCHEMA_VALIDATOR_INCLUDE_DIRS @CONF_INCLUDE_DIRS@)
|
| 8 |
+
|
| 9 |
+
+include(CMakeFindDependencyMacro)
|
| 10 |
+
+find_dependency(nlohmann_json)
|
| 11 |
+
+
|
| 12 |
+
# Our library dependencies (contains definitions for IMPORTED targets)
|
| 13 |
+
if(NOT TARGET json-schema-validator)
|
| 14 |
+
include("${NLOHMANN_JSON_SCHEMA_VALIDATOR_CMAKE_DIR}/nlohmann_json_schema_validatorTargets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/portfile.cmake
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO pboettch/json-schema-validator
|
| 4 |
+
REF 27fc1d094503623dfe39365ba82581507524545c
|
| 5 |
+
SHA512 4fd05087743f43871586a53d119acd1a19d0bdec8a5620f62b6eee7a926d285842e8439127eec52eeb11069c92b8d9af28558897d48e2422ecafca39d9f23cdb
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
PATCHES
|
| 8 |
+
fix-ambiguous-assignment.patch
|
| 9 |
+
cmake-find-package.patch
|
| 10 |
+
forward-find-package.patch
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
vcpkg_configure_cmake(
|
| 14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 15 |
+
PREFER_NINJA
|
| 16 |
+
OPTIONS
|
| 17 |
+
-DBUILD_TESTS=OFF
|
| 18 |
+
-DBUILD_EXAMPLES=OFF
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
vcpkg_install_cmake()
|
| 22 |
+
|
| 23 |
+
set(PKG_NAME "nlohmann_json_schema_validator")
|
| 24 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PKG_NAME} TARGET_PATH share/${PKG_NAME})
|
| 25 |
+
|
| 26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 27 |
+
|
| 28 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
| 29 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
| 30 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/usage
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The package json-schema-validator provides CMake integration:
|
| 2 |
+
|
| 3 |
+
find_package(nlohmann_json_schema_validator REQUIRED)
|
| 4 |
+
target_link_libraries(main PRIVATE nlohmann_json_schema_validator)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-schema-validator/vcpkg.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json-schema-validator",
|
| 3 |
+
"version-string": "2.1.0",
|
| 4 |
+
"port-version": 1,
|
| 5 |
+
"description": "This is a C++ library for validating JSON documents based on a JSON Schema. This validator is based on nlohmann json library.",
|
| 6 |
+
"homepage": "https://github.com/pboettch/json-schema-validator",
|
| 7 |
+
"dependencies": [
|
| 8 |
+
{
|
| 9 |
+
"name": "nlohmann-json",
|
| 10 |
+
"default-features": false
|
| 11 |
+
}
|
| 12 |
+
]
|
| 13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/Fix-link-error-C1128.patch
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index 24b1caf..2aac0b0 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -60,7 +60,9 @@ endif()
|
| 6 |
+
|
| 7 |
+
message(${CMAKE_INSTALL_INCLUDEDIR})
|
| 8 |
+
|
| 9 |
+
-
|
| 10 |
+
+if(MSVC)
|
| 11 |
+
+add_definitions(/bigobj)
|
| 12 |
+
+endif()
|
| 13 |
+
set(CPACK_PACKAGE_VERSION_MAJOR 4)
|
| 14 |
+
set(CPACK_PACKAGE_VERSION_MINOR 0)
|
| 15 |
+
set(CPACK_PACKAGE_VERSION_PATCH 8)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/dll-wins.patch
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/.travis.yml b/.travis.yml
|
| 2 |
+
index e5b56eb..87f2926 100644
|
| 3 |
+
--- a/.travis.yml
|
| 4 |
+
+++ b/.travis.yml
|
| 5 |
+
@@ -14,4 +14,4 @@ script:
|
| 6 |
+
- cmake --build . --target all --
|
| 7 |
+
|
| 8 |
+
after_script:
|
| 9 |
+
- - ctest
|
| 10 |
+
+ - ctest
|
| 11 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 12 |
+
index fb24877..a10a49f 100755
|
| 13 |
+
--- a/CMakeLists.txt
|
| 14 |
+
+++ b/CMakeLists.txt
|
| 15 |
+
@@ -60,15 +60,17 @@ endif()
|
| 16 |
+
|
| 17 |
+
message(${CMAKE_INSTALL_INCLUDEDIR})
|
| 18 |
+
|
| 19 |
+
-
|
| 20 |
+
+
|
| 21 |
+
set(CPACK_PACKAGE_VERSION_MAJOR 4)
|
| 22 |
+
set(CPACK_PACKAGE_VERSION_MINOR 0)
|
| 23 |
+
set(CPACK_PACKAGE_VERSION_PATCH 8)
|
| 24 |
+
set(CPACK_PACKAGE_DESCRIPTION "A C++ JSON Parser/Generator Implemented with Boost Spirit")
|
| 25 |
+
include(CPack)
|
| 26 |
+
-
|
| 27 |
+
+
|
| 28 |
+
+set(EXPORT_HEADERS )
|
| 29 |
+
INSTALL(
|
| 30 |
+
FILES
|
| 31 |
+
+ json_spirit/json_spirit_global.h
|
| 32 |
+
json_spirit/json_spirit.h
|
| 33 |
+
json_spirit/json_spirit_error_position.h
|
| 34 |
+
json_spirit/json_spirit_reader.h
|
| 35 |
+
@@ -80,4 +82,4 @@ INSTALL(
|
| 36 |
+
json_spirit/json_spirit_writer_template.h
|
| 37 |
+
json_spirit/json_spirit_writer_options.h
|
| 38 |
+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/json_spirit)
|
| 39 |
+
-
|
| 40 |
+
+
|
| 41 |
+
diff --git a/json_spirit/CMakeLists.txt b/json_spirit/CMakeLists.txt
|
| 42 |
+
index 23da64c..10d4e2b 100755
|
| 43 |
+
--- a/json_spirit/CMakeLists.txt
|
| 44 |
+
+++ b/json_spirit/CMakeLists.txt
|
| 45 |
+
@@ -15,13 +15,19 @@ SET(JSON_SPIRIT_SRCS
|
| 46 |
+
FIND_PACKAGE(Boost 1.34 REQUIRED)
|
| 47 |
+
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
|
| 48 |
+
|
| 49 |
+
-
|
| 50 |
+
+
|
| 51 |
+
OPTION(BUILD_STATIC_LIBS "Build static libraries" OFF)
|
| 52 |
+
|
| 53 |
+
if(BUILD_STATIC_LIBS)
|
| 54 |
+
ADD_LIBRARY(json_spirit STATIC ${JSON_SPIRIT_SRCS})
|
| 55 |
+
- install(TARGETS json_spirit ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
| 56 |
+
+ install(TARGETS json_spirit ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
| 57 |
+
else(BUILD_STATIC_LIBS)
|
| 58 |
+
ADD_LIBRARY(json_spirit SHARED ${JSON_SPIRIT_SRCS})
|
| 59 |
+
- install(TARGETS json_spirit LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
| 60 |
+
+ if(WIN32)
|
| 61 |
+
+ install(TARGETS json_spirit RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
| 62 |
+
+ install(TARGETS json_spirit ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
| 63 |
+
+ else()
|
| 64 |
+
+ install(TARGETS json_spirit LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
| 65 |
+
+ endif()
|
| 66 |
+
+
|
| 67 |
+
endif(BUILD_STATIC_LIBS)
|
| 68 |
+
diff --git a/json_spirit/json_spirit_global.h b/json_spirit/json_spirit_global.h
|
| 69 |
+
new file mode 100644
|
| 70 |
+
index 0000000..07a7d2c
|
| 71 |
+
--- /dev/null
|
| 72 |
+
+++ b/json_spirit/json_spirit_global.h
|
| 73 |
+
@@ -0,0 +1,18 @@
|
| 74 |
+
+#ifndef JSON_SPIRIT_GLOBAL_H
|
| 75 |
+
+#define JSON_SPIRIT_GLOBAL_H
|
| 76 |
+
+
|
| 77 |
+
+#if (defined _WIN32) || (defined _WIN64)
|
| 78 |
+
+ #define DECL_EXPORT __declspec(dllexport)
|
| 79 |
+
+ #define DECL_IMPORT __declspec(dllimport)
|
| 80 |
+
+#else
|
| 81 |
+
+ #define DECL_EXPORT
|
| 82 |
+
+ #define DECL_IMPORT
|
| 83 |
+
+#endif
|
| 84 |
+
+
|
| 85 |
+
+#if defined(json_spirit_EXPORTS)
|
| 86 |
+
+# define json_spirit_EXPORT DECL_EXPORT
|
| 87 |
+
+#else
|
| 88 |
+
+# define json_spirit_EXPORT DECL_IMPORT
|
| 89 |
+
+#endif
|
| 90 |
+
+
|
| 91 |
+
+#endif
|
| 92 |
+
|
| 93 |
+
diff --git a/json_spirit/json_spirit_reader.h b/json_spirit/json_spirit_reader.h
|
| 94 |
+
index a6cfac7..50cc6f5 100755
|
| 95 |
+
--- a/json_spirit/json_spirit_reader.h
|
| 96 |
+
+++ b/json_spirit/json_spirit_reader.h
|
| 97 |
+
@@ -11,6 +11,7 @@
|
| 98 |
+
# pragma once
|
| 99 |
+
#endif
|
| 100 |
+
|
| 101 |
+
+#include "json_spirit_global.h"
|
| 102 |
+
#include "json_spirit_value.h"
|
| 103 |
+
#include "json_spirit_error_position.h"
|
| 104 |
+
#include <iostream>
|
| 105 |
+
@@ -20,43 +21,43 @@ namespace json_spirit
|
| 106 |
+
// functions to reads a JSON values
|
| 107 |
+
|
| 108 |
+
#ifdef JSON_SPIRIT_VALUE_ENABLED
|
| 109 |
+
- bool read( const std::string& s, Value& value );
|
| 110 |
+
- bool read( std::istream& is, Value& value );
|
| 111 |
+
- bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
|
| 112 |
+
+ json_spirit_EXPORT bool read( const std::string& s, Value& value );
|
| 113 |
+
+ json_spirit_EXPORT bool read( std::istream& is, Value& value );
|
| 114 |
+
+ json_spirit_EXPORT bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
|
| 115 |
+
|
| 116 |
+
- void read_or_throw( const std::string& s, Value& value );
|
| 117 |
+
- void read_or_throw( std::istream& is, Value& value );
|
| 118 |
+
- void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
|
| 119 |
+
+ json_spirit_EXPORT void read_or_throw( const std::string& s, Value& value );
|
| 120 |
+
+ json_spirit_EXPORT void read_or_throw( std::istream& is, Value& value );
|
| 121 |
+
+ json_spirit_EXPORT void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
|
| 122 |
+
#endif
|
| 123 |
+
|
| 124 |
+
#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
|
| 125 |
+
- bool read( const std::wstring& s, wValue& value );
|
| 126 |
+
- bool read( std::wistream& is, wValue& value );
|
| 127 |
+
- bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
|
| 128 |
+
+ json_spirit_EXPORT bool read( const std::wstring& s, wValue& value );
|
| 129 |
+
+ json_spirit_EXPORT bool read( std::wistream& is, wValue& value );
|
| 130 |
+
+ json_spirit_EXPORT bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
|
| 131 |
+
|
| 132 |
+
- void read_or_throw( const std::wstring& s, wValue& value );
|
| 133 |
+
- void read_or_throw( std::wistream& is, wValue& value );
|
| 134 |
+
- void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
|
| 135 |
+
+ json_spirit_EXPORT void read_or_throw( const std::wstring& s, wValue& value );
|
| 136 |
+
+ json_spirit_EXPORT void read_or_throw( std::wistream& is, wValue& value );
|
| 137 |
+
+ json_spirit_EXPORT void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
|
| 138 |
+
#endif
|
| 139 |
+
|
| 140 |
+
#ifdef JSON_SPIRIT_MVALUE_ENABLED
|
| 141 |
+
- bool read( const std::string& s, mValue& value );
|
| 142 |
+
- bool read( std::istream& is, mValue& value );
|
| 143 |
+
- bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
|
| 144 |
+
+ json_spirit_EXPORT bool read( const std::string& s, mValue& value );
|
| 145 |
+
+ json_spirit_EXPORT bool read( std::istream& is, mValue& value );
|
| 146 |
+
+ json_spirit_EXPORT bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
|
| 147 |
+
|
| 148 |
+
- void read_or_throw( const std::string& s, mValue& value );
|
| 149 |
+
- void read_or_throw( std::istream& is, mValue& value );
|
| 150 |
+
- void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
|
| 151 |
+
+ json_spirit_EXPORT void read_or_throw( const std::string& s, mValue& value );
|
| 152 |
+
+ json_spirit_EXPORT void read_or_throw( std::istream& is, mValue& value );
|
| 153 |
+
+ json_spirit_EXPORT void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
|
| 154 |
+
#endif
|
| 155 |
+
|
| 156 |
+
#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
|
| 157 |
+
- bool read( const std::wstring& s, wmValue& value );
|
| 158 |
+
- bool read( std::wistream& is, wmValue& value );
|
| 159 |
+
- bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
|
| 160 |
+
+ json_spirit_EXPORT bool read( const std::wstring& s, wmValue& value );
|
| 161 |
+
+ json_spirit_EXPORT bool read( std::wistream& is, wmValue& value );
|
| 162 |
+
+ json_spirit_EXPORT bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
|
| 163 |
+
|
| 164 |
+
- void read_or_throw( const std::wstring& s, wmValue& value );
|
| 165 |
+
- void read_or_throw( std::wistream& is, wmValue& value );
|
| 166 |
+
- void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
|
| 167 |
+
+ json_spirit_EXPORT void read_or_throw( const std::wstring& s, wmValue& value );
|
| 168 |
+
+ json_spirit_EXPORT void read_or_throw( std::wistream& is, wmValue& value );
|
| 169 |
+
+ json_spirit_EXPORT void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
|
| 170 |
+
#endif
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
diff --git a/json_spirit/json_spirit_writer.h b/json_spirit/json_spirit_writer.h
|
| 174 |
+
index 2722780..f60dc07 100755
|
| 175 |
+
--- a/json_spirit/json_spirit_writer.h
|
| 176 |
+
+++ b/json_spirit/json_spirit_writer.h
|
| 177 |
+
@@ -11,6 +11,7 @@
|
| 178 |
+
# pragma once
|
| 179 |
+
#endif
|
| 180 |
+
|
| 181 |
+
+#include "json_spirit_global.h"
|
| 182 |
+
#include "json_spirit_value.h"
|
| 183 |
+
#include "json_spirit_writer_options.h"
|
| 184 |
+
#include <iostream>
|
| 185 |
+
@@ -20,44 +21,44 @@ namespace json_spirit
|
| 186 |
+
// these functions to convert JSON Values to text
|
| 187 |
+
|
| 188 |
+
#ifdef JSON_SPIRIT_VALUE_ENABLED
|
| 189 |
+
- void write( const Value& value, std::ostream& os, unsigned int options = 0 );
|
| 190 |
+
- std::string write( const Value& value, unsigned int options = 0 );
|
| 191 |
+
+ json_spirit_EXPORT void write( const Value& value, std::ostream& os, unsigned int options = 0 );
|
| 192 |
+
+ json_spirit_EXPORT std::string write( const Value& value, unsigned int options = 0 );
|
| 193 |
+
#endif
|
| 194 |
+
|
| 195 |
+
#ifdef JSON_SPIRIT_MVALUE_ENABLED
|
| 196 |
+
- void write( const mValue& value, std::ostream& os, unsigned int options = 0 );
|
| 197 |
+
- std::string write( const mValue& value, unsigned int options = 0 );
|
| 198 |
+
+ json_spirit_EXPORT void write( const mValue& value, std::ostream& os, unsigned int options = 0 );
|
| 199 |
+
+ json_spirit_EXPORT std::string write( const mValue& value, unsigned int options = 0 );
|
| 200 |
+
#endif
|
| 201 |
+
|
| 202 |
+
#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
|
| 203 |
+
- void write( const wValue& value, std::wostream& os, unsigned int options = 0 );
|
| 204 |
+
- std::wstring write( const wValue& value, unsigned int options = 0 );
|
| 205 |
+
+ json_spirit_EXPORT void write( const wValue& value, std::wostream& os, unsigned int options = 0 );
|
| 206 |
+
+ json_spirit_EXPORT std::wstring write( const wValue& value, unsigned int options = 0 );
|
| 207 |
+
#endif
|
| 208 |
+
|
| 209 |
+
#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
|
| 210 |
+
- void write( const wmValue& value, std::wostream& os, unsigned int options = 0 );
|
| 211 |
+
- std::wstring write( const wmValue& value, unsigned int options = 0 );
|
| 212 |
+
+ json_spirit_EXPORT void write( const wmValue& value, std::wostream& os, unsigned int options = 0 );
|
| 213 |
+
+ json_spirit_EXPORT std::wstring write( const wmValue& value, unsigned int options = 0 );
|
| 214 |
+
#endif
|
| 215 |
+
|
| 216 |
+
// these "formatted" versions of the "write" functions are the equivalent of the above functions
|
| 217 |
+
// with option "pretty_print"
|
| 218 |
+
|
| 219 |
+
#ifdef JSON_SPIRIT_VALUE_ENABLED
|
| 220 |
+
- void write_formatted( const Value& value, std::ostream& os );
|
| 221 |
+
- std::string write_formatted( const Value& value );
|
| 222 |
+
+ json_spirit_EXPORT void write_formatted( const Value& value, std::ostream& os );
|
| 223 |
+
+ json_spirit_EXPORT std::string write_formatted( const Value& value );
|
| 224 |
+
#endif
|
| 225 |
+
#ifdef JSON_SPIRIT_MVALUE_ENABLED
|
| 226 |
+
- void write_formatted( const mValue& value, std::ostream& os );
|
| 227 |
+
- std::string write_formatted( const mValue& value );
|
| 228 |
+
+ json_spirit_EXPORT void write_formatted( const mValue& value, std::ostream& os );
|
| 229 |
+
+ json_spirit_EXPORT std::string write_formatted( const mValue& value );
|
| 230 |
+
#endif
|
| 231 |
+
|
| 232 |
+
#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
|
| 233 |
+
- void write_formatted( const wValue& value, std::wostream& os );
|
| 234 |
+
- std::wstring write_formatted( const wValue& value );
|
| 235 |
+
+ json_spirit_EXPORT void write_formatted( const wValue& value, std::wostream& os );
|
| 236 |
+
+ json_spirit_EXPORT std::wstring write_formatted( const wValue& value );
|
| 237 |
+
#endif
|
| 238 |
+
#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
|
| 239 |
+
- void write_formatted( const wmValue& value, std::wostream& os );
|
| 240 |
+
- std::wstring write_formatted( const wmValue& value );
|
| 241 |
+
+ json_spirit_EXPORT void write_formatted( const wmValue& value, std::wostream& os );
|
| 242 |
+
+ json_spirit_EXPORT std::wstring write_formatted( const wmValue& value );
|
| 243 |
+
#endif
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
diff --git a/json_test/json_spirit_value_test.cpp b/json_test/json_spirit_value_test.cpp
|
| 247 |
+
index e055dae..faab022 100755
|
| 248 |
+
--- a/json_test/json_spirit_value_test.cpp
|
| 249 |
+
+++ b/json_test/json_spirit_value_test.cpp
|
| 250 |
+
@@ -381,9 +381,15 @@ namespace
|
| 251 |
+
Container_constructor_runner()
|
| 252 |
+
{
|
| 253 |
+
vector< double > vd = list_of( 1.2 )( 1.3 ); test_container_constructor( vd );
|
| 254 |
+
+ #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900)
|
| 255 |
+
+ vector< int > vi = { 1 }; test_container_constructor( vi );
|
| 256 |
+
+ vi = { 1, 2 }; test_container_constructor( vi );
|
| 257 |
+
+ vi = { 1, 2, 3 }; test_container_constructor( vi );
|
| 258 |
+
+ #else
|
| 259 |
+
vector< int > vi = list_of( 1 ); test_container_constructor( vi );
|
| 260 |
+
vi = list_of( 1 )( 2 ); test_container_constructor( vi );
|
| 261 |
+
vi = list_of( 1 )( 2 )( 3 ); test_container_constructor( vi );
|
| 262 |
+
+ #endif
|
| 263 |
+
list< double > ld = list_of( 1.2 )( 1.3 ); test_container_constructor( ld );
|
| 264 |
+
list< int > li = list_of( 1 ); test_container_constructor( li );
|
| 265 |
+
li = list_of( 1 )( 2 ); test_container_constructor( li );
|
| 266 |
+
@@ -447,9 +453,15 @@ namespace
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
vector< double > vd = list_of( 1.2 )( 1.3 ); test_variant_array_constructor< double > ( vd );
|
| 270 |
+
+ #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900)
|
| 271 |
+
+ vector< int > vi = { 1 }; test_variant_array_constructor< int >( vi );
|
| 272 |
+
+ vi = { 1, 2 }; test_variant_array_constructor< int >( vi );
|
| 273 |
+
+ vi = { 1, 2, 3 }; test_variant_array_constructor< int >( vi );
|
| 274 |
+
+ #else
|
| 275 |
+
vector< int > vi = list_of( 1 ); test_variant_array_constructor< int >( vi );
|
| 276 |
+
vi = list_of( 1 )( 2 ); test_variant_array_constructor< int >( vi );
|
| 277 |
+
vi = list_of( 1 )( 2 )( 3 ); test_variant_array_constructor< int >( vi );
|
| 278 |
+
+ #endif
|
| 279 |
+
list< double > ld = list_of( 1.2 )( 1.3 ); test_variant_array_constructor< double >( ld );
|
| 280 |
+
list< int > li = list_of( 1 ); test_variant_array_constructor< int >( li );
|
| 281 |
+
li = list_of( 1 )( 2 ); test_variant_array_constructor< int >( li );
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/portfile.cmake
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO png85/json_spirit
|
| 4 |
+
REF 5e16cca59b31d8beda0f07e3917ce11dcd43b3db
|
| 5 |
+
SHA512 6ac0f15726391c9003e516213535c8d30e98b6c33bca0b03e9bf38e7085824bfc6cfaab267b1dfccbfcc567638d26f722d7e331f4e3b60d3acd5c717cb1fafcc
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
PATCHES
|
| 8 |
+
dll-wins.patch
|
| 9 |
+
Fix-link-error-C1128.patch
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
vcpkg_configure_cmake(
|
| 13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 14 |
+
PREFER_NINJA
|
| 15 |
+
OPTIONS -DBUILD_STATIC_LIBS=off -DJSON_SPIRIT_DEMOS=off -DJSON_SPIRIT_TESTS=off)
|
| 16 |
+
|
| 17 |
+
vcpkg_install_cmake()
|
| 18 |
+
|
| 19 |
+
# Handle copyright
|
| 20 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json-spirit RENAME copyright)
|
| 21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 22 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
| 23 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
| 24 |
+
endif()
|
| 25 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json-spirit/vcpkg.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json-spirit",
|
| 3 |
+
"version-string": "4.1.0",
|
| 4 |
+
"port-version": 2,
|
| 5 |
+
"description": "json parser using boost library",
|
| 6 |
+
"dependencies": [
|
| 7 |
+
"boost-config",
|
| 8 |
+
"boost-integer",
|
| 9 |
+
"boost-smart-ptr",
|
| 10 |
+
"boost-spirit",
|
| 11 |
+
"boost-variant"
|
| 12 |
+
]
|
| 13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/destination.patch
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index 819c36f..847489e 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -52,6 +52,6 @@ if (JSON11_BUILD_TESTS)
|
| 6 |
+
target_link_libraries(json11_test json11)
|
| 7 |
+
endif()
|
| 8 |
+
|
| 9 |
+
-install(TARGETS json11 DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE})
|
| 10 |
+
-install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/json11.hpp" DESTINATION include/${CMAKE_LIBRARY_ARCHITECTURE})
|
| 11 |
+
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/json11.pc" DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig)
|
| 12 |
+
+install(TARGETS json11 DESTINATION lib)
|
| 13 |
+
+install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/json11.hpp" DESTINATION include)
|
| 14 |
+
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/json11.pc" DESTINATION lib/pkgconfig)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/json11-config.cmake
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
| 2 |
+
|
| 3 |
+
if(NOT JSON11_FIND_COMPONENTS)
|
| 4 |
+
set(JSON11_FIND_COMPONENTS json11 json11)
|
| 5 |
+
if(JSON11_FIND_REQUIRED)
|
| 6 |
+
set(JSON11_FIND_REQUIRED_json11 TRUE)
|
| 7 |
+
endif()
|
| 8 |
+
|
| 9 |
+
set(JSON11_FOUND TRUE)
|
| 10 |
+
endif()
|
| 11 |
+
|
| 12 |
+
set(JSON11_INCLUDE_DIRS ${_DIR}/../../include)
|
| 13 |
+
set(JSON11_LIBRARIES)
|
| 14 |
+
if (EXISTS ${_DIR}/../../lib/libjson11.a)
|
| 15 |
+
list(APPEND JSON11_LIBRARIES optimized ${_DIR}/../../lib/libjson11.a)
|
| 16 |
+
endif()
|
| 17 |
+
if (EXISTS ${_DIR}/../../debug/lib/libjson11.a)
|
| 18 |
+
list(APPEND JSON11_LIBRARIES debug ${_DIR}/../../debug/lib/libjson11.a)
|
| 19 |
+
endif()
|
| 20 |
+
if (EXISTS ${_DIR}/../../lib/json11.lib)
|
| 21 |
+
list(APPEND JSON11_LIBRARIES optimized ${_DIR}/../../lib/json11.lib)
|
| 22 |
+
endif()
|
| 23 |
+
if (EXISTS ${_DIR}/../../debug/lib/json11.lib)
|
| 24 |
+
list(APPEND JSON11_LIBRARIES debug ${_DIR}/../../debug/lib/json11.lib)
|
| 25 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/portfile.cmake
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
| 2 |
+
|
| 3 |
+
vcpkg_from_github(
|
| 4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 5 |
+
REPO dropbox/json11
|
| 6 |
+
REF ec4e45219af1d7cde3d58b49ed762376fccf1ace
|
| 7 |
+
SHA512 2129e048d8dee027dc1ba789d9901e017b7d698465e15236802ef68639161e1cc7c8665d5f50079333801717fd41ffbe2cb90fa2165b9a85629e8ced8f2b3cd8
|
| 8 |
+
HEAD_REF master
|
| 9 |
+
PATCHES destination.patch
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
vcpkg_configure_cmake(
|
| 13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 14 |
+
PREFER_NINJA
|
| 15 |
+
OPTIONS
|
| 16 |
+
-DJSON11_BUILD_TESTS:BOOL=OFF
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
vcpkg_install_cmake()
|
| 20 |
+
vcpkg_copy_pdbs()
|
| 21 |
+
|
| 22 |
+
file(INSTALL ${CURRENT_PORT_DIR}/json11-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/json11)
|
| 23 |
+
|
| 24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 25 |
+
|
| 26 |
+
# Handle copyright
|
| 27 |
+
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json11)
|
| 28 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/json11/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/json11/copyright)
|
| 29 |
+
|
| 30 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json11/vcpkg.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json11",
|
| 3 |
+
"version-string": "2017-06-20",
|
| 4 |
+
"port-version": 4,
|
| 5 |
+
"description": "json11 is a tiny JSON library for C++11, providing JSON parsing and serialization."
|
| 6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json5-parser/00001-fix-build.patch
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/json5_parser/CMakeLists.txt b/json5_parser/CMakeLists.txt
|
| 2 |
+
index e83fb38..c09cae4 100644
|
| 3 |
+
--- a/json5_parser/CMakeLists.txt
|
| 4 |
+
+++ b/json5_parser/CMakeLists.txt
|
| 5 |
+
@@ -15,3 +15,22 @@ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
|
| 6 |
+
|
| 7 |
+
ADD_LIBRARY(json5_parser STATIC ${JSON_SPIRIT_SRCS})
|
| 8 |
+
|
| 9 |
+
+if(MSVC)
|
| 10 |
+
+ target_compile_options(json5_parser PRIVATE "/bigobj")
|
| 11 |
+
+endif()
|
| 12 |
+
+
|
| 13 |
+
+target_include_directories(json5_parser PUBLIC $<INSTALL_INTERFACE:include>)
|
| 14 |
+
+
|
| 15 |
+
+install(TARGETS json5_parser EXPORT json5-parser-config
|
| 16 |
+
+ RUNTIME DESTINATION bin
|
| 17 |
+
+ ARCHIVE DESTINATION lib
|
| 18 |
+
+ LIBRARY DESTINATION lib
|
| 19 |
+
+)
|
| 20 |
+
+install(EXPORT json5-parser-config DESTINATION share/cmake/json5-parser)
|
| 21 |
+
+
|
| 22 |
+
+file(GLOB HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} json5_parser*.h)
|
| 23 |
+
+foreach (HEADER ${HEADERS} )
|
| 24 |
+
+ get_filename_component(HEADER_DIR ${HEADER} DIRECTORY)
|
| 25 |
+
+ install(FILES ${HEADER} DESTINATION include/${HEADER_DIR})
|
| 26 |
+
+endforeach()
|
| 27 |
+
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json5-parser/portfile.cmake
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
| 2 |
+
|
| 3 |
+
vcpkg_from_github(
|
| 4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 5 |
+
REPO Caltech-IPAC/json5_parser
|
| 6 |
+
REF 580bfe30c5ee5e06a0f536d7bddb75c07a29eda6 # 1.0.0
|
| 7 |
+
SHA512 25cdbc02ed2e3b05f0644c3398230ab82ede093ed6f7d8f140a9810509dd05feab1187d62fc38818725a92c47029fe3dc5ecfdbe14e1e0a2ef314e925b369d59
|
| 8 |
+
HEAD_REF master
|
| 9 |
+
PATCHES 00001-fix-build.patch
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
vcpkg_configure_cmake(
|
| 13 |
+
SOURCE_PATH ${SOURCE_PATH}/json5_parser
|
| 14 |
+
PREFER_NINJA
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
vcpkg_install_cmake()
|
| 18 |
+
vcpkg_copy_pdbs()
|
| 19 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/json5-parser)
|
| 20 |
+
|
| 21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
| 22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
| 23 |
+
|
| 24 |
+
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/json5-parser/vcpkg.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "json5-parser",
|
| 3 |
+
"version-string": "1.0.0",
|
| 4 |
+
"port-version": 3,
|
| 5 |
+
"description": "An enhancement of the JSON Spirit C++ library to understand json5.",
|
| 6 |
+
"homepage": "https://github.com/Caltech-IPAC/json5_parser",
|
| 7 |
+
"dependencies": [
|
| 8 |
+
"boost-spirit"
|
| 9 |
+
]
|
| 10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncons/portfile.cmake
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO danielaparker/jsoncons
|
| 4 |
+
REF 1120e26743ad89621497ebd37acd61cf81152828 # v0.168.3
|
| 5 |
+
SHA512 12842c0eda9709b8b8010540a482c6dd08d5b979d8f9469a663fb68b402db9f786cfa00856f8ef9396273a0fa488df581f4da008ef3f2ad3ae989bf317a77cd1
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
vcpkg_configure_cmake(
|
| 10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
| 11 |
+
PREFER_NINJA
|
| 12 |
+
OPTIONS
|
| 13 |
+
-DJSONCONS_BUILD_TESTS=OFF
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
vcpkg_install_cmake()
|
| 17 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
| 18 |
+
vcpkg_fixup_pkgconfig()
|
| 19 |
+
|
| 20 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
| 21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
| 22 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncons/vcpkg.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jsoncons",
|
| 3 |
+
"version-string": "0.168.3",
|
| 4 |
+
"port-version": 1,
|
| 5 |
+
"description": "A C++, header-only library for constructing JSON and JSON-like text and binary data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON",
|
| 6 |
+
"homepage": "https://github.com/danielaparker/jsoncons"
|
| 7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncpp/portfile.cmake
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
vcpkg_from_github(
|
| 2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
| 3 |
+
REPO open-source-parsers/jsoncpp
|
| 4 |
+
REF 1.9.5
|
| 5 |
+
SHA512 1d06e044759b1e1a4cc4960189dd7e001a0a4389d7239a6d59295af995a553518e4e0337b4b4b817e70da5d9731a4c98655af90791b6287870b5ff8d73ad8873
|
| 6 |
+
HEAD_REF master
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" JSONCPP_STATIC)
|
| 10 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
| 11 |
+
|
| 12 |
+
vcpkg_cmake_configure(
|
| 13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
| 14 |
+
OPTIONS
|
| 15 |
+
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
|
| 16 |
+
-DBUILD_STATIC_LIBS=${JSONCPP_STATIC}
|
| 17 |
+
-DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_CRT}
|
| 18 |
+
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF
|
| 19 |
+
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
|
| 20 |
+
-DJSONCPP_WITH_TESTS=OFF
|
| 21 |
+
-DJSONCPP_WITH_EXAMPLE=OFF
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
vcpkg_cmake_install()
|
| 25 |
+
|
| 26 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/jsoncpp)
|
| 27 |
+
|
| 28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
| 29 |
+
|
| 30 |
+
vcpkg_copy_pdbs()
|
| 31 |
+
|
| 32 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsoncpp/vcpkg.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "jsoncpp",
|
| 3 |
+
"version": "1.9.5",
|
| 4 |
+
"description": "jsoncpp is an implementation of a JSON reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format that it is easy to parse and redeable for human.",
|
| 5 |
+
"homepage": "https://github.com/open-source-parsers/jsoncpp",
|
| 6 |
+
"dependencies": [
|
| 7 |
+
{
|
| 8 |
+
"name": "vcpkg-cmake",
|
| 9 |
+
"host": true
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"name": "vcpkg-cmake-config",
|
| 13 |
+
"host": true
|
| 14 |
+
}
|
| 15 |
+
]
|
| 16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsonnet/0003-use-upstream-nlohmann-json.patch
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/core/vm.cpp b/core/vm.cpp
|
| 2 |
+
index 0cf06fa..d65a6d7 100644
|
| 3 |
+
--- a/core/vm.cpp
|
| 4 |
+
+++ b/core/vm.cpp
|
| 5 |
+
@@ -23,7 +23,7 @@ limitations under the License.
|
| 6 |
+
|
| 7 |
+
#include "desugarer.h"
|
| 8 |
+
#include "json.h"
|
| 9 |
+
-#include "json.hpp"
|
| 10 |
+
+#include "nlohmann/json.hpp"
|
| 11 |
+
#include "md5.h"
|
| 12 |
+
#include "parser.h"
|
| 13 |
+
#include "state.h"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jsonnet/0004-incorporate-md5.patch
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
| 2 |
+
--- a/core/CMakeLists.txt
|
| 3 |
+
+++ b/core/CMakeLists.txt
|
| 4 |
+
@@ -15,7 +15,8 @@ set(LIBJSONNET_HEADERS
|
| 5 |
+
static_error.h
|
| 6 |
+
string_utils.h
|
| 7 |
+
unicode.h
|
| 8 |
+
- vm.h)
|
| 9 |
+
+ vm.h
|
| 10 |
+
+ ../third_party/md5/md5.h)
|
| 11 |
+
|
| 12 |
+
set(LIBJSONNET_SOURCE
|
| 13 |
+
desugarer.cpp
|
| 14 |
+
@@ -26,12 +27,13 @@ set(LIBJSONNET_SOURCE
|
| 15 |
+
pass.cpp
|
| 16 |
+
static_analysis.cpp
|
| 17 |
+
string_utils.cpp
|
| 18 |
+
- vm.cpp)
|
| 19 |
+
+ vm.cpp
|
| 20 |
+
+ ../third_party/md5/md5.cpp)
|
| 21 |
+
|
| 22 |
+
if (BUILD_SHARED_BINARIES)
|
| 23 |
+
add_library(libjsonnet ${LIBJSONNET_HEADERS} ${LIBJSONNET_SOURCE})
|
| 24 |
+
-add_dependencies(libjsonnet md5 stdlib)
|
| 25 |
+
-target_link_libraries(libjsonnet md5 nlohmann_json::nlohmann_json)
|
| 26 |
+
+add_dependencies(libjsonnet stdlib)
|
| 27 |
+
+target_link_libraries(libjsonnet nlohmann_json::nlohmann_json)
|
| 28 |
+
|
| 29 |
+
file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/../include/libjsonnet.h JSONNET_VERSION_DEF
|
| 30 |
+
REGEX "[#]define[ \t]+LIB_JSONNET_VERSION[ \t]+")
|
| 31 |
+
@@ -54,8 +56,8 @@ endif()
|
| 32 |
+
if (BUILD_STATIC_LIBS)
|
| 33 |
+
# Static library for jsonnet command-line tool.
|
| 34 |
+
add_library(libjsonnet_static STATIC ${LIBJSONNET_SOURCE})
|
| 35 |
+
- add_dependencies(libjsonnet_static md5 stdlib)
|
| 36 |
+
- target_link_libraries(libjsonnet_static md5 nlohmann_json::nlohmann_json)
|
| 37 |
+
+ add_dependencies(libjsonnet_static stdlib)
|
| 38 |
+
+ target_link_libraries(libjsonnet_static nlohmann_json::nlohmann_json)
|
| 39 |
+
set_target_properties(libjsonnet_static PROPERTIES OUTPUT_NAME jsonnet)
|
| 40 |
+
install(TARGETS libjsonnet_static DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
| 41 |
+
target_include_directories(libjsonnet_static INTERFACE
|