RetroArch
config.features.h
Go to the documentation of this file.
1 #ifndef __RARCH_FEATURES_H
2 #define __RARCH_FEATURES_H
3 
4 #include <stddef.h>
5 #include <boolean.h>
6 
7 #ifdef HAVE_CONFIG_H
8 #include "config.h"
9 #endif
10 
11 #ifdef HAVE_OVERLAY
12 static const bool _overlay_supp = true;
13 #else
14 static const bool _overlay_supp = false;
15 #endif
16 
17 #ifdef HAVE_V4L2
18 static const bool _v4l2_supp = true;
19 #else
20 static const bool _v4l2_supp = false;
21 #endif
22 
23 #ifdef HAVE_COMMAND
24 static const bool _command_supp = true;
25 #else
26 static const bool _command_supp = false;
27 #endif
28 
29 #ifdef HAVE_NETWORK_CMD
30 static const bool _network_command_supp = true;
31 #else
32 static const bool _network_command_supp = false;
33 #endif
34 
35 #ifdef HAVE_NETWORKGAMEPAD
36 static const bool _network_gamepad_supp = true;
37 #else
38 static const bool _network_gamepad_supp = false;
39 #endif
40 
41 #ifdef HAVE_FILTERS_BUILTIN
42 static const bool _cpu_filters = true;
43 #else
44 static const bool _cpu_filters = false;
45 #endif
46 
47 #ifdef HAVE_LIBUSB
48 static const bool _libusb_supp = true;
49 #else
50 static const bool _libusb_supp = false;
51 #endif
52 
53 #ifdef HAVE_SDL
54 static const bool _sdl_supp = true;
55 #else
56 static const bool _sdl_supp = false;
57 #endif
58 
59 #ifdef HAVE_SDL2
60 static const bool _sdl2_supp = true;
61 #else
62 static const bool _sdl2_supp = false;
63 #endif
64 
65 #ifdef HAVE_THREADS
66 static const bool _thread_supp = true;
67 #else
68 static const bool _thread_supp = false;
69 #endif
70 
71 #ifdef HAVE_OPENGL
72 static const bool _opengl_supp = true;
73 #else
74 static const bool _opengl_supp = false;
75 #endif
76 
77 #ifdef HAVE_VULKAN
78 static const bool _vulkan_supp = true;
79 #else
80 static const bool _vulkan_supp = false;
81 #endif
82 
83 #ifdef HAVE_METAL
84 static const bool _metal_supp = true;
85 #else
86 static const bool _metal_supp = false;
87 #endif
88 
89 #if defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3) || defined(HAVE_OPENGLES_3_1) || defined(HAVE_OPENGLES_3_2)
90 static const bool _opengles_supp = true;
91 #else
92 static const bool _opengles_supp = false;
93 #endif
94 
95 #ifdef HAVE_KMS
96 static const bool _kms_supp = true;
97 #else
98 static const bool _kms_supp = false;
99 #endif
100 
101 #ifdef HAVE_UDEV
102 static const bool _udev_supp = true;
103 #else
104 static const bool _udev_supp = false;
105 #endif
106 
107 #ifdef HAVE_VG
108 static const bool _vg_supp = true;
109 #else
110 static const bool _vg_supp = false;
111 #endif
112 
113 #ifdef HAVE_EGL
114 static const bool _egl_supp = true;
115 #else
116 static const bool _egl_supp = false;
117 #endif
118 
119 #ifdef HAVE_X11
120 static const bool _x11_supp = true;
121 #else
122 static const bool _x11_supp = false;
123 #endif
124 
125 #ifdef HAVE_WAYLAND
126 static const bool _wayland_supp = true;
127 #else
128 static const bool _wayland_supp = false;
129 #endif
130 
131 #ifdef HAVE_XVIDEO
132 static const bool _xvideo_supp = true;
133 #else
134 static const bool _xvideo_supp = false;
135 #endif
136 
137 #ifdef HAVE_ALSA
138 static const bool _alsa_supp = true;
139 #else
140 static const bool _alsa_supp = false;
141 #endif
142 
143 #ifdef HAVE_TINYALSA
144 static const bool _tinyalsa_supp = true;
145 #else
146 static const bool _tinyalsa_supp = false;
147 #endif
148 
149 #ifdef HAVE_COREAUDIO
150 static const bool _coreaudio_supp = true;
151 #else
152 static const bool _coreaudio_supp = false;
153 #endif
154 
155 #if defined(HAVE_OSS) || defined(HAVE_OSS_BSD)
156 static const bool _oss_supp = true;
157 #else
158 static const bool _oss_supp = false;
159 #endif
160 
161 #ifdef HAVE_AL
162 static const bool _al_supp = true;
163 #else
164 static const bool _al_supp = false;
165 #endif
166 
167 #ifdef HAVE_SL
168 static const bool _sl_supp = true;
169 #else
170 static const bool _sl_supp = false;
171 #endif
172 
173 #ifdef HAVE_LIBRETRODB
174 static const bool _libretrodb_supp = true;
175 #else
176 static const bool _libretrodb_supp = false;
177 #endif
178 
179 #ifdef HAVE_RSOUND
180 static const bool _rsound_supp = true;
181 #else
182 static const bool _rsound_supp = false;
183 #endif
184 
185 #ifdef HAVE_ROAR
186 static const bool _roar_supp = true;
187 #else
188 static const bool _roar_supp = false;
189 #endif
190 
191 #ifdef HAVE_JACK
192 static const bool _jack_supp = true;
193 #else
194 static const bool _jack_supp = false;
195 #endif
196 
197 #ifdef HAVE_PULSE
198 static const bool _pulse_supp = true;
199 #else
200 static const bool _pulse_supp = false;
201 #endif
202 
203 #ifdef HAVE_DSOUND
204 static const bool _dsound_supp = true;
205 #else
206 static const bool _dsound_supp = false;
207 #endif
208 
209 #ifdef HAVE_WASAPI
210 static const bool _wasapi_supp = true;
211 #else
212 static const bool _wasapi_supp = false;
213 #endif
214 
215 #ifdef HAVE_XAUDIO
216 static const bool _xaudio_supp = true;
217 #else
218 static const bool _xaudio_supp = false;
219 #endif
220 
221 #ifdef HAVE_ZLIB
222 static const bool _zlib_supp = true;
223 #else
224 static const bool _zlib_supp = false;
225 #endif
226 
227 #ifdef HAVE_7ZIP
228 static const bool _7zip_supp = true;
229 #else
230 static const bool _7zip_supp = false;
231 #endif
232 
233 #ifdef HAVE_DYLIB
234 static const bool _dylib_supp = true;
235 #else
236 static const bool _dylib_supp = false;
237 #endif
238 
239 #ifdef HAVE_CG
240 static const bool _cg_supp = true;
241 #else
242 static const bool _cg_supp = false;
243 #endif
244 
245 #ifdef HAVE_GLSL
246 static const bool _glsl_supp = true;
247 #else
248 static const bool _glsl_supp = false;
249 #endif
250 
251 #ifdef HAVE_HLSL
252 static const bool _hlsl_supp = true;
253 #else
254 static const bool _hlsl_supp = false;
255 #endif
256 
257 #ifdef HAVE_LIBXML2
258 static const bool _libxml2_supp = true;
259 #else
260 static const bool _libxml2_supp = false;
261 #endif
262 
263 #ifdef HAVE_SDL_IMAGE
264 static const bool _sdl_image_supp = true;
265 #else
266 static const bool _sdl_image_supp = false;
267 #endif
268 
269 #ifdef HAVE_DYNAMIC
270 static const bool _dynamic_supp = true;
271 #else
272 static const bool _dynamic_supp = false;
273 #endif
274 
275 #ifdef HAVE_FFMPEG
276 static const bool _ffmpeg_supp = true;
277 #else
278 static const bool _ffmpeg_supp = false;
279 #endif
280 
281 #ifdef HAVE_MPV
282 static const bool _mpv_supp = true;
283 #else
284 static const bool _mpv_supp = false;
285 #endif
286 
287 #ifdef HAVE_FREETYPE
288 static const bool _freetype_supp = true;
289 #else
290 static const bool _freetype_supp = false;
291 #endif
292 
293 #ifdef HAVE_STB_FONT
294 static const bool _stbfont_supp = true;
295 #else
296 static const bool _stbfont_supp = false;
297 #endif
298 
299 #ifdef HAVE_NETWORKING
300 static const bool _netplay_supp = true;
301 #else
302 static const bool _netplay_supp = false;
303 #endif
304 
305 #ifdef HAVE_PYTHON
306 static const bool _python_supp = true;
307 #else
308 static const bool _python_supp = false;
309 #endif
310 
311 #if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH) || defined(HAVE_COCOA_METAL)
312 static const bool _cocoa_supp = true;
313 #else
314 static const bool _cocoa_supp = false;
315 #endif
316 
317 #ifdef HAVE_QT
318 static const bool _qt_supp = true;
319 #else
320 static const bool _qt_supp = false;
321 #endif
322 
323 #ifdef HAVE_RPNG
324 static const bool _rpng_supp = true;
325 #else
326 static const bool _rpng_supp = false;
327 #endif
328 
329 #ifdef HAVE_RJPEG
330 static const bool _rjpeg_supp = true;
331 #else
332 static const bool _rjpeg_supp = false;
333 #endif
334 
335 #ifdef HAVE_RBMP
336 static const bool _rbmp_supp = true;
337 #else
338 static const bool _rbmp_supp = false;
339 #endif
340 
341 #ifdef HAVE_RTGA
342 static const bool _rtga_supp = true;
343 #else
344 static const bool _rtga_supp = false;
345 #endif
346 
347 #ifdef HAVE_CORETEXT
348 static const bool _coretext_supp = true;
349 #else
350 static const bool _coretext_supp = false;
351 #endif
352 
353 #ifdef HAVE_AVFOUNDATION
354 static const bool _avfoundation_supp = true;
355 #else
356 static const bool _avfoundation_supp = false;
357 #endif
358 
359 #if !defined(_WIN32) && !defined(GLOBAL_CONFIG_DIR)
360 #if defined(__HAIKU__)
361 #define GLOBAL_CONFIG_DIR "/system/settings"
362 #else
363 #define GLOBAL_CONFIG_DIR "/etc"
364 #endif
365 #endif
366 
367 #endif
static const bool _python_supp
Definition: config.features.h:308
static const bool _dsound_supp
Definition: config.features.h:206
static const bool _hlsl_supp
Definition: config.features.h:254
Configuration options (set of defines)
static const bool _sdl2_supp
Definition: config.features.h:62
static const bool _xvideo_supp
Definition: config.features.h:134
static const bool _oss_supp
Definition: config.features.h:158
static const bool _libretrodb_supp
Definition: config.features.h:176
static const bool _mpv_supp
Definition: config.features.h:284
static const bool _netplay_supp
Definition: config.features.h:302
static const bool _avfoundation_supp
Definition: config.features.h:356
static const bool _egl_supp
Definition: config.features.h:116
static const bool _freetype_supp
Definition: config.features.h:290
static const bool _stbfont_supp
Definition: config.features.h:296
static const bool _cpu_filters
Definition: config.features.h:44
static const bool _rbmp_supp
Definition: config.features.h:338
static const bool _thread_supp
Definition: config.features.h:68
static const bool _udev_supp
Definition: config.features.h:104
static const bool _dylib_supp
Definition: config.features.h:236
static const bool _v4l2_supp
Definition: config.features.h:20
static const bool _command_supp
Definition: config.features.h:26
static const bool _cocoa_supp
Definition: config.features.h:314
static const bool _ffmpeg_supp
Definition: config.features.h:278
static const bool _metal_supp
Definition: config.features.h:86
static const bool _7zip_supp
Definition: config.features.h:230
static const bool _wasapi_supp
Definition: config.features.h:212
static const bool _rsound_supp
Definition: config.features.h:182
static const bool _tinyalsa_supp
Definition: config.features.h:146
static const bool _vg_supp
Definition: config.features.h:110
static const bool _x11_supp
Definition: config.features.h:122
static const bool _xaudio_supp
Definition: config.features.h:218
static const bool _sdl_supp
Definition: config.features.h:56
static const bool _libxml2_supp
Definition: config.features.h:260
static const bool _wayland_supp
Definition: config.features.h:128
static const bool _al_supp
Definition: config.features.h:164
static const bool _jack_supp
Definition: config.features.h:194
static const bool _vulkan_supp
Definition: config.features.h:80
static const bool _network_command_supp
Definition: config.features.h:32
static const bool _qt_supp
Definition: config.features.h:320
static const bool _sdl_image_supp
Definition: config.features.h:266
static const bool _overlay_supp
Definition: config.features.h:14
static const bool _dynamic_supp
Definition: config.features.h:272
static const bool _cg_supp
Definition: config.features.h:242
static const bool _sl_supp
Definition: config.features.h:170
static const bool _rjpeg_supp
Definition: config.features.h:332
static const bool _roar_supp
Definition: config.features.h:188
static const bool _rpng_supp
Definition: config.features.h:326
static const bool _rtga_supp
Definition: config.features.h:344
static const bool _opengles_supp
Definition: config.features.h:92
static const bool _network_gamepad_supp
Definition: config.features.h:38
static const bool _kms_supp
Definition: config.features.h:98
static const bool _glsl_supp
Definition: config.features.h:248
static const bool _zlib_supp
Definition: config.features.h:224
static const bool _opengl_supp
Definition: config.features.h:74
static const bool _coretext_supp
Definition: config.features.h:350
static const bool _libusb_supp
Definition: config.features.h:50
static const bool _coreaudio_supp
Definition: config.features.h:152
static const bool _alsa_supp
Definition: config.features.h:140
static const bool _pulse_supp
Definition: config.features.h:200