aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-27 23:07:30 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-28 00:19:29 +0300
commitccaf5711cd50c2119d03cda77d378e1a87eca0c9 (patch)
tree31644610e0fdcb42257519570b505fa88518bda6 /mesonbuild/modules/gnome.py
parent900c23f98ad83a3c831c2246c2343ec30f48687f (diff)
downloadmeson-ccaf5711cd50c2119d03cda77d378e1a87eca0c9.zip
meson-ccaf5711cd50c2119d03cda77d378e1a87eca0c9.tar.gz
meson-ccaf5711cd50c2119d03cda77d378e1a87eca0c9.tar.bz2
Install generated gdbus header with old glib version too.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index abefe05..be090e2 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -959,11 +959,15 @@ This will become a hard error in the future.''')
self._print_gdbus_warning()
cmd += ['--generate-c-code', '@OUTDIR@/' + namebase, '@INPUT@']
outputs = [namebase + '.c', namebase + '.h']
+ install = kwargs.get('install_header', False)
custom_kwargs = {'input': xml_files,
'output': outputs,
'command': cmd,
- 'build_by_default': build_by_default
+ 'build_by_default': build_by_default,
+ 'install': install,
}
+ if install and 'install_dir' in kwargs:
+ custom_kwargs['install_dir'] = [False, kwargs['install_dir']]
ct = build.CustomTarget(target_name, state.subdir, state.subproject, custom_kwargs)
# Ensure that the same number (and order) of arguments are returned
# regardless of the gdbus-codegen (glib) version being used