|
Igor Gnatenko |
ef6081 |
From 1b6adbfa07d9926c2312f05562bb91d535c9c182 Mon Sep 17 00:00:00 2001
|
|
Igor Gnatenko |
ef6081 |
From: Jussi Pakkanen <jpakkane@gmail.com>
|
|
Igor Gnatenko |
ef6081 |
Date: Fri, 27 Apr 2018 23:07:30 +0300
|
|
Igor Gnatenko |
ef6081 |
Subject: [PATCH 04/16] Install generated gdbus header with old glib version
|
|
Igor Gnatenko |
ef6081 |
too.
|
|
Igor Gnatenko |
ef6081 |
|
|
Igor Gnatenko |
ef6081 |
---
|
|
Igor Gnatenko |
ef6081 |
mesonbuild/modules/gnome.py | 6 +++++-
|
|
Igor Gnatenko |
ef6081 |
test cases/frameworks/7 gnome/gdbus/meson.build | 4 +++-
|
|
Igor Gnatenko |
ef6081 |
test cases/frameworks/7 gnome/installed_files.txt | 1 +
|
|
Igor Gnatenko |
ef6081 |
3 files changed, 9 insertions(+), 2 deletions(-)
|
|
Igor Gnatenko |
ef6081 |
|
|
Igor Gnatenko |
ef6081 |
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
|
|
Igor Gnatenko |
ef6081 |
index abefe057..9003bc75 100644
|
|
Igor Gnatenko |
ef6081 |
--- a/mesonbuild/modules/gnome.py
|
|
Igor Gnatenko |
ef6081 |
+++ b/mesonbuild/modules/gnome.py
|
|
Igor Gnatenko |
ef6081 |
@@ -959,11 +959,15 @@ This will become a hard error in the future.''')
|
|
Igor Gnatenko |
ef6081 |
self._print_gdbus_warning()
|
|
Igor Gnatenko |
ef6081 |
cmd += ['--generate-c-code', '@OUTDIR@/' + namebase, '@INPUT@']
|
|
Igor Gnatenko |
ef6081 |
outputs = [namebase + '.c', namebase + '.h']
|
|
Igor Gnatenko |
ef6081 |
+ install = kwargs.get('install_header', False)
|
|
Igor Gnatenko |
ef6081 |
custom_kwargs = {'input': xml_files,
|
|
Igor Gnatenko |
ef6081 |
'output': outputs,
|
|
Igor Gnatenko |
ef6081 |
'command': cmd,
|
|
Igor Gnatenko |
ef6081 |
- 'build_by_default': build_by_default
|
|
Igor Gnatenko |
ef6081 |
+ 'build_by_default': build_by_default,
|
|
Igor Gnatenko |
ef6081 |
+ 'install' : install,
|
|
Igor Gnatenko |
ef6081 |
}
|
|
Igor Gnatenko |
ef6081 |
+ if install and 'install_dir' in kwargs:
|
|
Igor Gnatenko |
ef6081 |
+ custom_kwargs['install_dir'] = [False, kwargs['install_dir']]
|
|
Igor Gnatenko |
ef6081 |
ct = build.CustomTarget(target_name, state.subdir, state.subproject, custom_kwargs)
|
|
Igor Gnatenko |
ef6081 |
# Ensure that the same number (and order) of arguments are returned
|
|
Igor Gnatenko |
ef6081 |
# regardless of the gdbus-codegen (glib) version being used
|
|
Igor Gnatenko |
ef6081 |
diff --git a/test cases/frameworks/7 gnome/gdbus/meson.build b/test cases/frameworks/7 gnome/gdbus/meson.build
|
|
Igor Gnatenko |
ef6081 |
index 68ad706f..46259318 100644
|
|
Igor Gnatenko |
ef6081 |
--- a/test cases/frameworks/7 gnome/gdbus/meson.build
|
|
Igor Gnatenko |
ef6081 |
+++ b/test cases/frameworks/7 gnome/gdbus/meson.build
|
|
Igor Gnatenko |
ef6081 |
@@ -14,7 +14,9 @@ gdbus_src = gnome.gdbus_codegen('generated-gdbus',
|
|
Igor Gnatenko |
ef6081 |
annotations : [
|
|
Igor Gnatenko |
ef6081 |
['com.example.Hello()', 'org.freedesktop.DBus.Deprecated', 'true']
|
|
Igor Gnatenko |
ef6081 |
],
|
|
Igor Gnatenko |
ef6081 |
- docbook : 'generated-gdbus-doc'
|
|
Igor Gnatenko |
ef6081 |
+ docbook : 'generated-gdbus-doc',
|
|
Igor Gnatenko |
ef6081 |
+ install_header : true,
|
|
Igor Gnatenko |
ef6081 |
+ install_dir : get_option('includedir')
|
|
Igor Gnatenko |
ef6081 |
)
|
|
Igor Gnatenko |
ef6081 |
assert(gdbus_src.length() == 3, 'expected 3 targets')
|
|
Igor Gnatenko |
ef6081 |
|
|
Igor Gnatenko |
ef6081 |
diff --git a/test cases/frameworks/7 gnome/installed_files.txt b/test cases/frameworks/7 gnome/installed_files.txt
|
|
Igor Gnatenko |
ef6081 |
index ac132efb..7502888d 100644
|
|
Igor Gnatenko |
ef6081 |
--- a/test cases/frameworks/7 gnome/installed_files.txt
|
|
Igor Gnatenko |
ef6081 |
+++ b/test cases/frameworks/7 gnome/installed_files.txt
|
|
Igor Gnatenko |
ef6081 |
@@ -15,3 +15,4 @@ usr/share/gir-1.0/MesonDep2-1.0.gir
|
|
Igor Gnatenko |
ef6081 |
usr/share/glib-2.0/schemas/com.github.meson.gschema.xml
|
|
Igor Gnatenko |
ef6081 |
usr/share/simple-resources.gresource
|
|
Igor Gnatenko |
ef6081 |
usr/include/simple-resources.h
|
|
Igor Gnatenko |
ef6081 |
+usr/include/generated-gdbus.h
|
|
Igor Gnatenko |
ef6081 |
--
|
|
Igor Gnatenko |
ef6081 |
2.17.0
|
|
Igor Gnatenko |
ef6081 |
|