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