]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/ms-gltf/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / ms-gltf / portfile.cmake
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)
4 endif()
5
6 vcpkg_from_github(
7 OUT_SOURCE_PATH SOURCE_PATH
8 REPO microsoft/glTF-SDK
9 REF 9428f114b540fb93e6533d5ec460fc123efe0c86 # todo: r1.9.6.0
10 SHA512 900caf6d72d360bae4c7af769a8879507f7f727b40f61723ffed679ad22877fb37daed2a0dfcbf27e15ab3adc8afe3249530b95691ce489b3446e5d9a35f205a
11 HEAD_REF master
12 PATCHES
13 fix-install.patch
14 fix-apple-filesystem.patch
15 )
16
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
21 )
22
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}
28 OPTIONS
29 ${FEATURE_OPTIONS}
30 )
31 vcpkg_install_cmake()
32 vcpkg_copy_pdbs()
33
34 file(INSTALL ${SOURCE_PATH}/LICENSE
35 DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
36 )
37
38 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
39 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
40 endif()
41 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)