diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vulkan-validationlayers | |
Diffstat (limited to 'vcpkg/ports/vulkan-validationlayers')
| -rw-r--r-- | vcpkg/ports/vulkan-validationlayers/portfile.cmake | 33 | ||||
| -rw-r--r-- | vcpkg/ports/vulkan-validationlayers/usage | 2 | ||||
| -rw-r--r-- | vcpkg/ports/vulkan-validationlayers/vcpkg.json | 25 |
3 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/vulkan-validationlayers/portfile.cmake b/vcpkg/ports/vulkan-validationlayers/portfile.cmake new file mode 100644 index 0000000..135298a --- /dev/null +++ b/vcpkg/ports/vulkan-validationlayers/portfile.cmake @@ -0,0 +1,33 @@ +set(VCPKG_LIBRARY_LINKAGE dynamic) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KhronosGroup/Vulkan-ValidationLayers + REF "vulkan-sdk-${VERSION}" + SHA512 453fb519e2b4e035e82f9e372e235e6870eff7e32938fc903a3ee35354f4a535393f9f45264518e8ff5113ce3d59450668253b8d9b833c6f0669b7a1373cb7cc + 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) diff --git a/vcpkg/ports/vulkan-validationlayers/usage b/vcpkg/ports/vulkan-validationlayers/usage new file mode 100644 index 0000000..d74b334 --- /dev/null +++ b/vcpkg/ports/vulkan-validationlayers/usage @@ -0,0 +1,2 @@ +The package @PORT@ provides the vulkan validationlayers.
+To make vulkan use them you have to manually add the vcpkg path "@layer_path@" to the environment variable VK_ADD_LAYER_PATH.
\ No newline at end of file diff --git a/vcpkg/ports/vulkan-validationlayers/vcpkg.json b/vcpkg/ports/vulkan-validationlayers/vcpkg.json new file mode 100644 index 0000000..5d353d6 --- /dev/null +++ b/vcpkg/ports/vulkan-validationlayers/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "vulkan-validationlayers", + "version": "1.4.309.0", + "description": "Vulkan Validation Layers (VVL)", + "homepage": "https://github.com/KhronosGroup/Vulkan-ValidationLayers", + "license": null, + "dependencies": [ + "mimalloc", + "robin-hood-hashing", + "spirv-cross", + "spirv-headers", + "spirv-reflect", + "spirv-tools", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "vulkan-headers", + "vulkan-utility-libraries" + ] +} |