anv/meson: Generate dev_icd.json
authorChad Versace <chadversary@chromium.org>
Wed, 1 Nov 2017 20:47:55 +0000 (13:47 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 10 Nov 2017 00:29:33 +0000 (16:29 -0800)
I tested this in a setup where the builddir was outside of the srcdir.

Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/intel/vulkan/meson.build

index debdcce4ef2656d2259697672989af15d8ddc62b..606a4898fe2dff101fdbf96cea7488912feaf751 100644 (file)
@@ -48,6 +48,18 @@ intel_icd = custom_target(
   install : true,
 )
 
+dev_icd = custom_target(
+  'dev_icd',
+  input : 'anv_icd.py',
+  output : 'dev_icd.@0@.json'.format(host_machine.cpu()),
+  command : [prog_python2, '@INPUT@',
+             '--lib-path', meson.current_build_dir(),
+             '--out', '@OUTPUT@'],
+  depend_files : files('anv_extensions.py'),
+  build_by_default : true,
+  install : false,
+)
+
 # TODO: workaround for anv_entrypoints combining the .h and .c files in it's
 # output. See issue #2346
 block_entrypoints = custom_target(