OSDN Git Service

9e249adc61eeb5f70887c384078ebc94f6c3d8e0
[android-x86/external-mesa.git] / src / gallium / drivers / radeonsi / meson.build
1 # Copyright © 2017 Dylan Baker
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_libradeonsi = files(
22   'cik_sdma.c',
23   'driinfo_radeonsi.h',
24   'si_blit.c',
25   'si_buffer.c',
26   'si_build_pm4.h',
27   'si_clear.c',
28   'si_compute.c',
29   'si_compute.h',
30   'si_cp_dma.c',
31   'si_debug.c',
32   'si_descriptors.c',
33   'si_dma.c',
34   'si_dma_cs.c',
35   'si_fence.c',
36   'si_get.c',
37   'si_gfx_cs.c',
38   'si_gpu_load.c',
39   'si_perfcounter.c',
40   'si_pipe.c',
41   'si_pipe.h',
42   'si_pm4.c',
43   'si_pm4.h',
44   'si_public.h',
45   'si_query.c',
46   'si_query.h',
47   'si_shader.c',
48   'si_shader.h',
49   'si_shader_internal.h',
50   'si_shader_nir.c',
51   'si_shader_tgsi_alu.c',
52   'si_shader_tgsi_mem.c',
53   'si_shader_tgsi_setup.c',
54   'si_state.c',
55   'si_state.h',
56   'si_state_binning.c',
57   'si_state_draw.c',
58   'si_state_msaa.c',
59   'si_state_shaders.c',
60   'si_state_streamout.c',
61   'si_state_viewport.c',
62   'si_test_clearbuffer.c',
63   'si_test_dma.c',
64   'si_texture.c',
65   'si_uvd.c',
66   '../radeon/r600_perfcounter.c',
67   '../radeon/radeon_uvd.c',
68   '../radeon/radeon_uvd.h',
69   '../radeon/radeon_vcn_enc_1_2.c',
70   '../radeon/radeon_vcn_enc.c',
71   '../radeon/radeon_vcn_enc.h',
72   '../radeon/radeon_vcn_dec.c',
73   '../radeon/radeon_vcn_dec.h',
74   '../radeon/radeon_uvd_enc_1_1.c',
75   '../radeon/radeon_uvd_enc.c',
76   '../radeon/radeon_uvd_enc.h',
77   '../radeon/radeon_vce_40_2_2.c',
78   '../radeon/radeon_vce_50.c',
79   '../radeon/radeon_vce_52.c',
80   '../radeon/radeon_vce.c',
81   '../radeon/radeon_vce.h',
82   '../radeon/radeon_video.c',
83   '../radeon/radeon_video.h',
84   '../radeon/radeon_winsys.h',
85 )
86
87 si_driinfo_h = custom_target(
88   'si_driinfo.h',
89   input : files(
90     '../../../util/merge_driinfo.py',
91     '../../auxiliary/pipe-loader/driinfo_gallium.h', 'driinfo_radeonsi.h'
92   ),
93   output : 'si_driinfo.h',
94   command : [prog_python2, '@INPUT@'],
95   capture : true,
96 )
97
98 libradeonsi = static_library(
99   'radeonsi',
100   [files_libradeonsi, si_driinfo_h, sid_tables_h],
101   include_directories : [
102     inc_src, inc_include, inc_gallium, inc_gallium_aux, inc_amd_common,
103     inc_gallium_drivers,
104   ],
105   c_args : ['-Wstrict-overflow=0', c_vis_args],
106   cpp_args : [cpp_vis_args],
107   dependencies : [dep_llvm, dep_clock, dep_libdrm_radeon, idep_nir_headers],
108 )
109
110 driver_radeonsi = declare_dependency(
111   compile_args : '-DGALLIUM_RADEONSI',
112   sources : si_driinfo_h,
113   link_with : [
114     libradeonsi, libradeonwinsys, libamdgpuwinsys, libamd_common,
115   ],
116   dependencies : idep_nir,
117 )