meson: Add mutter_built_sources to libmutter declared dependency

If meson tries to get ahead and generate object files for tests
at the same time than building libmutter, those may randomly fail
if meson did not create the libmutter generated headers yet.

Add those to the declared dependency, so the files are ensured to
be created before anything gets to use it.

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/404
This commit is contained in:
Carlos Garnacho 2018-11-27 16:28:16 +01:00 committed by Jonas Ådahl
parent 0d29609aec
commit 169022cbb0

View File

@ -745,6 +745,7 @@ libmutter = shared_library(libmutter_name,
libmutter_dep = declare_dependency(
link_with: libmutter,
include_directories: mutter_includes,
sources: mutter_built_sources,
dependencies: [
libmutter_cogl_dep,
libmutter_clutter_dep,