Filter Android drivers according to SDL_***_DISABLED macros to help reduce APK size (#9986)
This commit is contained in:
@@ -140,19 +140,26 @@
|
||||
#define HAVE_CLOCK_GETTIME 1
|
||||
|
||||
/* Enable various audio drivers */
|
||||
#ifndef SDL_AUDIO_DISABLED
|
||||
#define SDL_AUDIO_DRIVER_ANDROID 1
|
||||
#define SDL_AUDIO_DRIVER_OPENSLES 1
|
||||
#define SDL_AUDIO_DRIVER_AAUDIO 1
|
||||
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||
#endif /* SDL_AUDIO_DISABLED */
|
||||
|
||||
/* Enable various input drivers */
|
||||
#ifndef SDL_JOYSTICK_DISABLED
|
||||
#define SDL_JOYSTICK_ANDROID 1
|
||||
#define SDL_JOYSTICK_HIDAPI 1
|
||||
#define SDL_JOYSTICK_VIRTUAL 1
|
||||
#endif /* SDL_JOYSTICK_DISABLED */
|
||||
#ifndef SDL_HAPTIC_DISABLED
|
||||
#define SDL_HAPTIC_ANDROID 1
|
||||
#endif /* SDL_HAPTIC_DISABLED */
|
||||
|
||||
/* Enable sensor driver */
|
||||
#ifndef SDL_SENSOR_DISABLED
|
||||
#define SDL_SENSOR_ANDROID 1
|
||||
#endif /* SDL_SENSOR_DISABLED */
|
||||
|
||||
/* Enable various shared object loading systems */
|
||||
#define SDL_LOADSO_DLOPEN 1
|
||||
@@ -192,8 +199,9 @@
|
||||
#define SDL_FSOPS_POSIX 1
|
||||
|
||||
/* Enable the camera driver */
|
||||
#ifndef SDL_CAMERA_DISABLED
|
||||
#define SDL_CAMERA_DRIVER_ANDROID 1
|
||||
#define SDL_CAMERA_DRIVER_DUMMY 1
|
||||
#endif /* SDL_CAMERA_DISABLED */
|
||||
|
||||
/* Enable nl_langinfo and high-res file times on version 26 and higher. */
|
||||
#if __ANDROID_API__ >= 26
|
||||
|
||||
Reference in New Issue
Block a user