mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-02 15:47:31 +08:00
do not build camera drivers if camera support is disabled
This commit is contained in:
committed by
Sam Lantinga
parent
0825d07a43
commit
6beda34215
@@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
// Available camera drivers
|
// Available camera drivers
|
||||||
static const CameraBootStrap *const bootstrap[] = {
|
static const CameraBootStrap *const bootstrap[] = {
|
||||||
|
#ifndef SDL_CAMERA_DISABLED
|
||||||
#ifdef SDL_CAMERA_DRIVER_V4L2
|
#ifdef SDL_CAMERA_DRIVER_V4L2
|
||||||
&V4L2_bootstrap,
|
&V4L2_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
@@ -55,6 +56,7 @@ static const CameraBootStrap *const bootstrap[] = {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef SDL_CAMERA_DRIVER_DUMMY
|
#ifdef SDL_CAMERA_DRIVER_DUMMY
|
||||||
&DUMMYCAMERA_bootstrap,
|
&DUMMYCAMERA_bootstrap,
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user