intel/compiler: Move bison command to shared meson.build

It is used by both brw and elk.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41738>
This commit is contained in:
Caio Oliveira 2026-05-14 16:17:51 -07:00 committed by Marge Bot
parent c8914985c4
commit 0dda43819e
2 changed files with 17 additions and 13 deletions

View file

@ -192,19 +192,6 @@ endif
if with_intel_tools
bison_command = []
if yacc_is_bison
bison_command = [
prog_bison, '@INPUT@', '--defines=@OUTPUT1@',
'--output=@OUTPUT0@'
]
else
bison_command = [
prog_bison, '-H', '@OUTPUT1@',
'-o', '@OUTPUT0@', '@INPUT@'
]
endif
brw_gram_tab = custom_target(
'brw_gram.tab.[ch]',
input : 'brw_gram.y',

View file

@ -34,6 +34,23 @@ brw_device_sha1_gen_src = custom_target('brw_device_sha1_gen.c',
output : ['brw_device_sha1_gen.c'],
command : [prog_python, '@INPUT0@', '--out', '@OUTPUT@'])
if with_intel_tools
bison_command = []
if yacc_is_bison
bison_command = [
prog_bison, '@INPUT@', '--defines=@OUTPUT1@',
'--output=@OUTPUT0@'
]
else
bison_command = [
prog_bison, '-H', '@OUTPUT1@',
'-o', '@OUTPUT0@', '@INPUT@'
]
endif
endif
subdir('brw')
subdir('jay')