From: Gerhard Gappmeier Date: Thu, 8 Nov 2018 17:15:04 +0000 (+0100) Subject: Add CMake option to disable GUI build X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~431 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6aead6425eb00110ffc24aa47c5dde1e1ab8cd25;p=nextcloud-desktop.git Add CMake option to disable GUI build --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 383f00ae2..b505b8e22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,9 @@ option(BUILD_CLIENT "BUILD_CLIENT" ON) # this option creates only libocsync and libowncloudsync (NOTE: BUILD_CLIENT needs to be on) option(BUILD_LIBRARIES_ONLY "BUILD_LIBRARIES_ONLY" OFF) +# build the GUI component, when disabled only nextcloudcmd is built +option(BUILD_GUI "BUILD_GUI" ON) + # When this option is enabled, 5xx errors are not added to the blacklist # Normally you don't want to enable this option because if a particular file # triggers a bug on the server, you want the file to be blacklisted. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 00eef6c87..b3658c98b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -60,7 +60,9 @@ add_subdirectory(csync) add_subdirectory(libsync) if (NOT BUILD_LIBRARIES_ONLY) add_subdirectory(cmd) - add_subdirectory(gui) + if (BUILD_GUI) + add_subdirectory(gui) + endif() if (WITH_CRASHREPORTER) add_subdirectory(3rdparty/libcrashreporter-qt)