aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/json-dto
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/json-dto
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/json-dto')
-rw-r--r--vcpkg/ports/json-dto/portfile.cmake25
-rw-r--r--vcpkg/ports/json-dto/vcpkg.json18
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/json-dto/portfile.cmake b/vcpkg/ports/json-dto/portfile.cmake
new file mode 100644
index 0000000..cb16015
--- /dev/null
+++ b/vcpkg/ports/json-dto/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO stiffstream/json_dto
+ REF "v.${VERSION}"
+ SHA512 176556702dfa4092b3e1b0face065b66041346d3f9e0a96bd96fada4b8ba2a423e83d11501fc724341f831d6b3e8ce93c0fd2f4f1018b1bfb0423f70e68e8adb
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}/dev
+ OPTIONS
+ -DJSON_DTO_INSTALL=ON
+ -DJSON_DTO_TEST=OFF
+ -DJSON_DTO_SAMPLE=OFF
+ -DJSON_DTO_INSTALL_SAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/json-dto)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
diff --git a/vcpkg/ports/json-dto/vcpkg.json b/vcpkg/ports/json-dto/vcpkg.json
new file mode 100644
index 0000000..c5e40fb
--- /dev/null
+++ b/vcpkg/ports/json-dto/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "json-dto",
+ "version": "0.3.4",
+ "description": "A small header-only library for converting data between json representation and c++ structs.",
+ "homepage": "https://github.com/Stiffstream/json_dto",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ "rapidjson",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}