Clone vulkan headers if needed
parent
18edd4eb50
commit
70d0e81c36
@ -1 +0,0 @@
|
||||
Subproject commit 7264358702061d3ed819d62d3d6fd66ab1da33c3
|
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
GIT="$1"
|
||||
BUILD_DIR="$2"
|
||||
|
||||
if [ ! -f "$BUILD_DIR/registry/vk.xml" ]; then
|
||||
"$GIT" clone --depth 1 https://github.com/KhronosGroup/Vulkan-Headers.git "$BUILD_DIR"
|
||||
fi
|
||||
|
||||
ln -sf "registry/vk.xml" modules/Vulkan-Headers/
|
||||
ln -sf "include/vulkan" modules/Vulkan-Headers/
|
@ -0,0 +1,12 @@
|
||||
prog_git = find_program('git')
|
||||
prog_sh = find_program('sh')
|
||||
script_clone_hdrs = files('clone_headers.sh')
|
||||
|
||||
vk_api_xml = custom_target(
|
||||
'vk_api_xml',
|
||||
input : [],
|
||||
output : ['vk.xml'], # because output can't have segments, link vk.xml to this subdir dir in build prefix
|
||||
command : [
|
||||
prog_sh, script_clone_hdrs, prog_git, meson.current_build_dir()
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue