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 16:27:33 +0300
committerHannah von Reth <hannah.vonreth@owncloud.com>2020-11-05 16:27:33 +0300
commit7df5c4e536017df35e07e0170dffdf76c0b770fa (patch)
tree90534e0eeefa3d7c82831a4cf8e34f15435950c9 /CMakeLists.txt
parent84ba6ced7a44e1413b7616ecc13114a05fdd982c (diff)
Always generate legacy icons, independent of build options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de4404e73..91fc776de 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,7 @@ include(CTest)
include(OCConfigPluginDir)
+include(OCGenerateTheme)
if (EXISTS "${PROJECT_SOURCE_DIR}/branding")
set(OEM_THEME_DIR "${PROJECT_SOURCE_DIR}/branding" CACHE STRING "The directory containing a custom theme")
@@ -179,6 +180,12 @@ file( GLOB TRANS_FILES ${CMAKE_SOURCE_DIR}/translations/client_*.ts)
set(TRANSLATIONS ${TRANS_FILES})
+file(GLOB_RECURSE OWNCLOUD_ICONS "${OEM_THEME_DIR}/theme/colored/*-${APPLICATION_ICON_NAME}-icon.png")
+if (NOT OWNCLOUD_ICONS)
+ generate_legacy_icons(${OEM_THEME_DIR}/theme OWNCLOUD_ICONS)
+endif()
+MESSAGE(STATUS "OWNCLOUD_ICONS: ${APPLICATION_ICON_NAME}: ${OWNCLOUD_ICONS}")
+
if(APPLE)
list(APPEND OWNCLOUD_BUNDLED_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/sync-exclude.lst")
elseif(BUILD_CLIENT)