]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tinygltf/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / tinygltf / portfile.cmake
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tinygltf/portfile.cmake b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/tinygltf/portfile.cmake
new file mode 100644 (file)
index 0000000..fbb2d2f
--- /dev/null
@@ -0,0 +1,15 @@
+# Header-only library\r
+vcpkg_from_github(\r
+    OUT_SOURCE_PATH SOURCE_PATH\r
+    REPO syoyo/tinygltf\r
+    REF 91da29972987bb4d715a09d94ecd2cefd3a487d4  #v2.4.2\r
+    SHA512 bede1f995b8f6cdab04140ab284576444ddb5baa8894150ac697e53bafbe03c339c274a2b9559572751a9408b33750d86105d8d24ebccbdfbc98555e7b3a1efd\r
+    HEAD_REF master\r
+)\r
+\r
+# Put the licence file where vcpkg expects it\r
+# Copy the tinygltf header files and fix the path to json\r
+vcpkg_replace_string(${SOURCE_PATH}/tiny_gltf.h "#include \"json.hpp\"" "#include <nlohmann/json.hpp>")\r
+file(INSTALL ${SOURCE_PATH}/tiny_gltf.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)\r
+\r
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)\r