1 # Copyright © 2017 Dylan Baker
2 # Copyright © 2017-2018 Intel Corporation
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:
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
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
22 inc_gallium_drivers = include_directories('drivers')
23 inc_gallium_winsys = include_directories('winsys')
26 subdir('auxiliary/pipe-loader')
27 subdir('winsys/sw/null')
29 subdir('winsys/sw/dri')
33 if with_gallium_drisw_kms
34 subdir('winsys/sw/kms-dri')
38 subdir('winsys/sw/wrapper')
39 if with_platform_haiku
40 subdir('winsys/sw/hgl')
45 driver_swr = declare_dependency()
47 if with_gallium_softpipe
48 subdir('drivers/softpipe')
50 subdir('drivers/llvmpipe')
53 driver_swrast = declare_dependency()
55 if with_gallium_r300 or with_gallium_radeonsi or with_gallium_r600
56 subdir('winsys/radeon/drm')
59 subdir('drivers/r300')
61 driver_r300 = declare_dependency()
64 subdir('drivers/r600')
66 driver_r600 = declare_dependency()
68 if with_gallium_radeonsi
69 subdir('winsys/amdgpu/drm')
70 subdir('drivers/radeonsi')
72 driver_radeonsi = declare_dependency()
74 if with_gallium_nouveau
75 subdir('winsys/nouveau/drm')
76 subdir('drivers/nouveau')
78 driver_nouveau = declare_dependency()
80 if with_gallium_freedreno
81 subdir('winsys/freedreno/drm')
82 subdir('drivers/freedreno')
84 driver_freedreno = declare_dependency()
87 subdir('winsys/vc4/drm')
90 driver_vc4 = declare_dependency()
92 if with_gallium_etnaviv
93 subdir('winsys/etnaviv/drm')
94 subdir('drivers/etnaviv')
96 driver_etnaviv = declare_dependency()
99 subdir('winsys/kmsro/drm')
101 driver_kmsro = declare_dependency()
104 subdir('winsys/v3d/drm')
105 subdir('drivers/v3d')
107 driver_v3d = declare_dependency()
109 if with_gallium_tegra
110 subdir('winsys/tegra/drm')
111 subdir('drivers/tegra')
113 driver_tegra = declare_dependency()
116 subdir('winsys/i915/drm')
117 subdir('drivers/i915')
119 driver_i915 = declare_dependency()
122 subdir('winsys/svga/drm')
123 subdir('drivers/svga')
125 driver_svga = declare_dependency()
127 if with_gallium_virgl
128 subdir('winsys/virgl/drm')
129 subdir('winsys/virgl/vtest')
130 subdir('drivers/virgl')
132 driver_virgl = declare_dependency()
134 if with_gallium_opencl
135 # TODO: this isn't really clover specific, but ATM clover is the only
137 subdir('targets/pipe-loader')
139 subdir('state_trackers/clover')
140 subdir('targets/opencl')
143 subdir('state_trackers/dri')
144 subdir('targets/dri')
146 if with_osmesa == 'gallium'
147 subdir('state_trackers/osmesa')
148 subdir('targets/osmesa')
150 if with_glx == 'gallium-xlib'
151 subdir('winsys/sw/xlib')
152 subdir('state_trackers/glx/xlib')
153 subdir('targets/libgl-xlib')
155 if with_gallium_vdpau
156 subdir('state_trackers/vdpau')
157 subdir('targets/vdpau')
160 subdir('state_trackers/xvmc')
161 subdir('targets/xvmc')
163 if with_gallium_omx != 'disabled'
164 subdir('state_trackers/omx')
165 subdir('targets/omx')
168 subdir('state_trackers/va')
172 subdir('state_trackers/xa')
175 if with_platform_haiku
176 subdir('state_trackers/hgl')
177 subdir('targets/haiku-softpipe')
179 if with_gallium_st_nine
180 subdir('state_trackers/nine')
181 subdir('targets/d3dadapter9')
184 subdir('targets/graw-null')
185 if with_glx == 'gallium-xlib'
186 subdir('targets/graw-xlib')