Use kcoreaddons_add_plugin
ClosedPublic

Authored by wojnilowicz on Mar 8 2018, 6:44 PM.

Details

Summary

This patch steals idea from D9710.
The difference in regard to the other patch is:

  1. right .json file is used for every plugin,
  2. no redundant paths are added in code (only build system is modified),
  3. no two different paths for installing plugins,
  4. all plugins get stored in bin directory after build.

More about it can be red on KF5CoreAddonsMacros

Loading plugins without plugins path set is not working for me, but I think it should work for someone according to QCoreApplication::libraryPaths()

Diff Detail

Repository
R261 KMyMoney
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
wojnilowicz requested review of this revision.Mar 8 2018, 6:44 PM
wojnilowicz created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Mar 18 2018, 9:42 AM
This revision was automatically updated to reflect the committed changes.