mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 18:24:08 +00:00
[client] added options to disable/enable interfaces
This commit is contained in:
@@ -10,8 +10,8 @@ file(APPEND ${RENDERER_H} "extern LG_Renderer * LG_Renderers[];\n\n")
|
||||
file(WRITE ${RENDERER_C} "#include \"interface/renderer.h\"\n\n")
|
||||
file(APPEND ${RENDERER_C} "#include <stddef.h>\n\n")
|
||||
|
||||
set(RENDERERS)
|
||||
set(RENDERERS_LINK)
|
||||
set(RENDERERS "_")
|
||||
set(RENDERERS_LINK "_")
|
||||
function(add_renderer name)
|
||||
set(RENDERERS "${RENDERERS};${name}" PARENT_SCOPE)
|
||||
set(RENDERERS_LINK "${RENDERERS_LINK};renderer_${name}" PARENT_SCOPE)
|
||||
@@ -19,8 +19,12 @@ function(add_renderer name)
|
||||
endfunction()
|
||||
|
||||
# Add/remove renderers here!
|
||||
add_renderer(EGL)
|
||||
add_renderer(OpenGL)
|
||||
if(ENABLE_EGL)
|
||||
add_renderer(EGL)
|
||||
endif()
|
||||
if (ENABLE_OPENGL)
|
||||
add_renderer(OpenGL)
|
||||
endif()
|
||||
|
||||
list(REMOVE_AT RENDERERS 0)
|
||||
list(REMOVE_AT RENDERERS_LINK 0)
|
||||
|
Reference in New Issue
Block a user