meson: Combine gallium target subdirs
[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 endif
41 if with_gallium_r300 or with_gallium_radeonsi or with_gallium_r600
42 subdir('winsys/radeon/drm')
43 endif
44 if with_gallium_r300
45 subdir('drivers/r300')
46 endif
47 if with_gallium_r600
48 subdir('drivers/r600')
49 endif
50 if with_gallium_radeonsi
51 subdir('drivers/radeon')
52 subdir('drivers/radeonsi')
53 subdir('winsys/amdgpu/drm')
54 endif
55 if with_gallium_nouveau
56 subdir('drivers/nouveau')
57 subdir('winsys/nouveau/drm')
58 endif
59 if with_gallium_freedreno
60 subdir('drivers/freedreno')
61 subdir('winsys/freedreno/drm')
62 endif
63 if with_gallium_pl111
64 subdir('winsys/pl111/drm')
65 endif
66 if with_gallium_vc4
67 subdir('drivers/vc4')
68 subdir('winsys/vc4/drm')
69 endif
70 if with_gallium_vc5
71 subdir('drivers/vc5')
72 subdir('winsys/vc5/drm')
73 endif
74 if with_gallium_etnaviv
75 subdir('drivers/etnaviv')
76 subdir('winsys/etnaviv/drm')
77 endif
78 if with_gallium_imx
79 subdir('winsys/imx/drm')
80 endif
81 if with_gallium_i915
82 subdir('winsys/i915/drm')
83 subdir('drivers/i915')
84 endif
85 if with_gallium_svga
86 subdir('drivers/svga')
87 subdir('winsys/svga/drm')
88 endif
89 if with_gallium_virgl
90 subdir('drivers/virgl')
91 subdir('winsys/virgl/drm')
92 subdir('winsys/virgl/vtest')
93 endif
94 # TODO: SWR
95 # TODO: clover
96 if with_dri
97 subdir('state_trackers/dri')
98 subdir('targets/dri')
99 endif
100 if with_osmesa == 'gallium'
101 subdir('state_trackers/osmesa')
102 subdir('targets/osmesa')
103 endif
104 if with_glx == 'gallium-xlib'
105 subdir('winsys/sw/xlib')
106 subdir('state_trackers/glx/xlib')
107 subdir('targets/libgl-xlib')
108 endif
109 # TODO: OMX
110 # TODO: VA
111 # TODO: vdpau
112 # TODO: xa
113 # TODO: xvmc
114 # TODO: nine
115 # TODO: tests