mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] added options to disable/enable interfaces
This commit is contained in:
parent
3e021f3a6b
commit
66c3c0115f
@ -14,6 +14,10 @@ if(OPTIMIZE_FOR_NATIVE)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_OPENGL "Enable the OpenGL renderer" ON)
|
||||||
|
option(ENABLE_EGL "Enable the EGL renderer" ON)
|
||||||
|
option(ENABLE_CB_X11 "Enable X11 clipboard integration" ON)
|
||||||
|
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
"-Wall"
|
"-Wall"
|
||||||
"-Werror"
|
"-Werror"
|
||||||
|
@ -10,8 +10,8 @@ file(APPEND ${CLIPBOARD_H} "extern LG_Clipboard * LG_Clipboards[];\n\n")
|
|||||||
file(WRITE ${CLIPBOARD_C} "#include \"interface/clipboard.h\"\n\n")
|
file(WRITE ${CLIPBOARD_C} "#include \"interface/clipboard.h\"\n\n")
|
||||||
file(APPEND ${CLIPBOARD_C} "#include <stddef.h>\n\n")
|
file(APPEND ${CLIPBOARD_C} "#include <stddef.h>\n\n")
|
||||||
|
|
||||||
set(CLIPBOARDS)
|
set(CLIPBOARDS "_")
|
||||||
set(CLIPBOARDS_LINK)
|
set(CLIPBOARDS_LINK "_")
|
||||||
function(add_clipboard name)
|
function(add_clipboard name)
|
||||||
set(CLIPBOARDS "${CLIPBOARDS};${name}" PARENT_SCOPE)
|
set(CLIPBOARDS "${CLIPBOARDS};${name}" PARENT_SCOPE)
|
||||||
set(CLIPBOARDS_LINK "${CLIPBOARDS_LINK};clipboard_${name}" PARENT_SCOPE)
|
set(CLIPBOARDS_LINK "${CLIPBOARDS_LINK};clipboard_${name}" PARENT_SCOPE)
|
||||||
@ -19,7 +19,9 @@ function(add_clipboard name)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Add/remove clipboards here!
|
# Add/remove clipboards here!
|
||||||
add_clipboard(X11)
|
if (ENABLE_CB_X11)
|
||||||
|
add_clipboard(X11)
|
||||||
|
endif()
|
||||||
|
|
||||||
list(REMOVE_AT CLIPBOARDS 0)
|
list(REMOVE_AT CLIPBOARDS 0)
|
||||||
list(REMOVE_AT CLIPBOARDS_LINK 0)
|
list(REMOVE_AT CLIPBOARDS_LINK 0)
|
||||||
|
@ -10,8 +10,8 @@ file(APPEND ${FONT_H} "extern LG_Font * LG_Fonts[];\n\n")
|
|||||||
file(WRITE ${FONT_C} "#include \"interface/font.h\"\n\n")
|
file(WRITE ${FONT_C} "#include \"interface/font.h\"\n\n")
|
||||||
file(APPEND ${FONT_C} "#include <stddef.h>\n\n")
|
file(APPEND ${FONT_C} "#include <stddef.h>\n\n")
|
||||||
|
|
||||||
set(FONTS)
|
set(FONTS "_")
|
||||||
set(FONTS_LINK)
|
set(FONTS_LINK "_")
|
||||||
function(add_font name)
|
function(add_font name)
|
||||||
set(FONTS "${FONTS};${name}" PARENT_SCOPE)
|
set(FONTS "${FONTS};${name}" PARENT_SCOPE)
|
||||||
set(FONTS_LINK "${FONTS_LINK};font_${name}" PARENT_SCOPE)
|
set(FONTS_LINK "${FONTS_LINK};font_${name}" PARENT_SCOPE)
|
||||||
|
@ -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(WRITE ${RENDERER_C} "#include \"interface/renderer.h\"\n\n")
|
||||||
file(APPEND ${RENDERER_C} "#include <stddef.h>\n\n")
|
file(APPEND ${RENDERER_C} "#include <stddef.h>\n\n")
|
||||||
|
|
||||||
set(RENDERERS)
|
set(RENDERERS "_")
|
||||||
set(RENDERERS_LINK)
|
set(RENDERERS_LINK "_")
|
||||||
function(add_renderer name)
|
function(add_renderer name)
|
||||||
set(RENDERERS "${RENDERERS};${name}" PARENT_SCOPE)
|
set(RENDERERS "${RENDERERS};${name}" PARENT_SCOPE)
|
||||||
set(RENDERERS_LINK "${RENDERERS_LINK};renderer_${name}" PARENT_SCOPE)
|
set(RENDERERS_LINK "${RENDERERS_LINK};renderer_${name}" PARENT_SCOPE)
|
||||||
@ -19,8 +19,12 @@ function(add_renderer name)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Add/remove renderers here!
|
# Add/remove renderers here!
|
||||||
add_renderer(EGL)
|
if(ENABLE_EGL)
|
||||||
add_renderer(OpenGL)
|
add_renderer(EGL)
|
||||||
|
endif()
|
||||||
|
if (ENABLE_OPENGL)
|
||||||
|
add_renderer(OpenGL)
|
||||||
|
endif()
|
||||||
|
|
||||||
list(REMOVE_AT RENDERERS 0)
|
list(REMOVE_AT RENDERERS 0)
|
||||||
list(REMOVE_AT RENDERERS_LINK 0)
|
list(REMOVE_AT RENDERERS_LINK 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user