summaryrefslogtreecommitdiffstats
path: root/rules/xorg-server.in
blob: fd4fcd5d1d24d391eb130d55eff46c3941766452 (plain)
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
## SECTION=multimedia_xorg

menuconfig XORG_SERVER
	tristate
	prompt "xorg server                   "

	select HOST_XORG_SERVER
	select HOST_XORG_UTIL_MACROS
	select HOST_XORG_LIB_XTRANS	# needed for autoreconf
	select HOST_XORG_FONT_UTIL	# needed for autoreconf
	#
	# required dependencies, according to REQUIRED_MODULES
	# and REQUIRED_LIBS in conrigure.ac:
	#

	select LIBC_DL
	select LIBC_M
	select LIBC_CRYPT	# for SHA1

	# protos
	select XORGPROTO
	select XORG_LIB_XTRANS

	# libs
	select XORG_LIB_XFONT
	select XORG_LIB_XAU
	select XORG_LIB_FONTENC
	select XORG_LIB_XEXT
	select PIXMAN
	select OPENSSL
	select XORG_LIB_XKBFILE

	select LIBDRM			if XORG_SERVER_LIBDRM

	# input hotplug with udev
	select UDEV			if XORG_SERVER_UDEV
	select UDEV_LIBUDEV		if XORG_SERVER_UDEV

	# glx triggered
	select XORG_LIB_X11		if XORG_SERVER_EXT_GLX
	select MESALIB			if XORG_SERVER_EXT_GLX

	# dri triggered
	select MESALIB			if XORG_SERVER_EXT_DRI
	select LIBDRM			if XORG_SERVER_EXT_DRI

	# dri2 triggered
	select LIBDRM			if XORG_SERVER_EXT_DRI2

	# dri3 triggered
	select LIBDRM			if XORG_SERVER_EXT_DRI3
	select XORG_LIB_XSHMFENCE	if XORG_SERVER_EXT_DRI3

	# xdmcp extension
	select XORG_LIB_XDMCP		if XORG_SERVER_EXT_XDMCP

	# xnest ddx
	#select <xfont>?		if XORG_SERVER_XNEST
	select XORG_LIB_X11		if XORG_SERVER_XNEST

	# xorg ddx
	select LIBPCIACCESS		if XORG_SERVER_XORG

	# xwayland ddx
	select WAYLAND			if XORG_SERVER_XWAYLAND
	select LIBDRM			if XORG_SERVER_XWAYLAND
	select LIBEPOXY			if XORG_SERVER_XWAYLAND

	# glamor module
	select LIBEPOXY			if XORG_SERVER_GLAMOR
	select MESALIB			if XORG_SERVER_GLAMOR
	select MESALIB_GBM		if XORG_SERVER_GLAMOR

	# xv triggered
	select XORG_LIB_XV		if XORG_SERVER_EXT_XV

	# composite triggered
	select XORG_LIB_XCOMPOSITE	if XORG_SERVER_EXT_COMPOSITE

	# screensaver triggered
	select XORG_LIB_XSCRNSAVER	if XORG_SERVER_EXT_SCREENSAVER

	# xres triggered
	select XORG_LIB_XRES		if XORG_SERVER_EXT_XRES

	# for kdrive
	select TSLIB			if XORG_SERVER_TSLIB

	# FIXME: unclear dependencies
	#select XORG_LIB_XXF86VM	if XORG_SERVER_EXT_XV
	#select XORG_LIB_X11
	#select XORG_LIB_XAW
	#select XORG_LIB_XT
	#select XORG_LIB_XMU
	#select XORG_LIB_XTST
	#select XORG_LIB_XKBUI		if XORG_KEYBOARD_MAPPING_SUPPORT
	# FIXME: find out which config options need this
	#select GCCLIBS_GCC_S

	# FIXME: if not enabled, we get this one:
	# seems an error. Without DBE its definition will be omitted
	# (in os/utils.c), but it will always be used in
	# hw/xfree86/dixmods/dbemodule.c!
	# dbemodule.c:17: error: `noDbeExtension' undeclared here (not in a function)
	#select XORG_SERVER_EXT_DBE

	# FIXME: XVMC_[TRUE|FALSE] are ifdefd out if XV is not set!
	#select XORG_SERVER_EXT_XVMC if XORG_SERVER_EXT_XV

	# FIXME: same problem as above
	#select XORG_SERVER_EXT_XV

	# FIXME: xorg fails in dix subdirectory if no connection to font servers
	# are enabled.
	select XORG_LIB_XFONT_FONTSERVER


if XORG_SERVER

