diff options
Diffstat (limited to 'vcpkg/ports/jsoncons')
| -rw-r--r-- | vcpkg/ports/jsoncons/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/jsoncons/vcpkg.json | 17 |
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/jsoncons/portfile.cmake b/vcpkg/ports/jsoncons/portfile.cmake new file mode 100644 index 0000000..3f7c8c7 --- /dev/null +++ b/vcpkg/ports/jsoncons/portfile.cmake @@ -0,0 +1,25 @@ +# header-only library +vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION} + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO danielaparker/jsoncons + REF v${VERSION} + SHA512 01b6df6354b3f6f29dcc341b74d94f6a45846546e67adf34cff3bd1befcf436390fa246faf5da4153f6ce3a5c5b3ec8c160e5bc9a0e1a7dc2b092a3e3f0fd69d + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DJSONCONS_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/${PORT}") +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/jsoncons/vcpkg.json b/vcpkg/ports/jsoncons/vcpkg.json new file mode 100644 index 0000000..234e16d --- /dev/null +++ b/vcpkg/ports/jsoncons/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "jsoncons", + "version": "1.4.3", + "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", + "homepage": "https://github.com/danielaparker/jsoncons", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |