mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 06:57:52 +08:00
35 lines
897 B
CMake
35 lines
897 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KhronosGroup/Vulkan-Tools
|
|
REF "vulkan-sdk-${VERSION}"
|
|
SHA512 d28dd0a83e993058f58ba83c148a3104c1bbe4e731b81bfc934a989dfcdf3cc1b22383bcaee2a34545ddb9b053e00bea3da463d48fa10727a18ee7e34641d1cb
|
|
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()
|