mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 13:41:37 +08:00
5d03478623
* [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
34 lines
1.0 KiB
CMake
34 lines
1.0 KiB
CMake
set(VCPKG_LIBRARY_LINKAGE dynamic)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KhronosGroup/Vulkan-ValidationLayers
|
|
REF "vulkan-sdk-${VERSION}"
|
|
SHA512 755bdde7e7129b7a3ed06a4bebdaf11212288802119e0dc224aab63491de30c9b1c25972bdafd4fedbfea43bf6c29cdbc409374e57fbf0331798530a8ae94a70
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
|
|
|
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(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
set(layer_path "<vcpkg_installed>/bin")
|
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
|
set(layer_path "<vcpkg_installed>/share/vulkan/explicit_layer.d")
|
|
endif()
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|