diff --git a/VERSION b/VERSION index 97997260..ad16e77b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-118-gb524c077a4+1 \ No newline at end of file +a12-119-g3e021f3a6b+1 \ No newline at end of file diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 4ca76a27..0ead243a 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -14,6 +14,10 @@ if(OPTIMIZE_FOR_NATIVE) 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( "-Wall" "-Werror" diff --git a/client/clipboards/CMakeLists.txt b/client/clipboards/CMakeLists.txt index ed41cf12..574b0835 100644 --- a/client/clipboards/CMakeLists.txt +++ b/client/clipboards/CMakeLists.txt @@ -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(APPEND ${CLIPBOARD_C} "#include \n\n") -set(CLIPBOARDS) -set(CLIPBOARDS_LINK) +set(CLIPBOARDS "_") +set(CLIPBOARDS_LINK "_") function(add_clipboard name) set(CLIPBOARDS "${CLIPBOARDS};${name}" PARENT_SCOPE) set(CLIPBOARDS_LINK "${CLIPBOARDS_LINK};clipboard_${name}" PARENT_SCOPE) @@ -19,7 +19,9 @@ function(add_clipboard name) endfunction() # Add/remove clipboards here! -add_clipboard(X11) +if (ENABLE_CB_X11) + add_clipboard(X11) +endif() list(REMOVE_AT CLIPBOARDS 0) list(REMOVE_AT CLIPBOARDS_LINK 0) diff --git a/client/fonts/CMakeLists.txt b/client/fonts/CMakeLists.txt index f6513221..1a718f26 100644 --- a/client/fonts/CMakeLists.txt +++ b/client/fonts/CMakeLists.txt @@ -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(APPEND ${FONT_C} "#include \n\n") -set(FONTS) -set(FONTS_LINK) +set(FONTS "_") +set(FONTS_LINK "_") function(add_font name) set(FONTS "${FONTS};${name}" PARENT_SCOPE) set(FONTS_LINK "${FONTS_LINK};font_${name}" PARENT_SCOPE) diff --git a/client/renderers/CMakeLists.txt b/client/renderers/CMakeLists.txt index 66d7e4da..1abce015 100644 --- a/client/renderers/CMakeLists.txt +++ b/client/renderers/CMakeLists.txt @@ -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 \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)