581f701b30bbb7bd91808bbed394e88a3ac3a407
[mesa.git] / src / gallium / meson.build
1 # Copyright © 2017 Dylan Baker
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 inc_gallium_drivers = include_directories('drivers')
22 inc_gallium_winsys = include_directories('winsys')
23
24 subdir('auxiliary')
25 subdir('auxiliary/pipe-loader')
26 subdir('drivers/ddebug')
27 subdir('drivers/noop')
28 subdir('drivers/trace')
29 subdir('drivers/rbug')
30 subdir('winsys/sw/null')
31 subdir('winsys/sw/dri')
32 subdir('winsys/sw/kms-dri')
33 subdir('winsys/sw/wrapper')
34 if with_gallium_softpipe
35 subdir('drivers/softpipe')
36 if with_llvm
37 subdir('drivers/llvmpipe')
38 endif
39 endif
40 if with_gallium_radeonsi
41 # TODO: some of these are needed by r300 and r600
42 subdir('drivers/radeon')
43 subdir('drivers/radeonsi')
44 subdir('winsys/radeon/drm')
45 subdir('winsys/amdgpu/drm')
46 endif
47 if with_gallium_nouveau
48 subdir('drivers/nouveau')
49 subdir('winsys/nouveau/drm')
50 endif
51 if with_gallium_freedreno
52 subdir('drivers/freedreno')
53 subdir('winsys/freedreno/drm')
54 endif
55 if with_gallium_pl111
56 subdir('winsys/pl111/drm')
57 endif
58 if with_gallium_vc4
59 subdir('drivers/vc4')
60 subdir('winsys/vc4/drm')
61 endif
62 if with_gallium_vc5
63 subdir('drivers/vc5')
64 subdir('winsys/vc5/drm')
65 endif
66 if with_gallium_etnaviv
67 subdir('drivers/etnaviv')
68 subdir('winsys/etnaviv/drm')
69 endif
70 if with_gallium_imx
71 subdir('winsys/imx/drm')
72 endif
73 if with_gallium_i915
74 subdir('winsys/i915/drm')
75 subdir('drivers/i915')
76 endif
77 if with_dri
78 subdir('state_trackers/dri')
79 endif
80 if with_osmesa == 'gallium'
81 subdir('state_trackers/osmesa')
82 endif
83 if with_glx == 'gallium-xlib'
84 subdir('winsys/sw/xlib')
85 subdir('state_trackers/glx/xlib')
86 endif
87 # TODO: SVGA
88 # TODO: r300
89 # TODO: r600
90 # TODO: SWR
91 # TODO: virgl
92 # TODO: clover
93 if with_dri
94 subdir('targets/dri')
95 endif
96 if with_osmesa == 'gallium'
97 subdir('targets/osmesa')
98 endif
99 if with_glx == 'gallium-xlib'
100 subdir('targets/libgl-xlib')
101 endif
102 # TODO: OMX
103 # TODO: VA
104 # TODO: vdpau
105 # TODO: xa
106 # TODO: xvmc
107 # TODO: nine
108 # TODO: tests