aboutsummaryrefslogtreecommitdiff
path: root/ports/tinygltf
diff options
context:
space:
mode:
authorThad House <thadhouse1@gmail.com>2019-05-31 13:49:13 -0700
committerThad House <thadhouse1@gmail.com>2019-05-31 13:49:13 -0700
commit788af2a75cfddbb9ef4e4217f4c0b506d25f2f3b (patch)
tree173ade0e6960917458afe9dd9fb0c3c2b7f32051 /ports/tinygltf
parentf483ae4c7fd04eed671a1de595374f84175311e9 (diff)
parent26a9338c5055193915290527eacb37f2ac7fdcb8 (diff)
downloadvcpkg-788af2a75cfddbb9ef4e4217f4c0b506d25f2f3b.tar.gz
vcpkg-788af2a75cfddbb9ef4e4217f4c0b506d25f2f3b.zip
Merge master
Diffstat (limited to 'ports/tinygltf')
-rw-r--r--ports/tinygltf/CONTROL4
-rw-r--r--ports/tinygltf/portfile.cmake17
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/tinygltf/CONTROL b/ports/tinygltf/CONTROL
new file mode 100644
index 000000000..4baf2cf21
--- /dev/null
+++ b/ports/tinygltf/CONTROL
@@ -0,0 +1,4 @@
+Source: tinygltf
+Version: 2.2.0
+Description: A header only C++11 glTF 2.0 library.
+Build-Depends: stb, nlohmann-json \ No newline at end of file
diff --git a/ports/tinygltf/portfile.cmake b/ports/tinygltf/portfile.cmake
new file mode 100644
index 000000000..f78f2b017
--- /dev/null
+++ b/ports/tinygltf/portfile.cmake
@@ -0,0 +1,17 @@
+# Header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO syoyo/tinygltf
+ REF v2.2.0
+ SHA512 5a63fab31dd49e25fe2a32f66bbcae5a6340ced403dc51de65ee7363bb9b358e546bbecd116a53062099f90a2579a5178dcc5c4268d4b99c0afe30fac20ad7cf
+ HEAD_REF master
+)
+
+# Put the licence file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinygltf/LICENSE)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinygltf/LICENSE ${CURRENT_PACKAGES_DIR}/share/tinygltf/copyright)
+
+# Copy the tinygltf header files
+file(COPY ${SOURCE_PATH}/tiny_gltf.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)