diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/spirv-cross/portfile.cmake | 12 | ||||
| -rw-r--r-- | ports/spirv-cross/vcpkg.json | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/ports/spirv-cross/portfile.cmake b/ports/spirv-cross/portfile.cmake index adb96cd40..951ba39cd 100644 --- a/ports/spirv-cross/portfile.cmake +++ b/ports/spirv-cross/portfile.cmake @@ -1,4 +1,3 @@ - vcpkg_check_linkage(ONLY_STATIC_LIBRARY) vcpkg_from_github( @@ -33,11 +32,12 @@ foreach(COMPONENT core c cpp glsl hlsl msl reflect util) vcpkg_fixup_cmake_targets(CONFIG_PATH share/spirv_cross_${COMPONENT}/cmake TARGET_PATH share/spirv_cross_${COMPONENT}) endforeach() -file(GLOB EXES "${CURRENT_PACKAGES_DIR}/bin/*") -file(COPY ${EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools) +vcpkg_copy_tools( + TOOL_NAMES spirv-cross + AUTO_CLEAN +) -# cleanup -configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/spirv-cross/copyright COPYONLY) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/spirv-cross/vcpkg.json b/ports/spirv-cross/vcpkg.json index 86c3ff3de..88b4a65f1 100644 --- a/ports/spirv-cross/vcpkg.json +++ b/ports/spirv-cross/vcpkg.json @@ -1,6 +1,7 @@ { "name": "spirv-cross", "version-date": "2021-01-15", + "port-version": 1, "description": "SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.", "homepage": "https://github.com/KhronosGroup/SPIRV-Cross", "dependencies": [ |
