Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-11-05 13:08:32 +0300
committerHannah von Reth <vonreth@kde.org>2020-11-05 14:00:39 +0300
commitda0554362ad9c1a7e7c65e844bcb1bb59f44846e (patch)
tree6856b9727679f377dd4990ffa14553584bad0d8a
parent5f0527b59d521ee439f29af74c4e9dd8e2de78d9 (diff)
Allow to place a branding into the src tree
-rw-r--r--CMakeLists.txt3
-rw-r--r--THEME.cmake2
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2c28f328..bd30f2e0b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,6 +87,9 @@ endif(WIN32)
set(SHAREDIR ${DATADIR})
set(OEM_THEME_DIR "${PROJECT_SOURCE_DIR}" CACHE STRING "Define directory containing a custom theme")
+if ("${OEM_THEME_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}" AND EXISTS "${PROJECT_SOURCE_DIR}/branding")
+ set(OEM_THEME_DIR "${PROJECT_SOURCE_DIR}/branding" CACHE STRING "We are using a branding" FORCE)
+endif()
# this option removes Http authentication, keychain, shibboleth etc and is intended for
# external authentication mechanisms
diff --git a/THEME.cmake b/THEME.cmake
index c0de50c6f..ee316c628 100644
--- a/THEME.cmake
+++ b/THEME.cmake
@@ -4,6 +4,8 @@ else()
include ("${CMAKE_CURRENT_LIST_DIR}/OWNCLOUD.cmake")
endif()
+message(STATUS "Branding: ${APPLICATION_NAME}")
+
# Default suffix if the theme doesn't define one
if(NOT DEFINED APPLICATION_VIRTUALFILE_SUFFIX)
set(APPLICATION_VIRTUALFILE_SUFFIX "${APPLICATION_SHORTNAME}_virtual" CACHE STRING "Virtual file suffix (not including the .)")