meson: use depend_files to track extra file dependencies
authorDylan Baker <dylan@pnwbakers.com>
Tue, 23 Jan 2018 17:37:03 +0000 (09:37 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 15 Feb 2018 17:45:56 +0000 (09:45 -0800)
cc: Jason Ekstrand <jason.ekstrand@intel.com>
Fixes: f93994080993bda ("anv: Split anv_extensions.py into two files")
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 d0712f318c7734b128838c98dce7d89ce358425e..3f1a2de9fd33b1201e8d1688e9bacb4db6368e54 100644 (file)
@@ -31,13 +31,13 @@ anv_entrypoints = custom_target(
 
 anv_extensions_c = custom_target(
   'anv_extensions.c',
-  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.c',
   command : [
     prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--xml', '@INPUT2@',
     '--out-c', '@OUTPUT@',
   ],
+  depend_files : files('anv_extensions.py'),
 )
 
 anv_extensions_h = custom_target(