mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Add cmake NEXTCLOUD_DEV so debug client can run in parallel to release client.
- Defaults to OFF. Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
d9d4101ca7
commit
63b0a9f94d
2 changed files with 15 additions and 5 deletions
|
@ -184,6 +184,9 @@ option(BUILD_GUI "BUILD_GUI" ON)
|
||||||
# build the tests
|
# build the tests
|
||||||
option(BUILD_TESTING "BUILD_TESTING" ON)
|
option(BUILD_TESTING "BUILD_TESTING" ON)
|
||||||
|
|
||||||
|
# allows to run nextclouddev in parallel to nextcloud + logs
|
||||||
|
option(NEXTCLOUD_DEV "NEXTCLOUD_DEV" OFF)
|
||||||
|
|
||||||
option(ENABLE_CLANG_TIDY "ENABLE_CLANG_TIDY" OFF)
|
option(ENABLE_CLANG_TIDY "ENABLE_CLANG_TIDY" OFF)
|
||||||
if(ENABLE_CLANG_TIDY)
|
if(ENABLE_CLANG_TIDY)
|
||||||
find_program(CLANG_TIDY_EXE NAMES "clang-tidy")
|
find_program(CLANG_TIDY_EXE NAMES "clang-tidy")
|
||||||
|
|
|
@ -1,6 +1,15 @@
|
||||||
set( APPLICATION_NAME "Nextcloud" )
|
if(NEXTCLOUD_DEV)
|
||||||
set( APPLICATION_SHORTNAME "Nextcloud" )
|
set( APPLICATION_NAME "NextcloudDev" )
|
||||||
set( APPLICATION_EXECUTABLE "nextcloud" )
|
set( APPLICATION_SHORTNAME "NextDev" )
|
||||||
|
set( APPLICATION_EXECUTABLE "nextclouddev" )
|
||||||
|
set( APPLICATION_ICON_NAME "Nextcloud" )
|
||||||
|
else()
|
||||||
|
set( APPLICATION_NAME "Nextcloud" )
|
||||||
|
set( APPLICATION_SHORTNAME "Nextcloud" )
|
||||||
|
set( APPLICATION_EXECUTABLE "nextcloud" )
|
||||||
|
set( APPLICATION_ICON_NAME "${APPLICATION_SHORTNAME}" )
|
||||||
|
endif()
|
||||||
|
|
||||||
set( APPLICATION_CONFIG_NAME "${APPLICATION_EXECUTABLE}" )
|
set( APPLICATION_CONFIG_NAME "${APPLICATION_EXECUTABLE}" )
|
||||||
set( APPLICATION_DOMAIN "nextcloud.com" )
|
set( APPLICATION_DOMAIN "nextcloud.com" )
|
||||||
set( APPLICATION_VENDOR "Nextcloud GmbH" )
|
set( APPLICATION_VENDOR "Nextcloud GmbH" )
|
||||||
|
@ -10,8 +19,6 @@ set( APPLICATION_HELP_URL "" CACHE STRING "URL for the help menu" )
|
||||||
if(APPLE AND APPLICATION_NAME STREQUAL "Nextcloud" AND EXISTS "${CMAKE_SOURCE_DIR}/theme/colored/Nextcloud-macOS-icon.svg")
|
if(APPLE AND APPLICATION_NAME STREQUAL "Nextcloud" AND EXISTS "${CMAKE_SOURCE_DIR}/theme/colored/Nextcloud-macOS-icon.svg")
|
||||||
set( APPLICATION_ICON_NAME "Nextcloud-macOS" )
|
set( APPLICATION_ICON_NAME "Nextcloud-macOS" )
|
||||||
message("Using macOS-specific application icon: ${APPLICATION_ICON_NAME}")
|
message("Using macOS-specific application icon: ${APPLICATION_ICON_NAME}")
|
||||||
else()
|
|
||||||
set( APPLICATION_ICON_NAME "${APPLICATION_SHORTNAME}" )
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set( APPLICATION_ICON_SET "SVG" )
|
set( APPLICATION_ICON_SET "SVG" )
|
||||||
|
|
Loading…
Reference in a new issue