#config XORG_SERVER_QUIRKS
#	bool
#	prompt "enable xorg quirks"
#	default y
#	help
#	  This option turns on some additional dependencies between the
#	  xorg server and the libraries. These dependencies should not
#	  be there, it is just for showing where currently things with
#	  the build system do not work as expected.

# ----------------------------------------------------------------------------

config XORG_SERVER_LIBDRM
	select XORG_SERVER_EXT_DPMS
	select XORG_SERVER_EXT_PRESENT
	bool

menu "xorg servers                  "

config XORG_SERVER_XORG
	bool
	prompt "xorg server"
	default y
	help
	  This is the main server to be used for the other video drivers

config XORG_SERVER_KDRIVE
	bool
	prompt "kdrive server"
	help
	  FIXME

config XORG_SERVER_DMX
	bool
	depends on BROKEN
	prompt "xorg dmx server"
	help
	  Distributed Multi-head X server. Xdmx is a proxy X server that uses
	  one or more other X servers as its display devices.

config XORG_SERVER_XVFB
	bool
	depends on BROKEN
	prompt "xorg vfb server"
	help
	  --enable-xvfb

config XORG_SERVER_XNEST
	bool
	depends on BROKEN
	# required by configure.ac:
	select XORG_SERVER_EXT_XDMCP
	prompt "xorg xnest server"
	help
	  A X server working on a running X server. Disadvantage is Xnest
	  supports only features the running X server itself supports.

config XORG_SERVER_XWAYLAND
	bool
	select XORG_SERVER_EXT_COMPOSITE
	select XORG_SERVER_EXT_DRI3
	prompt "Xwayland server"

config XORG_SERVER_XWIN
	bool
	depends on BROKEN
	prompt "xwin server [BROKEN]"
	help
	  X Server for the Cygwin environment on Microsoft Windows

config XORG_SERVER_XEPHYR
	bool
	depends on BROKEN
	prompt "xephyr server"
	help
	  This server is working on top of a running X server. But instead of
	  Xnest this kind of server supports all new features (extensions). It
	  doesn't depend on the features of the underlying X server.

config XORG_SERVER_XFAKE
	bool
	depends on BROKEN
	prompt "fake server"
	help
	  FIXME

config XORG_SERVER_XFBDEV
	bool
	select XORG_SERVER_KDRIVE
	prompt "xfbdev server"
	help
	  FIXME

endmenu

# ----------------------------------------------------------------------------

menu "xorg config files             "


config XORG_SERVER_CONFIG_FILES_XORG_CONF
	bool
	prompt "/etc/X11/xorg.conf"
	help
	  Install a /etc/X11/xorg.conf file from
	  projectroot or generic

endmenu


# ----------------------------------------------------------------------------

menu "xorg options                  "

config XORG_SERVER_OPT_AIGLX
	bool
	depends on BROKEN
	prompt "aiglx"

config XORG_SERVER_OPT_INSTALL_SETUID
	bool
	prompt "install server suid root"
	help
	  --enable-install-setuid

config XORG_SERVER_OPT_SECURE_RPC
	bool
	prompt "secure rpc"
	help
	  Use secure RPC authentication (SUN-DES-1)

config XORG_SERVER_UDEV
	bool
	select XORG_SERVER_LIBDRM
	prompt "detect input devices via udev"
	help
	  FIXME

endmenu

if XORG_SERVER_KDRIVE

menu "kdrive options                "

config XORG_SERVER_TSLIB
	bool
	prompt "tslib support"
	help
	  Build kdrive tslib touchscreen support

config XORG_SERVER_KDRIVE_KBD
	bool
	prompt "kbd driver"
	help
	  Build kbd driver for kdrive

config XORG_SERVER_KDRIVE_MOUSE
	bool
	prompt "mouse driver"
	help
	  Build mouse driver for kdrive

config XORG_SERVER_KDRIVE_EVDEV
	bool
	prompt "evdev driver"
	help
	  Build evdev driver for kdrive

endmenu

endif

# ----------------------------------------------------------------------------

menu "xorg extensions               "

config XORG_SERVER_EXT_COMPOSITE
	bool
	prompt "composite extension"
	default y
	help
	  --enable-composite

config XORG_SERVER_EXT_SHM
	bool
	prompt "shm extension"
	default y
	help
	  --enable-mitshm Support for MIT Shared Memoy

config XORG_SERVER_EXT_XRES
	bool
	prompt "xres extension"
	default y
	help
	  --enable-xres

