diff options
author | Cody Northrop <cnorthrop@google.com> | 2018-10-22 10:06:10 -0600 |
---|---|---|
committer | Cody Northrop <cnorthrop@google.com> | 2018-10-22 10:06:10 -0600 |
commit | 315cbaacf78323abff1e635470a0f7a08627cd95 (patch) | |
tree | 2b332220b9f29a450971ae8df6dea228d18edee3 /checkbuild.py | |
parent | ac1728d35848f54d7d6a2e2bfe3ed0ca422e5db7 (diff) | |
download | ndk-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-x | checkbuild.py | 17 |
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) |