761e0d9de7
The literal task 'build ALL KDE packages' cannot be 100% completed because 12 packages require upstream dependencies not available on Redox: - kirigami + plasma* (4): QML JIT disabled — no QQuickWindow/QQmlEngine - kwin real build (1): Qt6::Sensors port needed - breeze + kf6-kio + kf6-knewstuff + kde-cli-tools (4): source issues - plasma extras (3): transitive blockers What WAS completed: - Cookbook topological sort fix (root cause — all deps now correct order) - kf6-attica recipe (183 files, 2.4MB pkgar) - 12 I2C/GPIO/UCSI daemons archived as durable patches - Source archival system (make sources) - Config + all docs synced, no contradictions
137 lines
4.0 KiB
CMake
137 lines
4.0 KiB
CMake
################# includes #################
|
|
include_directories(
|
|
animations
|
|
debug
|
|
)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/libbreezecommon)
|
|
include_directories(${CMAKE_BINARY_DIR}/libbreezecommon)
|
|
|
|
################# configuration #################
|
|
configure_file(config-breeze.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-breeze.h )
|
|
|
|
########### next target ###############
|
|
set(breeze_PART_SRCS
|
|
animations/breezeanimation.cpp
|
|
animations/breezeanimations.cpp
|
|
animations/breezeanimationdata.cpp
|
|
animations/breezebaseengine.cpp
|
|
animations/breezebusyindicatordata.cpp
|
|
animations/breezebusyindicatorengine.cpp
|
|
animations/breezedialdata.cpp
|
|
animations/breezedialengine.cpp
|
|
animations/breezeenabledata.cpp
|
|
animations/breezegenericdata.cpp
|
|
animations/breezeheaderviewdata.cpp
|
|
animations/breezeheaderviewengine.cpp
|
|
animations/breezescrollbardata.cpp
|
|
animations/breezescrollbarengine.cpp
|
|
animations/breezespinboxengine.cpp
|
|
animations/breezespinboxdata.cpp
|
|
animations/breezestackedwidgetdata.cpp
|
|
animations/breezestackedwidgetengine.cpp
|
|
animations/breezetabbarengine.cpp
|
|
animations/breezetabbardata.cpp
|
|
animations/breezetoolboxengine.cpp
|
|
animations/breezetransitiondata.cpp
|
|
animations/breezetransitionwidget.cpp
|
|
animations/breezewidgetstateengine.cpp
|
|
animations/breezewidgetstatedata.cpp
|
|
debug/breezewidgetexplorer.cpp
|
|
breezeaddeventfilter.cpp
|
|
breezeblurhelper.cpp
|
|
breezeframeshadow.cpp
|
|
breezehelper.cpp
|
|
breezemdiwindowshadow.cpp
|
|
breezemnemonics.cpp
|
|
breezepropertynames.cpp
|
|
breezeshadowhelper.cpp
|
|
breezesplitterproxy.cpp
|
|
breezestyle.cpp
|
|
breezestyleplugin.cpp
|
|
breezetileset.cpp
|
|
breezewindowmanager.cpp
|
|
breezetoolsareamanager.cpp
|
|
)
|
|
|
|
kconfig_add_kcfg_files(breeze_PART_SRCS ../kdecoration/breezesettings.kcfgc)
|
|
kconfig_add_kcfg_files(breeze_PART_SRCS breezestyleconfigdata.kcfgc)
|
|
|
|
|
|
add_library(breeze${QT_MAJOR_VERSION} MODULE ${breeze_PART_SRCS})
|
|
|
|
ecm_qt_declare_logging_category(breeze${QT_MAJOR_VERSION}
|
|
HEADER
|
|
breeze_logging.h
|
|
IDENTIFIER
|
|
BREEZE
|
|
CATEGORY_NAME
|
|
breeze${QT_MAJOR_VERSION}
|
|
DEFAULT_SEVERITY
|
|
Warning
|
|
)
|
|
|
|
target_link_libraries(breeze${QT_MAJOR_VERSION}
|
|
Qt${QT_MAJOR_VERSION}::Core
|
|
Qt${QT_MAJOR_VERSION}::Gui
|
|
Qt${QT_MAJOR_VERSION}::Widgets
|
|
)
|
|
|
|
if(HAVE_QTDBUS)
|
|
target_link_libraries(breeze${QT_MAJOR_VERSION}
|
|
Qt${QT_MAJOR_VERSION}::DBus
|
|
)
|
|
endif()
|
|
|
|
if( BREEZE_HAVE_QTQUICK )
|
|
target_link_libraries(breeze${QT_MAJOR_VERSION}
|
|
Qt${QT_MAJOR_VERSION}::Quick
|
|
KF${QT_MAJOR_VERSION}::CoreAddons
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(breeze${QT_MAJOR_VERSION}
|
|
KF${QT_MAJOR_VERSION}::CoreAddons
|
|
KF${QT_MAJOR_VERSION}::ConfigCore
|
|
KF${QT_MAJOR_VERSION}::ConfigGui
|
|
KF${QT_MAJOR_VERSION}::GuiAddons
|
|
KF${QT_MAJOR_VERSION}::IconThemes
|
|
KF${QT_MAJOR_VERSION}::WindowSystem
|
|
)
|
|
|
|
if(QT_MAJOR_VERSION STREQUAL "5")
|
|
target_link_libraries(breeze5 KF5::ConfigWidgets)
|
|
if (BREEZE_HAVE_QTQUICK)
|
|
target_link_libraries(breeze5 KF5::Kirigami2)
|
|
endif()
|
|
else()
|
|
target_link_libraries(breeze6 KF6::ColorScheme)
|
|
if (BREEZE_HAVE_QTQUICK)
|
|
target_link_libraries(breeze6 KF6::KirigamiPlatform)
|
|
endif()
|
|
endif()
|
|
|
|
target_link_libraries(breeze${QT_MAJOR_VERSION} breezecommon${QT_MAJOR_VERSION})
|
|
|
|
if(KF${QT_MAJOR_VERSION}FrameworkIntegration_FOUND)
|
|
target_link_libraries(breeze${QT_MAJOR_VERSION} KF${QT_MAJOR_VERSION}::Style)
|
|
endif()
|
|
|
|
|
|
if (WIN32)
|
|
# As stated in https://docs.microsoft.com/en-us/cpp/c-runtime-library/math-constants M_PI only gets defined
|
|
# when if _USE_MATH_DEFINES is defined
|
|
target_compile_definitions(breeze${QT_MAJOR_VERSION} PRIVATE _USE_MATH_DEFINES _BSD_SOURCE)
|
|
endif()
|
|
|
|
|
|
########### install files ###############
|
|
install(TARGETS breeze${QT_MAJOR_VERSION} DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/styles/)
|
|
install(FILES breeze.themerc DESTINATION ${KDE_INSTALL_DATADIR}/kstyle/themes)
|
|
|
|
########### subdirectories ###############
|
|
|
|
if (QT_MAJOR_VERSION EQUAL "6" AND TARGET "KF6::KCMUtils")
|
|
add_subdirectory(config)
|
|
endif()
|