2023-12-15 15:33:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KhronosGroup/Vulkan-Tools
|
|
|
|
REF "vulkan-sdk-${VERSION}"
|
2024-10-19 11:58:11 +08:00
|
|
|
SHA512 66bc89272f150198cd52f2971ad67a2fd6c922ac4bafb420c0d54788ca6bab2246e8a153a09eccce15a87e1fe16fdeef16af1c6b6b13386bff79dd73858f3cae
|
2023-12-15 15:33:39 +08:00
|
|
|
HEAD_REF main
|
2024-01-25 03:26:41 +08:00
|
|
|
PATCHES
|
|
|
|
fix-parallel-config.patch
|
2023-12-15 15:33:39 +08:00
|
|
|
)
|
|
|
|
|
2024-01-25 03:26:41 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_ANDROID)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # only builds tools
|
|
|
|
endif()
|
2023-12-15 15:33:39 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS:BOOL=OFF
|
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
|
|
|
2024-01-25 03:26:41 +08:00
|
|
|
set(tools vulkaninfo)
|
|
|
|
if(NOT VCPKG_TARGET_IS_ANDROID)
|
|
|
|
list(APPEND tools vkcube vkcubepp)
|
|
|
|
endif()
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN)
|
2023-12-15 15:33:39 +08:00
|
|
|
|
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
|
|
|
2024-01-25 03:26:41 +08:00
|
|
|
if(NOT VCPKG_TARGET_IS_ANDROID)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
endif()
|