-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude decoration and lockscreen shell integration for now.
- Loading branch information
Showing
5 changed files
with
75 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,53 @@ | ||
cmake_minimum_required(VERSION 3.10.0) | ||
cmake_minimum_required(VERSION 3.19) | ||
|
||
project("PlatformIntegration" | ||
VERSION "1.0.0" | ||
DESCRIPTION "Integration of Qt applications with the Liri desktop environment" | ||
LANGUAGES CXX C | ||
) | ||
|
||
## Shared macros and functions: | ||
if(NOT LIRI_LOCAL_ECM) | ||
find_package(LiriCMakeShared "2.0.0" REQUIRED NO_MODULE) | ||
list(APPEND CMAKE_MODULE_PATH "${LCS_MODULE_PATH}") | ||
## Only build on the appropriate platforms. | ||
if(NOT (UNIX OR NOT CMAKE_SYSTEM_NAME MATCHES "Android")) | ||
message(NOTICE "Skipping the build as the condition \"UNIX OR NOT Android\" is not met.") | ||
return() | ||
endif() | ||
|
||
## Add some paths to check for CMake modules: | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/extra-cmake-modules") | ||
#list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/extra-cmake-modules") | ||
|
||
## Liri specific setup common for all modules: | ||
include(LiriSetup) | ||
## ECM: | ||
find_package(ECM 5.245.0 REQUIRED NO_MODULE) | ||
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) | ||
|
||
## Only build on the appropriate platforms. | ||
if(NOT UNIX OR ANDROID) | ||
message(NOTICE "Skipping the build as the condition \"UNIX OR ANDROID\" is not met.") | ||
return() | ||
endif() | ||
## Installation directories: | ||
include(KDEInstallDirs) | ||
|
||
## Compiler settings: | ||
set(KDE_SKIP_NULLPTR_WARNINGS_SETTINGS TRUE) | ||
include(KDECompilerSettings NO_POLICY_SCOPE) | ||
|
||
## CMake settings: | ||
include(KDECMakeSettings) | ||
|
||
## QML module: | ||
include(ECMQmlModule) | ||
|
||
## ECM: | ||
include(ECMQtDeclareLoggingCategory) | ||
|
||
## Disable use of C++ API deprecated in Qt 5.15 | ||
add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00) | ||
|
||
## Features: | ||
include(features.cmake) | ||
|
||
## Add subdirectories: | ||
if(FEATURE_qtintegration_material_decoration) | ||
add_subdirectory(src/plugins/decorations/material) | ||
# add_subdirectory(src/plugins/decorations/material) | ||
endif() | ||
if(FEATURE_qtintegration_platformtheme) | ||
add_subdirectory(src/plugins/platformtheme) | ||
endif() | ||
if(FEATURE_qtintegration_lockscreen_integration) | ||
add_subdirectory(src/plugins/shellintegration/lockscreen) | ||
# add_subdirectory(src/plugins/shellintegration/lockscreen) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
if(NOT TARGET Liri::Qt5GSettings) | ||
find_package(Qt5GSettings REQUIRED) | ||
if(NOT TARGET Liri::Qt6GSettings) | ||
find_package(Qt6GSettings REQUIRED) | ||
endif() | ||
|
||
liri_add_plugin(liritheme | ||
TYPE | ||
platformthemes | ||
SOURCES | ||
hintssettings.cpp | ||
hintssettings.h | ||
liritheme.cpp | ||
liritheme.h | ||
logging_p.cpp | ||
logging_p.h | ||
main.cpp | ||
resourcehelper.cpp | ||
resourcehelper.h | ||
LIBRARIES | ||
Qt5::GuiPrivate | ||
Qt5::Widgets | ||
Qt5::QuickControls2 | ||
Liri::Qt5GSettings | ||
qt6_add_plugin(LiriQtPlatformThemePlugin | ||
SHARED | ||
CLASS_NAME LiriThemePlugin | ||
MANUAL_FINALIZATION | ||
hintssettings.cpp hintssettings.h | ||
liritheme.cpp liritheme.h | ||
logging_p.cpp logging_p.h | ||
main.cpp | ||
resourcehelper.cpp resourcehelper.h | ||
) | ||
|
||
liri_finalize_plugin(liritheme) | ||
set_target_properties(LiriQtPlatformThemePlugin | ||
PROPERTIES OUTPUT_NAME liritheme | ||
) | ||
|
||
target_link_libraries(LiriQtPlatformThemePlugin | ||
PUBLIC | ||
Qt6::Core | ||
Qt6::Gui | ||
Qt6::Widgets | ||
Qt6::QuickControls2 | ||
PRIVATE | ||
Qt6::GuiPrivate | ||
Liri::Qt6GSettings | ||
) | ||
|
||
qt6_finalize_target(LiriQtPlatformThemePlugin) | ||
|
||
install( | ||
TARGETS LiriQtPlatformThemePlugin | ||
DESTINATION ${KDE_INSTALL_PLUGINDIR}/platformthemes | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters