|
|
@@ -221,15 +221,13 @@ endif()
|
|
|
include( AddAppIconMacro )
|
|
|
set(ownCloud_old ${ownCloud})
|
|
|
|
|
|
-# set an icon_app_name. For historical reasons we can not use the
|
|
|
-# application_shortname for ownCloud but must rather set it manually.
|
|
|
-if ( EXISTS ${OEM_THEME_DIR}/OEM.cmake )
|
|
|
- set(ICON_APP_NAME ${APPLICATION_SHORTNAME})
|
|
|
-else()
|
|
|
- set(ICON_APP_NAME "owncloud")
|
|
|
+# For historical reasons we can not use the application_shortname
|
|
|
+# for ownCloud but must rather set it manually.
|
|
|
+if (NOT DEFINED APPLICATION_ICON_NAME)
|
|
|
+ set(APPLICATION_ICON_NAME ${APPLICATION_SHORTNAME})
|
|
|
endif()
|
|
|
|
|
|
-kde4_add_app_icon( ownCloud "${theme_dir}/colored/${ICON_APP_NAME}-icon*.png")
|
|
|
+kde4_add_app_icon( ownCloud "${theme_dir}/colored/${APPLICATION_ICON_NAME}-icon*.png")
|
|
|
list(APPEND final_src ${ownCloud})
|
|
|
set(ownCloud ${ownCloud_old})
|
|
|
|
|
|
@@ -243,11 +241,11 @@ endif()
|
|
|
if(NOT BUILD_OWNCLOUD_OSX_BUNDLE)
|
|
|
|
|
|
if(NOT WIN32)
|
|
|
- file( GLOB _icons "${theme_dir}/colored/${ICON_APP_NAME}-icon-*.png" )
|
|
|
+ file( GLOB _icons "${theme_dir}/colored/${APPLICATION_ICON_NAME}-icon-*.png" )
|
|
|
foreach( _file ${_icons} )
|
|
|
- string( REPLACE "${theme_dir}/colored/${ICON_APP_NAME}-icon-" "" _res ${_file} )
|
|
|
+ string( REPLACE "${theme_dir}/colored/${APPLICATION_ICON_NAME}-icon-" "" _res ${_file} )
|
|
|
string( REPLACE ".png" "" _res ${_res} )
|
|
|
- install( FILES ${_file} RENAME ${ICON_APP_NAME}.png DESTINATION ${DATADIR}/icons/hicolor/${_res}x${_res}/apps )
|
|
|
+ install( FILES ${_file} RENAME ${APPLICATION_ICON_NAME}.png DESTINATION ${DATADIR}/icons/hicolor/${_res}x${_res}/apps )
|
|
|
endforeach( _file )
|
|
|
endif(NOT WIN32)
|
|
|
|