1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
|
xorg_inc = include_directories(
'common',
'ddc',
'dri2',
'i2c',
'int10',
'loader',
'modes',
'os-support',
'os-support/bus',
'parser',
'ramdac',
'vgahw',
)
xorg_c_args = []
xorg_c_args += '-DHAVE_XORG_CONFIG_H'
xorg_c_args += '-DXORG_NO_SDKSYMS'
pciaccess_dep = []
if get_option('pciaccess')
pciaccess_dep = dependency('pciaccess', version: '>= 0.12.901')
endif
# subdirs for convenience libraries statically linked into Xorg
subdir('common')
subdir('ddc')
if build_dri1
subdir('dri')
endif
if build_dri2
subdir('dri2')
endif
subdir('i2c')
subdir('loader')
subdir('modes')
subdir('os-support')
subdir('parser')
subdir('ramdac')
subdir('xkb')
srcs_xorg = [
'../../mi/miinitext.c',
'../../mi/miinitext.h',
]
# Extract all the objects so that all symbols get brought into the
# server. This prevents us from needing a global table of all symbols
# that should be exported to Xorg modules, at the expense of all
# symbols being included and public
xorg_link = [
libxserver,
libglxvnd,
xorg_common,
xorg_loader,
xorg_ddc,
xorg_xkb,
xorg_i2c,
xorg_modes,
xorg_os_support,
xorg_parser,
xorg_ramdac,
libxserver_fb,
libxserver_xext_vidmode,
libxserver_main,
libxserver_config,
]
if build_dri1
xorg_link += xorg_dri
endif
if build_dri2
xorg_link += xorg_dri2
endif
if host_machine.system() == 'cygwin' or host_machine.system() == 'windows'
linker_export_flags = '-Wl,--export-all-symbols'
elif host_machine.system() == 'sunos' or host_machine.system() == 'darwin'
linker_export_flags = []
else
linker_export_flags = '-Wl,--export-dynamic'
endif
xorg_deps = [
pixman_dep,
m_dep,
dl_dep,
pciaccess_dep,
sha1_dep,
dependency('xau'),
xdmcp_dep,
xfont2_dep,
xshmfence_dep,
config_dep,
libdrm_dep,
]
if get_option('suid_wrapper')
xorg_install_dir = get_option('libexecdir')
else
xorg_install_dir = get_option('bindir')
endif
e = executable(
'Xorg',
srcs_xorg,
include_directories: [inc, xorg_inc],
link_whole: xorg_link,
dependencies: xorg_deps,
link_args: linker_export_flags,
c_args: xorg_c_args,
install: true,
install_dir: xorg_install_dir,
implib: true,
)
# subdirs for modules loadable by Xorg
subdir('dixmods')
subdir('exa')
subdir('fbdevhw')
if gbm_dep.found()
subdir('glamor_egl')
endif
if int10 != 'false'
if int10 == 'x86emu'
subdir('x86emu')
endif
subdir('int10')
endif
subdir('shadowfb')
if build_vgahw
subdir('vgahw')
endif
if build_modesetting
subdir('drivers/modesetting')
endif
if get_option('xf86-input-inputtest')
subdir('drivers/inputtest')
endif
meson.add_install_script(
'sh', '-c',
'ln -fs Xorg @0@@1@'.format(
'${DESTDIR}',
join_paths(get_option('prefix'), get_option('bindir'), 'X')))
if get_option('suid_wrapper')
executable('Xorg.wrap',
'xorg-wrapper.c',
include_directories: [inc, xorg_inc],
dependencies: xorg_deps,
c_args: xorg_c_args,
install: true,
install_dir: get_option('libexecdir'),
install_mode: ['r-sr-xr-x', 0, 0],
)
# meson gets confused when there are two targets of the same name
# within the same directory, so we use a different intermediate name.
xorg_sh = configure_file(
input: 'Xorg.sh.in',
output: 'Xorg.sh',
configuration: conf_data,
)
install_data(
xorg_sh,
install_mode: 'rwxr-xr-x',
install_dir: join_paths(get_option('prefix'), get_option('bindir')),
rename: ['Xorg']
)
endif
executable('gtf',
'utils/gtf/gtf.c',
include_directories: [inc, xorg_inc],
dependencies: xorg_deps,
c_args: xorg_c_args,
install: true,
)
# For symbol presence testing only
xorgserver_lib = shared_library(
'xorgserver',
srcs_xorg,
include_directories: [inc, xorg_inc],
link_whole: xorg_link,
dependencies: xorg_deps,
link_args: linker_export_flags,
c_args: xorg_c_args,
install: false,
)
xorgserver_dep = declare_dependency(link_with: xorgserver_lib)
install_man(configure_file(
input: 'man/Xorg.man',
output: 'Xorg.1',
configuration: manpage_config,
))
if get_option('suid_wrapper')
install_man(configure_file(
input: 'man/Xorg.wrap.man',
output: 'Xorg.wrap.1',
configuration: manpage_config,
))
install_man(configure_file(
input: 'man/Xwrapper.config.man',
output: 'Xwrapper.config.5',
configuration: manpage_config,
))
endif
install_man(configure_file(
input: 'man/xorg.conf.man',
output: 'xorg.conf.5',
configuration: manpage_config,
))
install_man(configure_file(
input: 'man/xorg.conf.d.man',
output: 'xorg.conf.d.5',
configuration: manpage_config,
))
install_man(configure_file(
input: 'utils/man/gtf.man',
output: 'gtf.1',
configuration: manpage_config,
))
subdir('doc')
|