aboutsummaryrefslogtreecommitdiff
path: root/checkbuild.py
diff options
context:
space:
mode:
authorCody Northrop <cnorthrop@google.com>2018-10-22 10:06:10 -0600
committerCody Northrop <cnorthrop@google.com>2018-10-22 10:06:10 -0600
commit315cbaacf78323abff1e635470a0f7a08627cd95 (patch)
tree2b332220b9f29a450971ae8df6dea228d18edee3 /checkbuild.py
parentac1728d35848f54d7d6a2e2bfe3ed0ca422e5db7 (diff)
downloadndk-315cbaacf78323abff1e635470a0f7a08627cd95.tar.gz
Update Vulkan validation for split repo layout
Test: python checkbuild.py Test: python build.py --installdir /tmp/foo Change-Id: Ieb0ad8abed64e96585def2acb9049bed282c5695
Diffstat (limited to 'checkbuild.py')
-rwxr-xr-xcheckbuild.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/checkbuild.py b/checkbuild.py
index e8a3096fe..1da87705a 100755
--- a/checkbuild.py
+++ b/checkbuild.py
@@ -1602,6 +1602,8 @@ class Vulkan(ndk.builds.Module):
print('Constructing Vulkan validation layer source...')
vulkan_root_dir = ndk.paths.android_path(
'external/vulkan-validation-layers')
+ vulkan_headers_root_dir = ndk.paths.android_path(
+ 'external/vulkan-headers')
copies = [
{
@@ -1610,17 +1612,17 @@ class Vulkan(ndk.builds.Module):
'files': [
],
'dirs': [
- 'layers', 'include', 'tests', 'common', 'libs', 'scripts'
+ 'layers', 'tests', 'scripts'
],
},
{
- 'source_dir': vulkan_root_dir + '/loader',
- 'dest_dir': 'vulkan/src/loader',
+ 'source_dir': vulkan_headers_root_dir,
+ 'dest_dir': 'vulkan/src',
'files': [
- 'vk_loader_platform.h',
- 'vk_loader_layer.h'
],
- 'dirs': [],
+ 'dirs': [
+ 'include', 'registry'
+ ],
}
]
@@ -1661,7 +1663,8 @@ class Vulkan(ndk.builds.Module):
print('Copying finished')
build_cmd = [
- 'bash', vulkan_path + '/build-android/android-generate.sh'
+ 'bash', vulkan_path + '/build-android/android-generate.sh',
+ vulkan_path + '/registry'
]
print('Generating generated layers...')
subprocess.check_call(build_cmd)