[glib/ebassi/gdbus-codegen-rst: 3/3] Build the reStructuredText docs for the object-manager example
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/ebassi/gdbus-codegen-rst: 3/3] Build the reStructuredText docs for the object-manager example
- Date: Thu, 20 Jan 2022 15:20:12 +0000 (UTC)
commit e5336f34ce269198c4900ecda9ab74045ea9fefb
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jan 20 15:17:59 2022 +0000
Build the reStructuredText docs for the object-manager example
Just like we build them for the DocBook. We are not including them in the
API reference, for now.
gio/tests/gdbus-object-manager-example/meson.build | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/gio/tests/gdbus-object-manager-example/meson.build
b/gio/tests/gdbus-object-manager-example/meson.build
index f9c3bce26..ce0335e11 100644
--- a/gio/tests/gdbus-object-manager-example/meson.build
+++ b/gio/tests/gdbus-object-manager-example/meson.build
@@ -17,6 +17,22 @@ gdbus_example_objectmanager_generated = custom_target('objectmanager-gen',
'--symbol-decorator-define', 'HAVE_CONFIG_H',
'@INPUT@'])
+gdbus_example_objectmanager_rst_gen = custom_target('objectmanager-rst-gen',
+ input: gdbus_example_objectmanager_xml,
+ output: [
+ 'objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Animal.rst',
+ 'objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Cat.rst',
+ ],
+ command: [
+ python,
+ gdbus_codegen,
+ '--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
+ '--generate-rst', 'objectmanager-rst-gen',
+ '--output-directory', '@OUTDIR@',
+ '@INPUT@',
+ ],
+)
+
libgdbus_example_objectmanager = library('gdbus-example-objectmanager',
gdbus_example_objectmanager_generated,
c_args : test_c_args,
@@ -25,6 +41,9 @@ libgdbus_example_objectmanager = library('gdbus-example-objectmanager',
install_dir : installed_tests_execdir)
libgdbus_example_objectmanager_dep = declare_dependency(
- sources : gdbus_example_objectmanager_generated[0],
+ sources : [
+ gdbus_example_objectmanager_generated[0],
+ gdbus_example_objectmanager_rst_gen[0],
+ ],
link_with : libgdbus_example_objectmanager,
dependencies : [libgio_dep])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]