v3d: Rename the vc5_dri.so driver to v3d_dri.so.
[mesa.git] / src / gallium / meson.build
1 # Copyright © 2017 Dylan Baker
2 # Copyright © 2017-2018 Intel Corporation
3
4 # Permission is hereby granted, free of charge, to any person obtaining a copy
5 # of this software and associated documentation files (the "Software"), to deal
6 # in the Software without restriction, including without limitation the rights
7 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 # copies of the Software, and to permit persons to whom the Software is
9 # furnished to do so, subject to the following conditions:
10
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
13
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 # SOFTWARE.
21
22 inc_gallium_drivers = include_directories('drivers')
23 inc_gallium_winsys = include_directories('winsys')
24
25 subdir('auxiliary')
26 subdir('auxiliary/pipe-loader')
27 subdir('winsys/sw/null')
28 if with_dri
29 subdir('winsys/sw/dri')
30 else
31 libswdri = []
32 endif
33 if with_gallium_drisw_kms
34 subdir('winsys/sw/kms-dri')
35 else
36 libswkmsdri = []
37 endif
38 subdir('winsys/sw/wrapper')
39 if with_platform_haiku
40 subdir('winsys/sw/hgl')
41 endif
42 if with_gallium_swr
43 subdir('drivers/swr')
44 else
45 driver_swr = declare_dependency()
46 endif
47 if with_gallium_softpipe
48 subdir('drivers/softpipe')
49 if with_llvm
50 subdir('drivers/llvmpipe')
51 endif
52 else
53 driver_swrast = declare_dependency()
54 endif
55 if with_gallium_r300 or with_gallium_radeonsi or with_gallium_r600
56 subdir('winsys/radeon/drm')
57 endif
58 if with_gallium_r300
59 subdir('drivers/r300')
60 else
61 driver_r300 = declare_dependency()
62 endif
63 if with_gallium_r600
64 subdir('drivers/r600')
65 else
66 driver_r600 = declare_dependency()
67 endif
68 if with_gallium_radeonsi
69 subdir('winsys/amdgpu/drm')
70 subdir('drivers/radeonsi')
71 else
72 driver_radeonsi = declare_dependency()
73 endif
74 if with_gallium_nouveau
75 subdir('winsys/nouveau/drm')
76 subdir('drivers/nouveau')
77 else
78 driver_nouveau = declare_dependency()
79 endif
80 if with_gallium_freedreno
81 subdir('winsys/freedreno/drm')
82 subdir('drivers/freedreno')
83 else
84 driver_freedreno = declare_dependency()
85 endif
86 if with_gallium_vc4
87 subdir('winsys/vc4/drm')
88 subdir('drivers/vc4')
89 else
90 driver_vc4 = declare_dependency()
91 endif
92 if with_gallium_pl111
93 subdir('winsys/pl111/drm')
94 else
95 driver_pl111 = declare_dependency()
96 endif
97 if with_gallium_v3d
98 subdir('winsys/vc5/drm')
99 subdir('drivers/vc5')
100 else
101 driver_v3d = declare_dependency()
102 endif
103 if with_gallium_etnaviv
104 subdir('winsys/etnaviv/drm')
105 subdir('drivers/etnaviv')
106 else
107 driver_etnaviv = declare_dependency()
108 endif
109 if with_gallium_imx
110 subdir('winsys/imx/drm')
111 else
112 driver_imx = declare_dependency()
113 endif
114 if with_gallium_tegra
115 subdir('winsys/tegra/drm')
116 subdir('drivers/tegra')
117 else
118 driver_tegra = declare_dependency()
119 endif
120 if with_gallium_i915
121 subdir('winsys/i915/drm')
122 subdir('drivers/i915')
123 else
124 driver_i915 = declare_dependency()
125 endif
126 if with_gallium_svga
127 subdir('winsys/svga/drm')
128 subdir('drivers/svga')
129 else
130 driver_svga = declare_dependency()
131 endif
132 if with_gallium_virgl
133 subdir('winsys/virgl/drm')
134 subdir('winsys/virgl/vtest')
135 subdir('drivers/virgl')
136 else
137 driver_virgl = declare_dependency()
138 endif
139 if with_gallium_opencl
140 # TODO: this isn't really clover specific, but ATM clover is the only
141 # consumer
142 subdir('targets/pipe-loader')
143
144 subdir('state_trackers/clover')
145 subdir('targets/opencl')
146 endif
147 if with_dri
148 subdir('state_trackers/dri')
149 subdir('targets/dri')
150 endif
151 if with_osmesa == 'gallium'
152 subdir('state_trackers/osmesa')
153 subdir('targets/osmesa')
154 endif
155 if with_glx == 'gallium-xlib'
156 subdir('winsys/sw/xlib')
157 subdir('state_trackers/glx/xlib')
158 subdir('targets/libgl-xlib')
159 endif
160 if with_gallium_vdpau
161 subdir('state_trackers/vdpau')
162 subdir('targets/vdpau')
163 endif
164 if with_gallium_xvmc
165 subdir('state_trackers/xvmc')
166 subdir('targets/xvmc')
167 endif
168 if with_gallium_omx != 'disabled'
169 subdir('state_trackers/omx')
170 subdir('targets/omx')
171 endif
172 if with_gallium_va
173 subdir('state_trackers/va')
174 subdir('targets/va')
175 endif
176 if with_gallium_xa
177 subdir('state_trackers/xa')
178 subdir('targets/xa')
179 endif
180 if with_platform_haiku
181 subdir('state_trackers/hgl')
182 subdir('targets/haiku-softpipe')
183 endif
184 if with_gallium_st_nine
185 subdir('state_trackers/nine')
186 subdir('targets/d3dadapter9')
187 endif
188 if with_tests
189 subdir('targets/graw-null')
190 if with_glx == 'gallium-xlib'
191 subdir('targets/graw-xlib')
192 endif
193 subdir('tests')
194 endif