meson: use depend_files for adding extra file dependencies
authorDylan Baker <dylan@pnwbakers.com>
Tue, 23 Jan 2018 17:39:25 +0000 (09:39 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 15 Feb 2018 17:46:04 +0000 (09:46 -0800)
cc: Jason Ekstrand <jason.ekstrand@intel.com>
Fixes: dd088d4bec74f37ffe4 ("anv/extensions: Generate a header file with extension tables")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/meson.build

index 3f1a2de9fd33b1201e8d1688e9bacb4db6368e54..1be389b67e3bc813418b63824aedb2ec17032019 100644 (file)
@@ -42,13 +42,13 @@ anv_extensions_c = custom_target(
 
 anv_extensions_h = custom_target(
   'anv_extensions.h',
-  input : ['anv_extensions_gen.py', vk_api_xml, vk_android_native_buffer_xml,
-           'anv_extensions.py'],
+  input : ['anv_extensions_gen.py', vk_api_xml, vk_android_native_buffer_xml],
   output : 'anv_extensions.h',
   command : [
     prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--xml', '@INPUT2@',
     '--out-h', '@OUTPUT@',
   ],
+  depend_files : files('anv_extensions.py'),
 )
 
 intel_icd = custom_target(