Warning, /graphics/digikam/project/bundles/3rdparty/ext_breeze/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build breeze style for digiKam bundle. 0002 # 0003 # Copyright (c) 2015-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0004 # 0005 # Redistribution and use is allowed according to the terms of the BSD license. 0006 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0007 # 0008 0009 set(EXTPREFIX_breeze "${EXTPREFIX}") 0010 0011 if(MINGW) 0012 0013 GetKF5PlasmaMd5Sums(breeze ${KP_VERSION}) 0014 0015 ExternalProject_Add(ext_breeze 0016 0017 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0018 URL https://download.kde.org/stable/plasma/${KP_VERSION}/breeze-${KP_VERSION}.tar.xz 0019 URL_MD5 ${KF5_PLASMA_MD5SUM} 0020 0021 INSTALL_DIR ${EXTPREFIX_breeze} 0022 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/breeze-common-rules.patch && 0023 cp -f ${CMAKE_CURRENT_SOURCE_DIR}/breezesettings.cpp <SOURCE_DIR>/kstyle/. && 0024 cp -f ${CMAKE_CURRENT_SOURCE_DIR}/breezesettings.h <SOURCE_DIR>/kstyle/. && 0025 cp -f ${CMAKE_CURRENT_SOURCE_DIR}/breezestyleconfigdata.cpp <SOURCE_DIR>/kstyle/. && 0026 cp -f ${CMAKE_CURRENT_SOURCE_DIR}/breezestyleconfigdata.h <SOURCE_DIR>/kstyle/. 0027 0028 CMAKE_ARGS -DMXE_TOOLCHAIN=${MXE_TOOLCHAIN} 0029 -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} 0030 -DCMAKE_COLOR_MAKEFILE=ON 0031 -DCMAKE_INSTALL_PREFIX=${EXTPREFIX_breeze} 0032 -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON 0033 -DCMAKE_TOOLCHAIN_FILE=${MXE_TOOLCHAIN} 0034 -DCMAKE_FIND_PREFIX_PATH=${CMAKE_PREFIX_PATH} 0035 -DCMAKE_SYSTEM_INCLUDE_PATH=${CMAKE_PREFIX_PATH}/include 0036 -DCMAKE_INCLUDE_PATH=${CMAKE_PREFIX_PATH}/include 0037 -DCMAKE_LIBRARY_PATH=${CMAKE_PREFIX_PATH}/lib 0038 -DZLIB_ROOT=${CMAKE_PREFIX_PATH} 0039 ${GLOBAL_PROFILE} 0040 "${argoptions}" 0041 -DWITH_WALLPAPERS=OFF 0042 -DWITH_DECORATIONS=OFF 0043 -DBUILD_TESTING=OFF 0044 -Wno-dev 0045 0046 UPDATE_COMMAND "" 0047 ALWAYS 0 0048 ) 0049 0050 elseif(APPLE) 0051 0052 GetKF5PlasmaMd5Sums(breeze ${KP_VERSION}) 0053 0054 ExternalProject_Add(ext_breeze 0055 0056 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0057 URL https://download.kde.org/stable/plasma/${KP_VERSION}/breeze-${KP_VERSION}.tar.xz 0058 URL_MD5 ${KF5_PLASMA_MD5SUM} 0059 0060 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/breeze-common-rules.patch 0061 0062 CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.macports <SOURCE_DIR>/. && 0063 <SOURCE_DIR>/bootstrap.macports ${EXTPREFIX_breeze} debug x86_64 "-DWITH_WALLPAPERS=OFF -DWITH_DECORATIONS=OFF -DBUILD_TESTING=OFF -Wno-dev" 0064 0065 BUILD_COMMAND cd <SOURCE_DIR>/build && $(MAKE) 0066 0067 INSTALL_COMMAND cd <SOURCE_DIR>/build && make install/fast 0068 0069 BUILD_IN_SOURCE 1 0070 0071 UPDATE_COMMAND "" 0072 ALWAYS 0 0073 ) 0074 0075 else() # Linux 0076 0077 GetKF5PlasmaMd5Sums(breeze ${KP_VERSION}) 0078 0079 ExternalProject_Add(ext_breeze 0080 0081 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0082 URL https://download.kde.org/stable/plasma/${KP_VERSION}/breeze-${KP_VERSION}.tar.xz 0083 URL_MD5 ${KF5_PLASMA_MD5SUM} 0084 0085 INSTALL_DIR ${EXTPREFIX_breeze} 0086 0087 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTPREFIX_breeze} 0088 -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} 0089 ${GLOBAL_PROFILE} 0090 -DCMAKE_SYSTEM_PREFIX_PATH=${EXTPREFIX} 0091 -DWITH_WALLPAPERS=OFF 0092 -DWITH_DECORATIONS=OFF 0093 -DBUILD_TESTING=OFF 0094 -Wno-dev 0095 0096 PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/breeze-common-rules.patch 0097 0098 UPDATE_COMMAND "" 0099 ALWAYS 0 0100 ) 0101 0102 endif()