aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vulkan-tools
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/vulkan-tools')
-rw-r--r--vcpkg/ports/vulkan-tools/portfile.cmake32
-rw-r--r--vcpkg/ports/vulkan-tools/vcpkg.json20
2 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/vulkan-tools/portfile.cmake b/vcpkg/ports/vulkan-tools/portfile.cmake
new file mode 100644
index 0000000..dd82eda
--- /dev/null
+++ b/vcpkg/ports/vulkan-tools/portfile.cmake
@@ -0,0 +1,32 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KhronosGroup/Vulkan-Tools
+ REF "vulkan-sdk-${VERSION}"
+ SHA512 ff505ba27556261103664b50ee88d26efdd040d7e0168ec0a37cdcebf421fbf75f73bdae55282c1e82b913491abd365a61edf95a5b917eb0b20abf6f60b89742
+ HEAD_REF main
+)
+
+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()
diff --git a/vcpkg/ports/vulkan-tools/vcpkg.json b/vcpkg/ports/vulkan-tools/vcpkg.json
new file mode 100644
index 0000000..94f81ff
--- /dev/null
+++ b/vcpkg/ports/vulkan-tools/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "vulkan-tools",
+ "version": "1.4.309.0",
+ "description": "Vulkan Development Tools",
+ "homepage": "https://github.com/KhronosGroup/Vulkan-Tools",
+ "license": "Apache-2.0",
+ "supports": "!osx",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "volk",
+ "vulkan-headers"
+ ]
+}