mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.49k stars 1.59k forks source link

Missing dependency between gir file and sources scanned for gir data. #3073

Open ghost opened 6 years ago

ghost commented 6 years ago

When using gnome.generate_gir and specifying a list of sources to scan with sources keyword argument, there is no dependency between generated GIR XML file and those sources (unless the target happens to depend on them as well, which is very likely but not necessarily true).

nirbheek commented 6 years ago

This should be easy to fix; those files just need to be added to depend_files: for the custom target.

Although I am surprised that the dependency isn't added implicitly because the sources are passed to the scanner as arguments.