Adds vk-bootstrap (#1184)

* Adds vk-bootstrap

Add support for Vulkan Bootstrapping Iibrary.

* Fixes install parameters

Remove `-m release`.

* Updates version and sha256 for vk-bootstrap

* Update xmake.lua

Co-authored-by: ruki <waruqi@gmail.com>
pull/1170/head
Zheng Zeng 3 years ago committed by GitHub
parent d4044d3c95
commit 291f3d35bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 45
      packages/v/vk-bootstrap/xmake.lua

@ -0,0 +1,45 @@
package("vk-bootstrap")
set_homepage("https://github.com/charles-lunarg/vk-bootstrap")
set_description("Vulkan Bootstrapping Iibrary.")
set_license("MIT")
add_urls("https://github.com/charles-lunarg/vk-bootstrap/archive/refs/tags/$(version).tar.gz",
"https://github.com/charles-lunarg/vk-bootstrap.git")
add_versions("v0.5", "7ec1017d71d48595c078a4488140b230fd9cad1059986a18a507f356bf00e89b")
add_deps("vulkan-headers")
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
if is_plat("linux") then
add_syslinks("dl")
end
on_install("windows", "linux", "macosx", function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
add_requires("vulkan-headers")
target("vk-bootstrap")
set_kind("static")
set_languages("cxx14")
add_files("src/VkBootstrap.cpp")
add_headerfiles("src/VkBootstrap.h")
add_headerfiles("src/VkBootstrapDispatch.h")
add_packages("vulkan-headers")
if is_plat("linux") then
add_syslinks("dl")
end
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
vkb::InstanceBuilder builder;
auto inst_ret = builder.set_app_name ("Example Vulkan Application")
.request_validation_layers ()
.use_default_debug_messenger ()
.build ();
]]}, {configs = {languages = "cxx14"}, includes = "VkBootstrap.h"}))
end)
Loading…
Cancel
Save