xref: /aosp_15_r20/external/mesa3d/src/mesa/program/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1# Copyright © 2017 Intel Corporation
2# SPDX-License-Identifier: MIT
3
4bison_command = []
5if yacc_is_bison
6  bison_command = [prog_bison, '-o', '@OUTPUT0@', '--defines=@OUTPUT1@', '@INPUT@']
7else
8  bison_command = [prog_bison, '-o', '@OUTPUT0@', '-H', '@OUTPUT1@', '@INPUT@']
9endif
10
11mesa_lex = custom_target(
12  'mesa_lex',
13  input : 'program_lexer.l',
14  output : 'lex.yy.c',
15  command : [prog_flex, '-o', '@OUTPUT@', '@INPUT@'],
16)
17
18program_parse_tab = custom_target(
19  'program_parse_tab.[ch]',
20  input : 'program_parse.y',
21  output : ['program_parse.tab.c', 'program_parse.tab.h'],
22  command : bison_command,
23)
24