aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-14 22:03:56 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-12-15 04:12:23 +0530
commit79f66268676ec8bf94c6964a555ecc9144daca8e (patch)
tree26807f1e9e3572429ddd8995b3f1287ae6f8f57e /mesonbuild/modules
parent807a53c6fc2e4e4fad12f4f4b6f1343eea30e9c7 (diff)
downloadmeson-79f66268676ec8bf94c6964a555ecc9144daca8e.zip
meson-79f66268676ec8bf94c6964a555ecc9144daca8e.tar.gz
meson-79f66268676ec8bf94c6964a555ecc9144daca8e.tar.bz2
Pass --gresources to valac for each compiled gresource
Without this, the user has to both compile the resource with gnome.compile_resources, pass that to the target sources, and also pass --gresources=/path/to/gres.xml to vala_args in the target. With this, we will do that automatically.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/gnome.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 6d05b4e..af3073f 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -162,6 +162,9 @@ can not be used with the current version of glib-compiled-resources, due to
kwargs['depfile'] = depfile
kwargs['command'] = copy.copy(cmd) + ['--dependency-file', '@DEPFILE@']
target_c = build.CustomTarget(name, state.subdir, kwargs)
+ # Used in backend/ninjabackend.py:generate_vala_compile() to pass
+ # --gresources to valac when GResources are used in Vala targets
+ target_c.gresource_c_output = True
if gresource: # Only one target for .gresource files
return [target_c]