From 7c2cbf1f537fa6bc4804d1f9df7a9d9fcae43e5c Mon Sep 17 00:00:00 2001 From: sean <43609023+spnda@users.noreply.github.com> Date: Mon, 13 Dec 2021 21:49:27 +0100 Subject: [PATCH] [vk-bootstrap] New port (#21949) --- ports/vk-bootstrap/portfile.cmake | 22 +++++++++++++++++++ ports/vk-bootstrap/vcpkg.json | 12 ++++++++++ ports/vk-bootstrap/vk-bootstrap-config.cmake | 14 ++++++++++++ .../vk-bootstrap-targets-debug.cmake | 12 ++++++++++ .../vk-bootstrap-targets-release.cmake | 12 ++++++++++ versions/baseline.json | 4 ++++ versions/v-/vk-bootstrap.json | 9 ++++++++ 7 files changed, 85 insertions(+) create mode 100644 ports/vk-bootstrap/portfile.cmake create mode 100644 ports/vk-bootstrap/vcpkg.json create mode 100644 ports/vk-bootstrap/vk-bootstrap-config.cmake create mode 100644 ports/vk-bootstrap/vk-bootstrap-targets-debug.cmake create mode 100644 ports/vk-bootstrap/vk-bootstrap-targets-release.cmake create mode 100644 versions/v-/vk-bootstrap.json diff --git a/ports/vk-bootstrap/portfile.cmake b/ports/vk-bootstrap/portfile.cmake new file mode 100644 index 0000000000..f0a1c3a6ca --- /dev/null +++ b/ports/vk-bootstrap/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO charles-lunarg/vk-bootstrap + REF 142986cdb767037118b687387b097ff6b3e7fe7d + SHA512 1dc32f09f4548ffaf71d39d5200d60a9bd58971327039f2adb4327fdb885f984bbd91409d28dbfc24e5fdac8c241824e141a2558cddc1b86b84cf2376e7d7567 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/${PORT}-config.cmake" "${CMAKE_CURRENT_LIST_DIR}/${PORT}-targets-release.cmake" "${CMAKE_CURRENT_LIST_DIR}/${PORT}-targets-debug.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) + +configure_file("${SOURCE_PATH}/LICENSE.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) diff --git a/ports/vk-bootstrap/vcpkg.json b/ports/vk-bootstrap/vcpkg.json new file mode 100644 index 0000000000..5126f4ca18 --- /dev/null +++ b/ports/vk-bootstrap/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "vk-bootstrap", + "version": "0.5", + "description": "Vulkan bootstraping library", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + "vulkan" + ] +} diff --git a/ports/vk-bootstrap/vk-bootstrap-config.cmake b/ports/vk-bootstrap/vk-bootstrap-config.cmake new file mode 100644 index 0000000000..4d2244eae8 --- /dev/null +++ b/ports/vk-bootstrap/vk-bootstrap-config.cmake @@ -0,0 +1,14 @@ +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) + +add_library(vk-bootstrap::vk-bootstrap SHARED IMPORTED) +set_target_properties(vk-bootstrap::vk-bootstrap PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include" +) + +get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +file(GLOB CONFIG_FILES "${_DIR}/vk-bootstrap-targets-*.cmake") +foreach(f ${CONFIG_FILES}) + include(${f}) +endforeach() diff --git a/ports/vk-bootstrap/vk-bootstrap-targets-debug.cmake b/ports/vk-bootstrap/vk-bootstrap-targets-debug.cmake new file mode 100644 index 0000000000..ec882d4336 --- /dev/null +++ b/ports/vk-bootstrap/vk-bootstrap-targets-debug.cmake @@ -0,0 +1,12 @@ +#---------------------------------------------------------------- +# Generated CMake target import file for configuration "Debug". +#---------------------------------------------------------------- + +set(CMAKE_IMPORT_FILE_VERSION 1) + +set_property(TARGET vk-bootstrap::vk-bootstrap APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) +set_target_properties(vk-bootstrap::vk-bootstrap PROPERTIES + IMPORTED_IMPLIB_DEBUG "${_IMPORT_PREFIX}/debug/lib/vk-bootstrap.lib" +) + +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/ports/vk-bootstrap/vk-bootstrap-targets-release.cmake b/ports/vk-bootstrap/vk-bootstrap-targets-release.cmake new file mode 100644 index 0000000000..a25d3be076 --- /dev/null +++ b/ports/vk-bootstrap/vk-bootstrap-targets-release.cmake @@ -0,0 +1,12 @@ +#---------------------------------------------------------------- +# Generated CMake target import file for configuration "Debug". +#---------------------------------------------------------------- + +set(CMAKE_IMPORT_FILE_VERSION 1) + +set_property(TARGET vk-bootstrap::vk-bootstrap APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) +set_target_properties(vk-bootstrap::vk-bootstrap PROPERTIES + IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/vk-bootstrap.lib" +) + +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/versions/baseline.json b/versions/baseline.json index 0543d8890e..2a59320fda 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7132,6 +7132,10 @@ "baseline": "1.0", "port-version": 2 }, + "vk-bootstrap": { + "baseline": "0.5", + "port-version": 0 + }, "vlfeat": { "baseline": "2020-07-10", "port-version": 1 diff --git a/versions/v-/vk-bootstrap.json b/versions/v-/vk-bootstrap.json new file mode 100644 index 0000000000..25a7da98c5 --- /dev/null +++ b/versions/v-/vk-bootstrap.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "c882b9c4c2adf3ea8e63dae9d4ab03b4d34a4dc1", + "version": "0.5", + "port-version": 0 + } + ] +}