meson: Turn on swr for relevant targets
[mesa.git] / src / gallium / meson.build
1 # Copyright © 2017 Dylan Baker
2 # Copyright © 2017 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('drivers/ddebug')
28 subdir('drivers/noop')
29 subdir('drivers/trace')
30 subdir('drivers/rbug')
31 subdir('winsys/sw/null')
32 subdir('winsys/sw/dri')
33 subdir('winsys/sw/kms-dri')
34 subdir('winsys/sw/wrapper')
35 if with_gallium_swr
36 if meson.version().version_compare('< 0.44.0')
37 error('SWR requires meson 0.44.0 or greater.')
38 endif
39 subdir('drivers/swr')
40 else
41 driver_swr = declare_dependency()
42 endif
43 if with_gallium_softpipe
44 subdir('drivers/softpipe')
45 if with_llvm
46 subdir('drivers/llvmpipe')
47 endif
48 else
49 driver_swrast = declare_dependency()
50 endif
51 if with_gallium_r300 or with_gallium_radeonsi or with_gallium_r600
52 subdir('winsys/radeon/drm')
53 endif
54 if with_gallium_r300
55 subdir('drivers/r300')
56 else
57 driver_r300 = declare_dependency()
58 endif
59 if with_gallium_r600
60 subdir('drivers/r600')
61 else
62 driver_r600 = declare_dependency()
63 endif
64 if with_gallium_radeonsi
65 subdir('winsys/amdgpu/drm')
66 subdir('drivers/radeon')
67 subdir('drivers/radeonsi')
68 else
69 driver_radeonsi = declare_dependency()
70 endif
71 if with_gallium_nouveau
72 subdir('winsys/nouveau/drm')
73 subdir('drivers/nouveau')
74 else
75 driver_nouveau = declare_dependency()
76 endif
77 if with_gallium_freedreno
78 subdir('winsys/freedreno/drm')
79 subdir('drivers/freedreno')
80 else
81 driver_freedreno = declare_dependency()
82 endif
83 if with_gallium_vc4
84 subdir('winsys/vc4/drm')
85 subdir('drivers/vc4')
86 else
87 driver_vc4 = declare_dependency()
88 endif
89 if with_gallium_pl111
90 subdir('winsys/pl111/drm')
91 else
92 driver_pl111 = declare_dependency()
93 endif
94 if with_gallium_vc5
95 subdir('winsys/vc5/drm')
96 subdir('drivers/vc5')
97 else
98 driver_vc5 = declare_dependency()
99 endif
100 if with_gallium_etnaviv
101 subdir('winsys/etnaviv/drm')
102 subdir('drivers/etnaviv')
103 else
104 driver_etnaviv = declare_dependency()
105 endif
106 if with_gallium_imx
107 subdir('winsys/imx/drm')
108 else
109 driver_imx = declare_dependency()
110 endif
111 if with_gallium_i915
112 subdir('winsys/i915/drm')
113 subdir('drivers/i915')
114 else
115 driver_i915 = declare_dependency()
116 endif
117 if with_gallium_svga
118 subdir('winsys/svga/drm')
119 subdir('drivers/svga')
120 else
121 driver_svga = declare_dependency()
122 endif
123 if with_gallium_virgl
124 subdir('winsys/virgl/drm')
125 subdir('winsys/virgl/vtest')
126 subdir('drivers/virgl')
127 else
128 driver_virgl = declare_dependency()
129 endif
130 if with_gallium_vdpau
131 subdir('state_trackers/vdpau')
132 endif
133 if with_gallium_xvmc
134 subdir('state_trackers/xvmc')
135 endif
136 if with_gallium_omx
137 subdir('state_trackers/omx_bellagio')
138 endif
139 if with_gallium_va
140 subdir('state_trackers/va')
141 endif
142 if with_gallium_xa
143 subdir('state_trackers/xa')
144 endif
145 if with_gallium_st_nine
146 subdir('state_trackers/nine')
147 endif
148 # TODO: clover
149 if with_dri
150 subdir('state_trackers/dri')
151 subdir('targets/dri')
152 endif
153 if with_osmesa == 'gallium'
154 subdir('state_trackers/osmesa')
155 subdir('targets/osmesa')
156 endif
157 if with_glx == 'gallium-xlib'
158 subdir('winsys/sw/xlib')
159 subdir('state_trackers/glx/xlib')
160 subdir('targets/libgl-xlib')
161 endif
162 if with_gallium_vdpau
163 subdir('targets/vdpau')
164 endif
165 if with_gallium_xvmc
166 subdir('targets/xvmc')
167 endif
168 if with_gallium_omx
169 subdir('targets/omx-bellagio')
170 endif
171 if with_gallium_va
172 subdir('targets/va')
173 endif
174 if with_gallium_xa
175 subdir('targets/xa')
176 endif
177 if with_gallium_st_nine
178 subdir('targets/d3dadapter9')
179 endif
180 # TODO: tests