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