vcpkg/ports/vulkan-tools/portfile.cmake
moritz-h 5d03478623
[vulkan*] update to 1.3.275.0 (#36262)
* [vulkan*] update to 1.3.275.0

* fix cmake config path

* update volk to fix vulkan-tools

* fix lunarg-vulkantools

* fix android

* build vulkan layers always dynamic

* fix android

* staticcrt

* fix description

* remove debug layer json files

* fix android

* fix parallel config
2024-01-24 11:26:41 -08:00

35 lines
897 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KhronosGroup/Vulkan-Tools
REF "vulkan-sdk-${VERSION}"
SHA512 5d70498341b8d2447128cd5ab3fd081b706830f5f85d9f7e752dfca9c74fa4c1567207eef6e34e9bf99ff65ec2855b835eb30362fd544e1cf61ecc7a7119df06
HEAD_REF main
PATCHES
fix-parallel-config.patch
)
if(NOT VCPKG_TARGET_IS_ANDROID)
set(VCPKG_BUILD_TYPE release) # only builds tools
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTS:BOOL=OFF
)
vcpkg_cmake_install()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
set(tools vulkaninfo)
if(NOT VCPKG_TARGET_IS_ANDROID)
list(APPEND tools vkcube vkcubepp)
endif()
vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN)
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
if(NOT VCPKG_TARGET_IS_ANDROID)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
endif()