mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 08:18:11 +02:00
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:
parent
c8914985c4
commit
0dda43819e
2 changed files with 17 additions and 13 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue