kcoreaddons_add_plugin: remove effectless OBJECT_DEPENDS on json file

Authored by kossebau on Feb 23 2018, 6:09 PM.

Description

kcoreaddons_add_plugin: remove effectless OBJECT_DEPENDS on json file

The JSON file argument is passed to Q_PLUGIN_METADATA, which is a no-code
macro at the C++ level and only used to note information used by moc
for the generated moc file.

So when the content of the JSON file has changed, this will not change
anything in the preprocessed source file itself. It only has an effect on
the content of the moc file generated based on it, which is either included
and thus already triggers a dependecy or generated by automoc and compiled
separately into the target with the needed dependencies.

It is automoc which needs to properly trigger a recreation of the moc
file when checking the sources (and at least in 3.9 & 10 does),
and this is nothing that can be influenced by dependency rules.

Details

Committed
kossebauFeb 23 2018, 6:09 PM
Parents
R287:aeabd92eea88: GIT_SILENT Upgrade ECM and KF5 version requirements for 5.43.0 release.
Branches
Unknown
Tags
Unknown