diff options
Diffstat (limited to 'vcpkg/ports/fastgltf')
| -rw-r--r-- | vcpkg/ports/fastgltf/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/fastgltf/vcpkg.json | 18 |
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/fastgltf/portfile.cmake b/vcpkg/ports/fastgltf/portfile.cmake new file mode 100644 index 0000000..ba5e088 --- /dev/null +++ b/vcpkg/ports/fastgltf/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO spnda/fastgltf
+ REF "v${VERSION}"
+ SHA512 b18162eb8a1631d9a28ed97961ac8f08d6aa2797f2bf035a470660cfd052f25c2bd47b77ce2c3f5367d5006c706cf6e00a710c14a25ad5e02b619430ea076882
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
+vcpkg_copy_pdbs()
+
+file(READ "${CURRENT_PACKAGES_DIR}/share/fastgltf/fastgltfConfig.cmake" contents)
+file(WRITE "${CURRENT_PACKAGES_DIR}/share/fastgltf/fastgltfConfig.cmake" "
+include(CMakeFindDependencyMacro)
+find_dependency(simdjson)
+${contents}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
diff --git a/vcpkg/ports/fastgltf/vcpkg.json b/vcpkg/ports/fastgltf/vcpkg.json new file mode 100644 index 0000000..076ce17 --- /dev/null +++ b/vcpkg/ports/fastgltf/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "fastgltf", + "version": "0.9.0", + "description": "A modern C++17 glTF 2.0 library focused on speed, correctness, and usability", + "homepage": "https://github.com/spnda/fastgltf", + "license": "MIT", + "dependencies": [ + "simdjson", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |