meson: Simplify the use of built tools

The Meson build has fallen a bit behind the Autotools one, when it comes
to the internally built tools like glib-mkenums and glib-genmarshals.

We don't need to generate gmarshal.strings any more, and since the
glib-genmarshal tool is now written in Python it can also be used when
cross-compiling, and without indirection, just like we use glib-mkenums.

We can also coalesce various rules into a simple array iteration, with
minimal changes to glib-mkenums, thus making the build a bit more
resilient and without unnecessary duplication.
This commit is contained in:
Emmanuele Bassi
2017-07-17 10:54:28 +01:00
parent 7ee050dc4b
commit 3c03cc8f68
7 changed files with 65 additions and 99 deletions

View File

@@ -31,7 +31,7 @@ foreach t : gobject_tests
test_timeout = t.get(3, 30)
# FIXME? $(GLIB_DEBUG_FLAGS)
exe = executable(test_name, test_src,
exe = executable(test_name + '-gobject', test_src,
c_args : test_cargs + test_extra_cargs + ['-DGLIB_DISABLE_DEPRECATION_WARNINGS'],
dependencies : [libm, thread_dep, libglib_dep, libgobject_dep],
install : false,