"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmake/modules/OCGenerateTheme.cmake" between
ownCloud-2.7.5.3180.tar.xz and ownCloud-2.7.6.3261.tar.xz

About: ownCloud Client (formerly "mirall") is a tool to synchronize files from ownCloud Server with your desktop client. It uses OCSync as its syncing backend.

OCGenerateTheme.cmake  (ownCloud-2.7.5.3180.tar.xz):OCGenerateTheme.cmake  (ownCloud-2.7.6.3261.tar.xz)
skipping to change at line 33 skipping to change at line 33
set(icon "theme/${_ICON_SRC_PATH}/${ICON_NAME}-${size}.png") set(icon "theme/${_ICON_SRC_PATH}/${ICON_NAME}-${size}.png")
set(iconAlias "theme/${THEME}/${ICON_NAME}-${size}.png") set(iconAlias "theme/${THEME}/${ICON_NAME}-${size}.png")
if (EXISTS ${OEM_THEME_DIR}/${icon}) if (EXISTS ${OEM_THEME_DIR}/${icon})
file(APPEND "${QRC}" "<file alias=\"${iconAlias}\">${OEM_THE ME_DIR}/${icon}</file>\n") file(APPEND "${QRC}" "<file alias=\"${iconAlias}\">${OEM_THE ME_DIR}/${icon}</file>\n")
endif() endif()
endforeach() endforeach()
endif() endif()
endif() endif()
endfunction() endfunction()
function(generate_theme TARGET) function(generate_theme TARGET OWNCLOUD_SIDEBAR_ICONS_OUT)
if(NOT "${OEM_THEME_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}") if(NOT "${OEM_THEME_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
set(QRC ${CMAKE_BINARY_DIR}/theme.qrc) set(QRC ${CMAKE_BINARY_DIR}/theme.qrc)
file(WRITE "${QRC}" "<RCC>\n<qresource prefix=\"/client/${APPLICATION_SH ORTNAME}\">\n") file(WRITE "${QRC}" "<RCC>\n<qresource prefix=\"/client/${APPLICATION_SH ORTNAME}\">\n")
__addIcon("universal" "${APPLICATION_ICON_NAME}-icon" SRC_PATH "colored" ) __addIcon("universal" "${APPLICATION_ICON_NAME}-icon" SRC_PATH "colored" )
__addIcon("universal" "wizard_logo" SRC_PATH "colored") __addIcon("universal" "wizard_logo" SRC_PATH "colored")
set(STATES "ok;error;information;offline;pause;sync") set(STATES "ok;error;information;offline;pause;sync")
set(THEMES "colored;dark;black;white") set(THEMES "colored;dark;black;white")
foreach(theme ${THEMES}) foreach(theme ${THEMES})
foreach(state ${STATES}) foreach(state ${STATES})
__addIcon(${theme} "state-${state}") __addIcon(${theme} "state-${state}")
endforeach() endforeach()
endforeach() endforeach()
file(APPEND "${QRC}" "</qresource>\n</RCC>\n") file(APPEND "${QRC}" "</qresource>\n</RCC>\n")
target_sources(${TARGET} PRIVATE ${QRC}) target_sources(${TARGET} PRIVATE ${QRC})
# add executable icon on windows and osx
file(GLOB_RECURSE OWNCLOUD_SIDEBAR_ICONS "${OEM_THEME_DIR}/theme/colored
/*-${APPLICATION_ICON_NAME}-sidebar.png")
else()
file(GLOB_RECURSE OWNCLOUD_SIDEBAR_ICONS "${OEM_THEME_DIR}/theme/colored
/*-${APPLICATION_ICON_NAME}-icon-sidebar.png")
endif() endif()
set(${OWNCLOUD_SIDEBAR_ICONS_OUT} ${OWNCLOUD_SIDEBAR_ICONS} PARENT_SCOPE)
endfunction() endfunction()
function(generate_legacy_icons theme_dir OUT) function(generate_legacy_icons theme_dir OUT)
# allow legacy file names # allow legacy file names
file(GLOB_RECURSE OWNCLOUD_ICONS_OLD "${theme_dir}/colored/${APPLICATION_ICO N_NAME}-icon-*.png") file(GLOB_RECURSE OWNCLOUD_ICONS_OLD "${theme_dir}/colored/${APPLICATION_ICO N_NAME}-icon-*.png")
foreach(icon ${OWNCLOUD_ICONS_OLD}) foreach(icon ${OWNCLOUD_ICONS_OLD})
get_filename_component(icon_name ${icon} NAME) get_filename_component(icon_name ${icon} NAME)
string(REGEX MATCH "([0-9]+)" size ${icon_name}) string(REGEX MATCH "([0-9]+)" size ${icon_name})
set(out_name "${CMAKE_BINARY_DIR}/${size}-app-icon.png") set(out_name "${CMAKE_BINARY_DIR}/${size}-app-icon.png")
configure_file(${icon} ${out_name} COPYONLY) configure_file(${icon} ${out_name} COPYONLY)
 End of changes. 3 change blocks. 
1 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)