mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
CMake: Add a default placeholder_suffix
To make themes work that don't define it explicitly.
This commit is contained in:
parent
8dcfd50a7d
commit
6347aeeed2
1 changed files with 7 additions and 0 deletions
|
@ -5,12 +5,19 @@ project(client)
|
||||||
|
|
||||||
set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||||
|
|
||||||
|
|
||||||
set(OEM_THEME_DIR "" CACHE STRING "Define directory containing a custom theme")
|
set(OEM_THEME_DIR "" CACHE STRING "Define directory containing a custom theme")
|
||||||
if ( EXISTS ${OEM_THEME_DIR}/OEM.cmake )
|
if ( EXISTS ${OEM_THEME_DIR}/OEM.cmake )
|
||||||
include ( ${OEM_THEME_DIR}/OEM.cmake )
|
include ( ${OEM_THEME_DIR}/OEM.cmake )
|
||||||
else ()
|
else ()
|
||||||
include ( ${CMAKE_SOURCE_DIR}/NEXTCLOUD.cmake )
|
include ( ${CMAKE_SOURCE_DIR}/NEXTCLOUD.cmake )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Default suffix if the theme doesn't define one
|
||||||
|
if(NOT DEFINED APPLICATION_PLACEHOLDER_SUFFIX)
|
||||||
|
set(APPLICATION_PLACEHOLDER_SUFFIX "${APPLICATION_SHORTNAME}_placeholder" CACHE STRING "Placeholder suffix (not including the .)")
|
||||||
|
endif()
|
||||||
|
|
||||||
# need this logic to not mess with re/uninstallations via macosx.pkgproj
|
# need this logic to not mess with re/uninstallations via macosx.pkgproj
|
||||||
if(${APPLICATION_REV_DOMAIN} STREQUAL "com.owncloud.desktopclient")
|
if(${APPLICATION_REV_DOMAIN} STREQUAL "com.owncloud.desktopclient")
|
||||||
set(APPLICATION_REV_DOMAIN_INSTALLER "com.ownCloud.client")
|
set(APPLICATION_REV_DOMAIN_INSTALLER "com.ownCloud.client")
|
||||||
|
|
Loading…
Reference in a new issue