summaryrefslogtreecommitdiffstats
path: root/rules/sdl2.in
blob: 94aa97294033a2548f3fcbd0259792fedd4c8230 (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
## SECTION=multimedia_sdl

menuconfig SDL2
	tristate
	prompt "SDL2                          "
	select LIBC_M
	select LIBC_DL
	select LIBC_PTHREAD
	select GCCLIBS_GCC_S
	select LIBUNWIND
	select CROSS_NASM		if SDL2_VIDEO
	select ALSA_LIB			if SDL2_ALSA
	select XORGPROTO		if SDL2_XORG
	select XORG_LIB_X11		if SDL2_XORG
	select XORG_LIB_XXF86VM		if SDL2_XORG
	select XORG_LIB_XRANDR		if SDL2_XORG
	select XORG_LIB_XCURSOR		if SDL2_XORG
	select XORG_LIB_XI		if SDL2_XORG
	select DBUS			if SDL2_DBUS
	select LIBDRM			if SDL2_WAYLAND
	select MESALIB			if SDL2_WAYLAND || SDL2_OPENGL || SDL2_OPENGLES || SDL2_KMS
	select MESALIB_GLX		if SDL2_OPENGL
	select MESALIB_GLES1		if SDL2_OPENGLES1
	select MESALIB_GLES2		if SDL2_OPENGLES2
	select MESALIB_EGL_DRM		if SDL2_KMS
	select MESALIB_GBM		if SDL2_WAYLAND
	select MESALIB_EGL_WAYLAND	if SDL2_WAYLAND
	select LIBXKBCOMMON		if SDL2_WAYLAND
	select UDEV			if SDL2_UDEV
	select UDEV_LIBUDEV		if SDL2_UDEV
	select PULSEAUDIO		if SDL2_PULSEAUDIO
	select WAYLAND_PROTOCOLS	if SDL2_WAYLAND
	help
	  Simple DirectMedia Layer is a cross-platform multimedia
	  library designed to provide low level access to audio,
	  keyboard, mouse, joystick, 3D hardware via OpenGL, and
	  2D video framebuffer.

if SDL2

menuconfig SDL2_AUDIO
	bool
	prompt "SDL2 Audio Support             "
	default y
	help
	  Turn on to enable audio support in libsdl2

if SDL2_AUDIO

config SDL2_OSS
	bool
	prompt "SDL2 OSS Support"
	help
	  Open Sound System (OSS) is the first attempt in
	  unifying the digital audio architecture for UNIX.
	  OSS is a set of device drivers that provide a
	  uniform API across all the major UNIX architectures.

config SDL2_ALSA
	bool
	prompt "SDL2 ALSA Support"
	default y
	help
	  The Advanced Linux Sound Architecture (ALSA)
	  provides audio and MIDI functionality to the
	  Linux operating system.

config SDL2_PULSEAUDIO
	bool
	prompt "SDL2 Pulseaudio Support"
	default y
	help
	  PulseAudio is a sound system for POSIX OSes, meaning that it
	  is a proxy for your sound applications.

endif

menuconfig SDL2_VIDEO
	bool
	prompt "SDL2 Video Support             "
	default y
	help
	  Turn on to enable video support in libsdl2

if SDL2_VIDEO

config SDL2_KMS
	bool
	prompt "KMS Support"
	help
	  kms video support

config SDL2_XORG
	bool
	prompt "Xorg Support"
	help
	  X.Org provides an open source implementation of the
	  X Window System.

config SDL2_WAYLAND
	bool
	prompt "Wayland Support"
	help
	  Wayland Window System.

config SDL2_OPENGL
	bool
	prompt "OpenGL Support"
	depends on SDL2_XORG
	help
	  OpenGL is a multi-platform software interface to
	  graphics hardware, supporting rendering and imaging
	  operations.

config SDL2_OPENGLES
	bool
	default SDL2_OPENGLES1 || SDL2_OPENGLES2

config SDL2_OPENGLES1
	bool
	prompt "OpenGLES1 Support"
	help
	  OpenGL ES1 graphics support

config SDL2_OPENGLES2
	bool
	prompt "OpenGLES2 Support"
	help
	  OpenGL ES2 graphics support

endif

config SDL2_UDEV
	bool
	prompt "udev Support"
	help
	  Turn on support for the udev library

config SDL2_DBUS
	bool
	prompt "dbus Support"

	help
	  Turn on support for the dbus library

endif