[Mesa-dev] [PATCH 3/4] meson: use depend_files for adding extra file dependencies

Dylan Baker dylan at pnwbakers.com
Tue Jan 23 17:44:16 UTC 2018


cc: Jason Ekstrand <jason.ekstrand at intel.com>
cc: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
Fixes: dd088d4bec74f37ffe4 ("anv/extensions: Generate a header file with extension tables")
Signed-off-by: Dylan Baker <dylan.c.baker at intel.com>
---
 src/intel/vulkan/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index 3f1a2de9fd3..1be389b67e3 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -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(
-- 
2.16.0



More information about the mesa-dev mailing list