diff options
author | Kristian H. Kristensen <[email protected]> | 2020-04-22 16:57:52 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-25 00:03:43 +0000 |
commit | da467817e3e25d201e94326ff876374093a3ba22 (patch) | |
tree | 4db398db544e9f7bba91af0cef0ad3977c9ace5d /src/freedreno/ir3/meson.build | |
parent | 869d86e664a02de0dc9a7f31defaffaa8ef07f91 (diff) |
freedreno/ir3: Move ir3 assembler to backend compiler
For easier reuse.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4741>
Diffstat (limited to 'src/freedreno/ir3/meson.build')
-rw-r--r-- | src/freedreno/ir3/meson.build | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/freedreno/ir3/meson.build b/src/freedreno/ir3/meson.build index 068d4262ee7..a9268b04c36 100644 --- a/src/freedreno/ir3/meson.build +++ b/src/freedreno/ir3/meson.build @@ -42,6 +42,24 @@ ir3_nir_imul_c = custom_target( depend_files : nir_algebraic_py, ) +ir3_parser = custom_target( + 'ir3_parser.[ch]', + input: 'ir3_parser.y', + output: ['ir3_parser.c', 'ir3_parser.h'], + command: [ + prog_bison, '@INPUT@', '--name-prefix=ir3_yy', '--defines=@OUTPUT1@', '--output=@OUTPUT0@' + ] +) + +ir3_lexer = custom_target( + 'ir3_lexer.c', + input: 'ir3_lexer.l', + output: 'ir3_lexer.c', + command: [ + prog_flex, '-o', '@OUTPUT@', '@INPUT@' + ] +) + libfreedreno_ir3_files = files( 'disasm-a3xx.c', 'instr-a3xx.h', @@ -85,7 +103,7 @@ libfreedreno_ir3_files = files( libfreedreno_ir3 = static_library( 'freedreno_ir3', - [libfreedreno_ir3_files, ir3_nir_trig_c, ir3_nir_imul_c], + [libfreedreno_ir3_files, ir3_nir_trig_c, ir3_nir_imul_c, ir3_parser[0], ir3_parser[1], ir3_lexer], include_directories : [inc_freedreno, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], c_args : [c_vis_args, no_override_init_args], cpp_args : [cpp_vis_args], |