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/vk-bootstrap | |
Diffstat (limited to 'vcpkg/ports/vk-bootstrap')
| -rw-r--r-- | vcpkg/ports/vk-bootstrap/fix-targets.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/vk-bootstrap/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/vk-bootstrap/vcpkg.json | 18 |
3 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/vk-bootstrap/fix-targets.patch b/vcpkg/ports/vk-bootstrap/fix-targets.patch new file mode 100644 index 0000000..9313cca --- /dev/null +++ b/vcpkg/ports/vk-bootstrap/fix-targets.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 43bc5cd..7d626fb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -137,7 +137,7 @@ if (VK_BOOTSTRAP_INSTALL)
+ message(FATAL_ERROR "Unable to locate required dependency Vulkan::Headers!")
+ endif()
+ endif()
+- include(@PACKAGE_VK_BOOTSTRAP_EXPORT_TARGETS@)
++ include("${CMAKE_CURRENT_LIST_DIR}/vk-bootstrap-targets.cmake")
+ ]=])
+
+ configure_package_config_file(
diff --git a/vcpkg/ports/vk-bootstrap/portfile.cmake b/vcpkg/ports/vk-bootstrap/portfile.cmake new file mode 100644 index 0000000..2e46e5c --- /dev/null +++ b/vcpkg/ports/vk-bootstrap/portfile.cmake @@ -0,0 +1,27 @@ +if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO charles-lunarg/vk-bootstrap
+ REF "v${VERSION}"
+ SHA512 d55752fbaa84ecf8c674eb9c8639553db2631024797e62b807078c95601dd711263381443d52ddd2ef6635d61ffcacd39650aa638363cf1d124ff0a37010c2d9
+ HEAD_REF master
+ PATCHES
+ fix-targets.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DVK_BOOTSTRAP_TEST=OFF
+ -DVK_BOOTSTRAP_INSTALL=ON
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/vk-bootstrap/vcpkg.json b/vcpkg/ports/vk-bootstrap/vcpkg.json new file mode 100644 index 0000000..46cf001 --- /dev/null +++ b/vcpkg/ports/vk-bootstrap/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "vk-bootstrap", + "version": "1.4.312", + "description": "Vulkan bootstraping library", + "homepage": "https://github.com/charles-lunarg/vk-bootstrap", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "vulkan-headers" + ] +} |