GRAPHICS3D: Don't build opengl stuff when it's not needed

This commit is contained in:
Le Philousophe 2022-01-05 20:39:43 +01:00 committed by Paweł Kołodziejski
parent 04b1ce5a6e
commit f11295edda

View File

@ -8,10 +8,6 @@ MODULE_OBJS := \
events/default/default-events.o \
fs/abstract-fs.o \
fs/stdiostream.o \
graphics3d/opengl/framebuffer.o \
graphics3d/opengl/surfacerenderer.o \
graphics3d/opengl/texture.o \
graphics3d/opengl/tiledsurface.o \
keymapper/action.o \
keymapper/hardware-input.o \
keymapper/input-watcher.o \
@ -148,7 +144,6 @@ MODULE_OBJS += \
events/sdl/sdl-events.o \
graphics/sdl/sdl-graphics.o \
graphics/surfacesdl/surfacesdl-graphics.o \
graphics3d/openglsdl/openglsdl-graphics3d.o \
mixer/sdl/sdl-mixer.o \
mutex/sdl/sdl-mutex.o \
plugins/sdl/sdl-provider.o \
@ -162,7 +157,12 @@ endif
ifdef USE_OPENGL
MODULE_OBJS += \
graphics/openglsdl/openglsdl-graphics.o
graphics/openglsdl/openglsdl-graphics.o \
graphics3d/opengl/framebuffer.o \
graphics3d/opengl/surfacerenderer.o \
graphics3d/opengl/texture.o \
graphics3d/opengl/tiledsurface.o \
graphics3d/openglsdl/openglsdl-graphics3d.o
endif
ifdef USE_DISCORD
@ -239,6 +239,10 @@ MODULE_OBJS += \
graphics/android/android-graphics.o \
graphics3d/android/android-graphics3d.o \
graphics3d/android/texture.o \
graphics3d/opengl/framebuffer.o \
graphics3d/opengl/surfacerenderer.o \
graphics3d/opengl/texture.o \
graphics3d/opengl/tiledsurface.o \
mutex/pthread/pthread-mutex.o
endif