aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vulkan-extensionlayer
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/vulkan-extensionlayer')
-rw-r--r--vcpkg/ports/vulkan-extensionlayer/portfile.cmake28
-rw-r--r--vcpkg/ports/vulkan-extensionlayer/usage5
-rw-r--r--vcpkg/ports/vulkan-extensionlayer/vcpkg.json20
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/vulkan-extensionlayer/portfile.cmake b/vcpkg/ports/vulkan-extensionlayer/portfile.cmake
new file mode 100644
index 0000000..9119214
--- /dev/null
+++ b/vcpkg/ports/vulkan-extensionlayer/portfile.cmake
@@ -0,0 +1,28 @@
+set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
+
+vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KhronosGroup/Vulkan-ExtensionLayer
+ REF "vulkan-sdk-${VERSION}"
+ SHA512 a58d52dfdb73624a739784bfcb5e775ba7318478d6844a09a3fbbf71d092e080664b3dbde2eba282c671286e2f925b3f70986a09d97784256b88de8cabb67d47
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS:BOOL=OFF
+)
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+if(VCPKG_TARGET_IS_ANDROID)
+ set(VCPKG_POLICY_SKIP_USAGE_INSTALL_CHECK enabled)
+else()
+ file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+endif()
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/vulkan-extensionlayer/usage b/vcpkg/ports/vulkan-extensionlayer/usage
new file mode 100644
index 0000000..b195c89
--- /dev/null
+++ b/vcpkg/ports/vulkan-extensionlayer/usage
@@ -0,0 +1,5 @@
+vulkan-extensionlayer provides a JSON manifest directory
+which can be added to the environment variable VK_ADD_LAYER_PATH:
+
+ Windows: <vcpkg-install-root>/bin
+ Other: <vcpkg-install-root>/share/vulkan/explicit_layers.d
diff --git a/vcpkg/ports/vulkan-extensionlayer/vcpkg.json b/vcpkg/ports/vulkan-extensionlayer/vcpkg.json
new file mode 100644
index 0000000..08dd0ec
--- /dev/null
+++ b/vcpkg/ports/vulkan-extensionlayer/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "vulkan-extensionlayer",
+ "version": "1.4.309.0",
+ "description": "Layer providing Vulkan features when native support is unavailable",
+ "homepage": "https://github.com/KhronosGroup/Vulkan-ExtensionLayer",
+ "license": "Apache-2.0",
+ "supports": "!static",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "vulkan-headers",
+ "vulkan-utility-libraries"
+ ]
+}