Browse Source

do not build camera drivers if camera support is disabled

Timothee Besset 2 months ago
parent
commit
6beda34215
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/camera/SDL_camera.c

+ 2 - 0
src/camera/SDL_camera.c

@@ -32,6 +32,7 @@
 
 // Available camera drivers
 static const CameraBootStrap *const bootstrap[] = {
+#ifndef SDL_CAMERA_DISABLED
 #ifdef SDL_CAMERA_DRIVER_V4L2
     &V4L2_bootstrap,
 #endif
@@ -55,6 +56,7 @@ static const CameraBootStrap *const bootstrap[] = {
 #endif
 #ifdef SDL_CAMERA_DRIVER_DUMMY
     &DUMMYCAMERA_bootstrap,
+#endif
 #endif
     NULL
 };