summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/meson.build
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-01-16 14:23:29 -0800
committerJason Ekstrand <[email protected]>2018-01-23 00:15:40 -0800
commitdd088d4bec74f37ffe4cd02626a6a8af93fdebac (patch)
tree644e2d71707045282f340eec9483edb6dbe13aba /src/intel/vulkan/meson.build
parentffb10bfd8e6ef3a325b733f302fefd4203ee05b9 (diff)
anv/extensions: Generate a header file with extension tables
This allows us better introspection into extensions. Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/intel/vulkan/meson.build')
-rw-r--r--src/intel/vulkan/meson.build19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index cbbd5677dcc..69ec26e19b6 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -37,7 +37,18 @@ anv_extensions_c = custom_target(
output : 'anv_extensions.c',
command : [
prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--xml', '@INPUT2@',
- '--out', '@OUTPUT@',
+ '--out-c', '@OUTPUT@',
+ ],
+)
+
+anv_extensions_h = custom_target(
+ 'anv_extensions.h',
+ input : ['anv_extensions_gen.py', vk_api_xml, vk_android_native_buffer_xml,
+ 'anv_extensions.py'],
+ output : 'anv_extensions.h',
+ command : [
+ prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--xml', '@INPUT2@',
+ '--out-h', '@OUTPUT@',
],
)
@@ -162,7 +173,7 @@ endif
libanv_common = static_library(
'anv_common',
- [libanv_files, anv_entrypoints, anv_extensions_c],
+ [libanv_files, anv_entrypoints, anv_extensions_c, anv_extensions_h],
include_directories : [
inc_common, inc_intel, inc_compiler, inc_drm_uapi, inc_vulkan_util,
inc_vulkan_wsi,
@@ -173,7 +184,7 @@ libanv_common = static_library(
libvulkan_intel = shared_library(
'vulkan_intel',
- [files('anv_gem.c'), block_entrypoints],
+ [files('anv_gem.c'), block_entrypoints, anv_extensions_h],
include_directories : [
inc_common, inc_intel, inc_compiler, inc_drm_uapi, inc_vulkan_util,
inc_vulkan_wsi,
@@ -194,7 +205,7 @@ libvulkan_intel = shared_library(
if with_tests
libvulkan_intel_test = static_library(
'vulkan_intel_test',
- [files('anv_gem_stubs.c'), block_entrypoints],
+ [files('anv_gem_stubs.c'), block_entrypoints, anv_extensions_h],
include_directories : [
inc_common, inc_intel, inc_compiler, inc_drm_uapi, inc_vulkan_util,
inc_vulkan_wsi,