meson.build 4.25 KB
Newer Older
Dylan Baker's avatar
Dylan Baker committed
1
# Copyright © 2017 Dylan Baker
Dylan Baker's avatar
Dylan Baker committed
2
# Copyright © 2017 Intel Corporation
Dylan Baker's avatar
Dylan Baker committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

Dylan Baker's avatar
Dylan Baker committed
22
inc_gallium_drivers = include_directories('drivers')
Dylan Baker's avatar
Dylan Baker committed
23
inc_gallium_winsys = include_directories('winsys')
Dylan Baker's avatar
Dylan Baker committed
24
25

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