mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-18 13:43:48 +01:00
Don't compile unused driver sources
This commit is contained in:
parent
ca5f005b74
commit
36a3a7f349
@ -353,13 +353,6 @@ add_library(IRROBJ OBJECT
|
|||||||
|
|
||||||
set(IRRDRVROBJ
|
set(IRRDRVROBJ
|
||||||
CNullDriver.cpp
|
CNullDriver.cpp
|
||||||
COpenGLCacheHandler.cpp
|
|
||||||
COpenGLDriver.cpp
|
|
||||||
COpenGLShaderMaterialRenderer.cpp
|
|
||||||
COpenGLSLMaterialRenderer.cpp
|
|
||||||
COpenGLExtensionHandler.cpp
|
|
||||||
COGLESDriver.cpp
|
|
||||||
COGLESExtensionHandler.cpp
|
|
||||||
CGLXManager.cpp
|
CGLXManager.cpp
|
||||||
CWGLManager.cpp
|
CWGLManager.cpp
|
||||||
CEGLManager.cpp
|
CEGLManager.cpp
|
||||||
@ -367,6 +360,25 @@ set(IRRDRVROBJ
|
|||||||
mt_opengl_loader.cpp
|
mt_opengl_loader.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(ENABLE_OPENGL)
|
||||||
|
set(IRRDRVROBJ
|
||||||
|
${IRRDRVROBJ}
|
||||||
|
COpenGLCacheHandler.cpp
|
||||||
|
COpenGLDriver.cpp
|
||||||
|
COpenGLShaderMaterialRenderer.cpp
|
||||||
|
COpenGLSLMaterialRenderer.cpp
|
||||||
|
COpenGLExtensionHandler.cpp
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_GLES1)
|
||||||
|
set(IRRDRVROBJ
|
||||||
|
${IRRDRVROBJ}
|
||||||
|
COGLESDriver.cpp
|
||||||
|
COGLESExtensionHandler.cpp
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(IRRIMAGEOBJ
|
set(IRRIMAGEOBJ
|
||||||
CColorConverter.cpp
|
CColorConverter.cpp
|
||||||
CImage.cpp
|
CImage.cpp
|
||||||
@ -404,7 +416,7 @@ if(USE_SDLGLES2)
|
|||||||
target_sources(IRRVIDEOOBJ PRIVATE
|
target_sources(IRRVIDEOOBJ PRIVATE
|
||||||
OpenGLES2/Driver.cpp
|
OpenGLES2/Driver.cpp
|
||||||
)
|
)
|
||||||
else()
|
elseif(ENABLE_GLES2)
|
||||||
target_sources(IRRVIDEOOBJ PRIVATE
|
target_sources(IRRVIDEOOBJ PRIVATE
|
||||||
COGLES2Driver.cpp
|
COGLES2Driver.cpp
|
||||||
COGLES2ExtensionHandler.cpp
|
COGLES2ExtensionHandler.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user