summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/meson.build21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i965/meson.build b/src/mesa/drivers/dri/i965/meson.build
index 9adda06183d..8ce54449002 100644
--- a/src/mesa/drivers/dri/i965/meson.build
+++ b/src/mesa/drivers/dri/i965/meson.build
@@ -148,20 +148,19 @@ foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100']
)
endforeach
-oa_generator = generator(
- prog_python2,
- arguments : [
- '@CURRENT_SOURCE_DIR@/brw_oa.py', '@INPUT@', '--chipset', '@EXTRA_ARGS@',
- '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
- ],
-)
-
i965_oa_sources = []
foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3']
- _xml = 'brw_oa_@[email protected]'.format(hw)
- i965_oa_sources += oa_generator.process(_xml, extra_args : hw)
+ _name = 'brw_oa_@0@'.format(hw)
+ i965_oa_sources += custom_target(
+ _name,
+ input : ['brw_oa.py', '@[email protected]'.format(_name)],
+ output : ['@[email protected]'.format(_name), '@[email protected]'.format(_name)],
+ command : [
+ prog_python2, '@INPUT0@', '--chipset', hw, '--code', '@OUTPUT0@',
+ '--header', '@OUTPUT1@', '@INPUT1@',
+ ],
+ )
endforeach
libi965 = static_library(