build: Change dependency order building libmutter-test introspection

The order of dependencies influences the order of -L arguments to gcc/ld,
we should put our private library first, so that introspection prefers
looking up libraries in private paths than public ones.

This could bring problems in API updates of the libmutter-test library,
since introspection would still prefer the old installed one.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2826>
This commit is contained in:
Carlos Garnacho 2023-02-04 12:17:38 +01:00 committed by Marge Bot
parent 5303c01dfc
commit 83e505408c

View File

@ -90,9 +90,9 @@ if have_introspection
libmutter_gir[0], libmutter_gir[0],
], ],
dependencies: [ dependencies: [
mutter_deps,
libmutter_dep,
libmutter_test_dep, libmutter_test_dep,
libmutter_dep,
mutter_deps,
], ],
extra_args: mutter_c_args + introspection_args, extra_args: mutter_c_args + introspection_args,
install_dir_gir: pkglibdir, install_dir_gir: pkglibdir,