Review Request 119972: Enable loading plugins using KPluginLoader::findPlugins()

Alexander Richardson arichardson.kde at gmail.com
Thu Aug 28 11:41:28 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119972/
-----------------------------------------------------------

Review request for KDevelop.


Repository: kdevplatform


Description
-------

This iterates over all plugins in the kdevplatform/$KDEVPLATFORM_VERSION
subdirectories of QCoreApplication::libraryPaths and will then include
all plugins that contain "KDevelop/Plugin" in their service types.

This meta data is now embedded directly in the shared libraries, there
is no more need for kbuildsycoca and .desktop files.

This means we now require KCoreAddons 5.2 and KService 5.2


For testing I converted KDevWelcomepage to the new JSON metadata and it
loads fine. If this approach is deemed correct I will convert the other plugins.


It requires https://git.reviewboard.kde.org/r/119970/ to get committed first.


Diffs
-----

  plugins/welcomepage/CMakeLists.txt 34ee3302fadd8a85a66dd2f5b776f0aa09468afb 
  plugins/welcomepage/kdevwelcomepageplugin.desktop.cmake  
  plugins/welcomepage/welcomepageplugin.cpp d24317e7767600d2774972ace8a4f1f708c565d1 
  shell/plugincontroller.cpp 1acb54b5cd6aad61abbb515bb7b4a6aa536c7d22 

Diff: https://git.reviewboard.kde.org/r/119972/diff/


Testing
-------

Welcomepage loads fine when opening kdevelop. It new finds 1 new style plugin and 43 old style ones instead of 44 oldstyle ones

KDEVELOP_PLUGIN_VERSION should probably get incremented once this (and the conversion of plugins to JSON) lands so that old remaining .desktop files are not found.


Thanks,

Alexander Richardson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140828/f039cf70/attachment-0001.html>


More information about the KDevelop-devel mailing list