aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/gettext.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2016-09-17 13:23:45 +0100
committerSam Thursfield <ssssam@gmail.com>2016-10-13 21:18:14 +0100
commit25f13067c2aae06748654b9a48869c0da17ea07d (patch)
tree83e010b5a9645b35f649c2c863586fe8e7b3ab10 /mesonbuild/scripts/gettext.py
parentc1d2b65c7328fcfcea8a4b985af4410002035e33 (diff)
downloadmeson-25f13067c2aae06748654b9a48869c0da17ea07d.zip
meson-25f13067c2aae06748654b9a48869c0da17ea07d.tar.gz
meson-25f13067c2aae06748654b9a48869c0da17ea07d.tar.bz2
gnome: allow use of generated files with compile_resources()
This commit adds a 'dependencies' keyword to the gnome.compile_resources() function, which allows your resource blob to depend on files generated at build-time from custom_target() or configure_file() targets. My current use case for this is source data that gets processed with Gettext translation tools before being compiled into the resource blob. This feature only works with GLib version 2.48.2 and above. So the compile_resources() function now detects GLib version and raises an error if the version of GLib being used is too old. The compile_resources() test case is now split into two, so that the existing one can continue to run on systems with old GLib versions (such as Ubuntu Xenial, which the automated tests on travisci.org use), but where new enough GLib is available we also test generating gresource content. The existing warning about glib-compile-resources is now only printed if GLib version is older than 2.50.0 because <https://bugzilla.gnome.org/show_bug.cgi?id=745754> is fixed in the 2.50.0 release.
Diffstat (limited to 'mesonbuild/scripts/gettext.py')
0 files changed, 0 insertions, 0 deletions