Debian Codegraph @

src/panfrost/compiler/bifrost/valhall/meson.build

raw
1 # Copyright (C) 2020-2021 Collabora
2 # Copyright (C) 2018 Rob Clark
3 # SPDX-License-Identifier: MIT
4
5 valhall_c = custom_target(
6 'valhall_c',
7 input : ['valhall.c.py', 'ISA.xml'],
8 output : 'valhall.c',
9 command : [prog_python, '@INPUT0@', '--xml', '@INPUT1@'],
10 capture : true,
11 depend_files : files('valhall.py'),
12 )
13
14 valhall_enums_h = custom_target(
15 'valhall_enums.h',
16 input : ['valhall_enums.h.py', 'ISA.xml'],
17 output : 'valhall_enums.h',
18 command : [prog_python, '@INPUT0@', '--xml', '@INPUT1@'],
19 capture : true,
20 depend_files : files('valhall.py'),
21 )
22
23 idep_valhall_enums_h = declare_dependency(
24 sources : [valhall_enums_h],
25 include_directories : include_directories('.'),
26 )
27
28 valhall_disasm_c = custom_target(
29 'valhall_disasm_c',
30 input : ['disasm.py', 'ISA.xml'],
31 output : 'valhall_disasm.c',
32 command : [prog_python, '@INPUT0@', '--xml', '@INPUT1@'],
33 capture : true,
34 depend_files : files('valhall.py'),
35 )
36
37 libpanfrost_valhall_disasm = static_library(
38 'panfrost_valhall_disasm',
39 valhall_disasm_c,
40 include_directories : [inc_include, inc_src],
41 c_args : [no_override_init_args],
42 gnu_symbol_visibility : 'hidden',
43 build_by_default : false,
44 )
45
46 if with_tests
47 test(
48 'valhall_disasm',
49 executable(
50 'valhall_disasm_test',
51 files('test/test-disassembler.c'),
52 c_args : [c_msvc_compat_args, no_override_init_args],
53 gnu_symbol_visibility : 'hidden',
54 include_directories : [inc_include, inc_src],
55 dependencies: [idep_valhall_enums_h],
56 link_with : [libpanfrost_valhall_disasm],
57 ),
58 suite : ['panfrost'],
59 args : files('test/assembler-cases.txt'),
60 )
61
62 test(
63 'valhall_asm',
64 prog_python,
65 args : files('test-assembly.py', 'test/assembler-cases.txt', 'test/negative-cases.txt'),
66 suite : ['panfrost'],
67 )
68 endif