[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:29:42 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=b099bdd

The following commit has been merged in the master branch:
commit b099bdd723c252561a47410c4e4f6e5fc6c0eaf0
Author: Aleix Pol <aleixpol at kde.org>
Date:   Wed Jun 1 05:16:40 2016 +0200

    Use the macro in ECM to install kdeconnect plugins
---
 KDEConnectMacros.cmake | 31 ++-----------------------------
 1 file changed, 2 insertions(+), 29 deletions(-)

diff --git a/KDEConnectMacros.cmake b/KDEConnectMacros.cmake
index e2075cd..bf052ff 100644
--- a/KDEConnectMacros.cmake
+++ b/KDEConnectMacros.cmake
@@ -3,33 +3,6 @@
 
 
 # Thoroughly inspired in kdevplatform_add_plugin
-function(kdeconnect_add_plugin plugin)
-    set(options )
-    set(oneValueArgs JSON)
-    set(multiValueArgs SOURCES)
-    cmake_parse_arguments(KC_ADD_PLUGIN "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
-
-    get_filename_component(json "${KC_ADD_PLUGIN_JSON}" REALPATH)
-
-    # ensure we recompile the corresponding object files when the json file changes
-    set(dependent_sources )
-    foreach(source ${KC_ADD_PLUGIN_SOURCES})
-        get_filename_component(source "${source}" REALPATH)
-        if(EXISTS "${source}")
-            file(STRINGS "${source}" match REGEX "K_PLUGIN_FACTORY_WITH_JSON")
-            if(match)
-                list(APPEND dependent_sources "${source}")
-            endif()
-        endif()
-    endforeach()
-    if(NOT dependent_sources)
-        # fallback to all sources - better safe than sorry...
-        set(dependent_sources ${KC_ADD_PLUGIN_SOURCES})
-    endif()
-    set_property(SOURCE ${dependent_sources} APPEND PROPERTY OBJECT_DEPENDS ${json})
-
-    add_library(${plugin} MODULE ${KC_ADD_PLUGIN_SOURCES})
-    set_property(TARGET ${plugin} APPEND PROPERTY AUTOGEN_TARGET_DEPENDS ${json})
-
-    install(TARGETS ${plugin} DESTINATION ${PLUGIN_INSTALL_DIR}/kdeconnect)
+function(kdeconnect_add_plugin)
+    kcoreaddons_add_plugin(${ARGN} INSTALL_NAMESPACE kdeconnect)
 endfunction()

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list