mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Add CMake option to disable GUI build
This commit is contained in:
parent
164993ddf8
commit
e0841e4958
@ -115,6 +115,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 owncloudcmd 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.
|
||||
|
||||
@ -44,7 +44,9 @@ endif()
|
||||
add_subdirectory(csync)
|
||||
add_subdirectory(libsync)
|
||||
if (NOT BUILD_LIBRARIES_ONLY)
|
||||
add_subdirectory(gui)
|
||||
if (BUILD_GUI)
|
||||
add_subdirectory(gui)
|
||||
endif()
|
||||
add_subdirectory(cmd)
|
||||
|
||||
if (WITH_CRASHREPORTER)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user