meson: Build with Python 3
[mesa.git] / src / gallium / drivers / r600 / 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 files_r600 = files(
22 'r600d_common.h',
23 'compute_memory_pool.c',
24 'compute_memory_pool.h',
25 'eg_asm.c',
26 'eg_debug.c',
27 'eg_sq.h',
28 'evergreen_compute.c',
29 'evergreen_compute.h',
30 'evergreen_compute_internal.h',
31 'evergreend.h',
32 'evergreen_hw_context.c',
33 'evergreen_state.c',
34 'r600_asm.c',
35 'r600_asm.h',
36 'r600_blit.c',
37 'r600d.h',
38 'r600_formats.h',
39 'r600_hw_context.c',
40 'r600_isa.c',
41 'r600_isa.h',
42 'r600_opcodes.h',
43 'r600_pipe.c',
44 'r600_pipe.h',
45 'r600_public.h',
46 'r600_shader.c',
47 'r600_shader.h',
48 'r600_sq.h',
49 'r600_state.c',
50 'r600_state_common.c',
51 'r600_uvd.c',
52 'r700_asm.c',
53 'r700_sq.h',
54 'cayman_msaa.c',
55 'r600_buffer_common.c',
56 'r600_cs.h',
57 'r600_gpu_load.c',
58 'r600_perfcounter.c',
59 'r600_pipe_common.c',
60 'r600_pipe_common.h',
61 'r600_query.c',
62 'r600_query.h',
63 'r600_streamout.c',
64 'r600_test_dma.c',
65 'r600_texture.c',
66 'r600_viewport.c',
67 'radeon_uvd.c',
68 'radeon_uvd.h',
69 'radeon_vce.c',
70 'radeon_vce.h',
71 'radeon_video.c',
72 'radeon_video.h',
73 'sb/sb_bc_builder.cpp',
74 'sb/sb_bc_decoder.cpp',
75 'sb/sb_bc_dump.cpp',
76 'sb/sb_bc_finalize.cpp',
77 'sb/sb_bc.h',
78 'sb/sb_bc_parser.cpp',
79 'sb/sb_context.cpp',
80 'sb/sb_core.cpp',
81 'sb/sb_dce_cleanup.cpp',
82 'sb/sb_def_use.cpp',
83 'sb/sb_dump.cpp',
84 'sb/sb_expr.cpp',
85 'sb/sb_expr.h',
86 'sb/sb_gcm.cpp',
87 'sb/sb_gvn.cpp',
88 'sb/sb_if_conversion.cpp',
89 'sb/sb_ir.cpp',
90 'sb/sb_ir.h',
91 'sb/sb_liveness.cpp',
92 'sb/sb_pass.cpp',
93 'sb/sb_pass.h',
94 'sb/sb_peephole.cpp',
95 'sb/sb_psi_ops.cpp',
96 'sb/sb_public.h',
97 'sb/sb_ra_checker.cpp',
98 'sb/sb_ra_coalesce.cpp',
99 'sb/sb_ra_init.cpp',
100 'sb/sb_sched.cpp',
101 'sb/sb_sched.h',
102 'sb/sb_shader.cpp',
103 'sb/sb_shader.h',
104 'sb/sb_ssa_builder.cpp',
105 'sb/sb_valtable.cpp',
106 )
107
108 egd_tables_h = custom_target(
109 'egd_tables.h',
110 input : ['egd_tables.py', 'evergreend.h'],
111 output : 'egd_tables.h',
112 command : [prog_python, '@INPUT@'],
113 capture : true,
114 )
115
116 r600_c_args = []
117 if with_gallium_opencl
118 r600_c_args += '-DHAVE_OPENCL'
119 endif
120
121 libr600 = static_library(
122 'r600',
123 [files_r600, egd_tables_h],
124 c_args : [c_vis_args, r600_c_args],
125 cpp_args : [cpp_vis_args],
126 include_directories : [
127 inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,
128 inc_gallium_drivers,
129 ],
130 dependencies: [dep_libdrm_radeon, dep_elf, dep_llvm],
131 )
132
133 driver_r600 = declare_dependency(
134 compile_args : '-DGALLIUM_R600',
135 link_with : [libr600, libradeonwinsys],
136 )