)
endforeach
-oa_generator = generator(
- prog_python2,
- arguments : [
- '@CURRENT_SOURCE_DIR@/brw_oa.py', '@INPUT@', '--chipset', '@EXTRA_ARGS@',
- '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
- ],
- output : ['@BASENAME@.c', '@BASENAME@.h'],
-)
-
i965_oa_sources = []
foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3']
- _xml = 'brw_oa_@0@.xml'.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', '@0@.xml'.format(_name)],
+ output : ['@0@.c'.format(_name), '@0@.h'.format(_name)],
+ command : [
+ prog_python2, '@INPUT0@', '--chipset', hw, '--code', '@OUTPUT0@',
+ '--header', '@OUTPUT1@', '@INPUT1@',
+ ],
+ )
endforeach
libi965 = static_library(