Mesa (master): anv/meson: Generate dev_icd.json

Chad Versace chadversary at kemper.freedesktop.org
Fri Nov 10 00:30:20 UTC 2017


Module: Mesa
Branch: master
Commit: cd6f79a71d75d5d756176a03f04c4442c0ef9e7f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd6f79a71d75d5d756176a03f04c4442c0ef9e7f

Author: Chad Versace <chadversary at chromium.org>
Date:   Wed Nov  1 13:47:55 2017 -0700

anv/meson: Generate dev_icd.json

I tested this in a setup where the builddir was outside of the srcdir.

Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

---

 src/intel/vulkan/meson.build | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index debdcce4ef..606a4898fe 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -48,6 +48,18 @@ intel_icd = custom_target(
   install : true,
 )
 
+dev_icd = custom_target(
+  'dev_icd',
+  input : 'anv_icd.py',
+  output : 'dev_icd. at 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(




More information about the mesa-commit mailing list