[X2Go-Commits] [x2goplasmabindings] 01/05: CMakeLists.txt: copy desktop file to package/metadata.desktop if USE_DESKTOP_FILE is enabled.
git-admin at x2go.org
git-admin at x2go.org
Fri Aug 11 05:55:02 CEST 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goplasmabindings.
commit a6700da13c7f5881a557e9353f74bc946b61d03b
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Aug 11 04:38:36 2023 +0200
CMakeLists.txt: copy desktop file to package/metadata.desktop if USE_DESKTOP_FILE is enabled.
Also make sure to clean it up again.
---
CMakeLists.txt | 21 +++++++++++++++++++++
debian/changelog | 2 ++
2 files changed, 23 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24c3cc2..6f39dbc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,7 @@
project(plasma_applet_org.x2go.plasmoid)
option(USE_PLASMA5 "Build against KDE Plasma 5" OFF)
+option (USE_DESKTOP_FILE "Create package/metadata.desktop for older KF5 versions" OFF)
# Find the required Libaries
if (USE_PLASMA5)
@@ -205,6 +206,26 @@ if (USE_PLASMA5)
)
endif (NOT BUILD_SHARED_LIBS)
endif (HAVE_ECMQMLMODULE)
+
+ add_custom_target (CopyDesktopFile)
+ add_custom_command (
+ TARGET CopyDesktopFile
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy
+ "${CMAKE_SOURCE_DIR}/plasma-applet-org.x2go.plasmoid.desktop"
+ "${CMAKE_SOURCE_DIR}/package/metadata.desktop"
+ )
+ add_custom_target (CleanDesktopFile)
+ add_custom_command (
+ TARGET CleanDesktopFile
+ PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E remove
+ "${CMAKE_SOURCE_DIR}/package/metadata.desktop"
+ )
+ if (USE_DESKTOP_FILE)
+ add_dependencies (ALL CopyDesktopFile)
+ add_dependencies (CLEAN CleanDesktopFile)
+ endif (USE_DESKTOP_FILE)
else (USE_PLASMA5)
kde4_add_plugin(
org.x2go.plasmoid
diff --git a/debian/changelog b/debian/changelog
index 96680b6..585ebe4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -36,6 +36,8 @@ x2goplasmabindings (3.0.2.3-0x2go1) UNRELEASED; urgency=medium
its behavior for older platforms.
- CMakeLists.txt: whitespace only.
- CMakeLists.txt: fix Qml build emulation.
+ - CMakeLists.txt: copy desktop file to package/metadata.desktop if
+ USE_DESKTOP_FILE is enabled. Also make sure to clean it up again.
* x2goplasmabindings.spec:
+ Prepare for Plasma 5 support.
+ Stop duplicating Group tag.
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goplasmabindings.git
More information about the x2go-commits
mailing list