1 vcpkg_fail_port_install(MESSAGE "ms-gltf currently only supports Windows and Mac platforms" ON_TARGET "linux" "ios")
2 if(VCPKG_TARGET_IS_WINDOWS)
3 vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
7 OUT_SOURCE_PATH SOURCE_PATH
8 REPO microsoft/glTF-SDK
9 REF 9428f114b540fb93e6533d5ec460fc123efe0c86 # todo: r1.9.6.0
10 SHA512 900caf6d72d360bae4c7af769a8879507f7f727b40f61723ffed679ad22877fb37daed2a0dfcbf27e15ab3adc8afe3249530b95691ce489b3446e5d9a35f205a
14 fix-apple-filesystem.patch
17 # note: Test/Sample executables won't be installed
18 vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
19 test ENABLE_UNIT_TESTS
20 samples ENABLE_SAMPLES
23 # note: Platform-native buildsystem will be more helpful to launch/debug the tests/samples.
24 # note: The PDB file path is making Ninja fails to install.
25 # For Windows, we rely on /MP. The other platforms should be able to build with PREFER_NINJA.
26 vcpkg_configure_cmake(
27 SOURCE_PATH ${SOURCE_PATH}
34 file(INSTALL ${SOURCE_PATH}/LICENSE
35 DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
38 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
39 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
41 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)