aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tinygltf/portfile.cmake
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/tinygltf/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/tinygltf/portfile.cmake')
-rw-r--r--vcpkg/ports/tinygltf/portfile.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/tinygltf/portfile.cmake b/vcpkg/ports/tinygltf/portfile.cmake
new file mode 100644
index 0000000..1e873f3
--- /dev/null
+++ b/vcpkg/ports/tinygltf/portfile.cmake
@@ -0,0 +1,15 @@
+# Header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO syoyo/tinygltf
+ REF "v${VERSION}"
+ SHA512 48075f77ff2d2c06688dec7b755faa42c7628559299ac05070eb505add826073f441f370fe1b805b39920788fa6129b6f98c9ed4b2e899dafcc67ea62a8f93d4
+ HEAD_REF master
+)
+
+# Put the licence file where vcpkg expects it
+# Copy the tinygltf header files and fix the path to json
+vcpkg_replace_string("${SOURCE_PATH}/tiny_gltf.h" "#include \"json.hpp\"" "#include <nlohmann/json.hpp>")
+file(INSTALL "${SOURCE_PATH}/tiny_gltf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")