radv: Update CTS version.
[mesa.git] / src / amd / common / meson.build
1 # Copyright © 2017 Intel Corporation
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 sid_tables_h = custom_target(
22 'sid_tables_h',
23 input : ['sid_tables.py', 'sid.h', '../registers/amdgfxregs.json', '../registers/pkt3.json',
24 '../registers/gfx10.json', '../registers/gfx10-rsrc.json'],
25 output : 'sid_tables.h',
26 command : [prog_python, '@INPUT@'],
27 capture : true,
28 )
29
30 amdgfxregs_h = custom_target(
31 'amdgfxregs_h',
32 input : ['../registers/makeregheader.py', '../registers/amdgfxregs.json', '../registers/pkt3.json',
33 '../registers/gfx10.json', '../registers/gfx10-rsrc.json'],
34 output : 'amdgfxregs.h',
35 command : [prog_python, '@INPUT@', '--sort', 'address', '--guard', 'AMDGFXREGS_H'],
36 capture : true,
37 )
38
39 gfx10_format_table_c = custom_target(
40 'gfx10_format_table.c',
41 input : files(
42 'gfx10_format_table.py',
43 '../../util/format/u_format.csv', '../registers/gfx10-rsrc.json'
44 ),
45 output : 'gfx10_format_table.c',
46 command : [prog_python, '@INPUT@'],
47 capture : true,
48 depend_files : ['../registers/regdb.py']
49 )
50
51 amd_common_files = files(
52 'ac_binary.c',
53 'ac_binary.h',
54 'ac_exp_param.h',
55 'ac_shader_args.c',
56 'ac_shader_args.h',
57 'ac_shader_util.c',
58 'ac_shader_util.h',
59 'ac_gpu_info.c',
60 'ac_gpu_info.h',
61 'ac_rtld.c',
62 'ac_rtld.h',
63 'ac_surface.c',
64 'ac_surface.h',
65 'ac_debug.c',
66 'ac_debug.h',
67 'ac_shadowed_regs.c',
68 'ac_shadowed_regs.h',
69 )
70
71 libamd_common = static_library(
72 'amd_common',
73 [amd_common_files, sid_tables_h, amdgfxregs_h, gfx10_format_table_c],
74 include_directories : [
75 inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_compiler, inc_mapi, inc_amd,
76 ],
77 dependencies : [
78 dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind,
79 idep_nir_headers,
80 ],
81 gnu_symbol_visibility : 'hidden',
82 )
83
84 idep_amdgfxregs_h = declare_dependency(sources : [amdgfxregs_h])