OSDN Git Service

7ef1ffcdf0674de30ca37ca91788fbace25a6e21
[android-x86/external-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 # TODO: SWR
123 # TODO: clover
124 if with_dri
125   subdir('state_trackers/dri')
126   subdir('targets/dri')
127 endif
128 if with_osmesa == 'gallium'
129   subdir('state_trackers/osmesa')
130   subdir('targets/osmesa')
131 endif
132 if with_glx == 'gallium-xlib'
133   subdir('winsys/sw/xlib')
134   subdir('state_trackers/glx/xlib')
135   subdir('targets/libgl-xlib')
136 endif
137 # TODO: OMX
138 # TODO: VA
139 # TODO: vdpau
140 # TODO: xa
141 # TODO: xvmc
142 # TODO: nine
143 # TODO: tests