config XORG_SERVER_EXT_RECORD
	bool
	depends on BROKEN
	prompt "record extension"
	default y
	help
	  --enable-record, The record module adds record extension to capture
	  events that are associated with recording and playback user actions
	  This option will cause runtime problems;
	    record: RECORD extension enabled at configure time.
	    record: This extension is known to be broken, disabling extension now..
	    record: http://bugs.freedesktop.org/show_bug.cgi?id=20500


config XORG_SERVER_EXT_XV
	bool
	prompt "xv extension"
	default y
	help
	  The Xv extension provides support for video adaptors attached to an X
	  display. It takes the approach that a display may have one or more
	  video adaptors, each of which has one or more ports through which
	  independent video streams pass

config XORG_SERVER_EXT_XVMC
	bool
	prompt "xvmc extension"
	default y
	help
	  --enable-xvmc

config XORG_SERVER_EXT_DGA
	bool
	prompt "dga extension"
	default y
	help
	 DGA (Direct Access Graphics mode) is a feature of XFree86 that allows
	 the program to access directly to video memory on the graphics card.
	 DGA supports the double flickering.

config XORG_SERVER_EXT_SCREENSAVER
	bool
	prompt "screensaver extension"
	default y
	help
	  --enable-screensaver

config XORG_SERVER_EXT_XDMCP
	bool
	prompt "xdmcp extension"
	help
	  --enable-xdmcp

config XORG_SERVER_EXT_XDM_AUTH_1
	bool
	select XORG_SERVER_EXT_XDMCP
	prompt "xdm-auth-1 extension"
	help
	  --enable-xdmcp

config XORG_SERVER_EXT_GLX
	bool
	# This select doesn't work! But it is workarounded by mesalib only
	# presenting the DRI driver as it's backend if GLX is active.
	select MESALIB_GLX
	prompt "glx extension"
	help
	  --enable-glx

config XORG_SERVER_OPT_GLX_TLS
	bool
	depends on XORG_SERVER_EXT_GLX
	prompt "tls support for glx"

config XORG_SERVER_EXT_DRI
	bool
	select XORG_SERVER_LIBDRM
	prompt "dri extension"
	help
	  Enable support for the Direct Rendering Infrastructure to get 3D
	  accelerations support. This is meaningless if you don't have DRI
	  support in your kernel for your hardware.
	  Currently the build scripts needs DRI disabled when crosscompiling,
	  else they try to detect the DRI hardware on your host.

config XORG_SERVER_EXT_DRI2
	bool
	select XORG_SERVER_LIBDRM
	prompt "dri2 extension"
	help
	  Enable support for the Direct Rendering Infrastructure 2 to get 3D
	  accelerations support. This is meaningless if you don't have DRI
	  support in your kernel for your hardware.
	  Currently the build scripts needs DRI disabled when crosscompiling,
	  else they try to detect the DRI hardware on your host.

config XORG_SERVER_EXT_DRI3
	bool
	select XORG_SERVER_LIBDRM
	prompt "dri3 extension"
	help
	  Enable support for the Direct Rendering Infrastructure 3 to get 3D
	  accelerations support.

config XORG_SERVER_EXT_PRESENT
	bool
	prompt "present extension"
	help
	  The Present extension provides a way for applications to update
	  their window contents from a pixmap in a well defined fashion,
	  synchronizing with the display refresh and potentially using a
	  more efficient mechanism than copying the contents of the source pixmap.

config XORG_SERVER_EXT_XINERAMA
	bool
	prompt "xinerama extension"
	help
	  --enable-xinerama - Support for more than one screen, but handled
	  as one screen

config XORG_SERVER_EXT_XF86VIDMODE
	bool
	prompt "xf86vidmode extension"
	help
	  --enable-xf86vidmode

config XORG_SERVER_EXT_XACE
	bool
	prompt "xace"
	help
	  FIXME

config XORG_SERVER_EXT_XSELINUX
	bool
	depends on BROKEN
	prompt "xselinux"
	help
	  FIXME

config XORG_SERVER_EXT_XCSECURITY
	bool
	select XORG_SERVER_EXT_XACE
	prompt "xcsecurity"
	help
	  FIXME

config XORG_SERVER_EXT_DBE
	bool
	prompt "dbe"
	help
	  FIXME

config XORG_SERVER_EXT_DPMS
	bool
	prompt "dpms"
	help
	  FIXME

config XORG_SERVER_GLAMOR
	bool
	prompt "glamor module"
	help
	  The glamor module is an open-source 2D graphics common driver
	  for the X Window System as implemented by X.org. It supports a
	  variety of graphics chipsets which have OpenGL/EGL/GBM supports.

endmenu

# ----------------------------------------------------------------------------

endif