Author Topic: src/plugins/contrib/Makefile.am duplicate appdata  (Read 1010 times)

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 654
src/plugins/contrib/Makefile.am duplicate appdata
« on: February 19, 2022, 02:08:54 am »
In src/plugins/contrib/Makefile.am when multiple plugins are enabled then the resulting SUBDIRS variable will include multiple appdata directory entries, which will slow the build down.


Instead of having the block for each appropriate plugin:
Code
if BUILD_CPPCHECK
MAYBE_CPPCHECK=CppCheck appdata
endif

Change each of the plugin blocks to be:

Code
if BUILD_CPPCHECK
MAYBE_CPPCHECK=CppCheck
MAYBE_APPDATA=appdata
endif
and also add $(MAYBE_APPDATA) to SUBDIRS
This way only one appdata will be added to SUBDIRS instead of multiple.

Is this okay?