2017-01-28 13:52:18 +01:00
|
|
|
# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
|
2019-07-09 20:57:54 +02:00
|
|
|
gdbus_example_objectmanager_xml = files('gdbus-example-objectmanager.xml')
|
2018-10-04 09:09:51 +02:00
|
|
|
gdbus_example_objectmanager_generated = custom_target('objectmanager-gen',
|
2019-07-09 20:57:54 +02:00
|
|
|
input : gdbus_example_objectmanager_xml,
|
2018-10-04 09:09:51 +02:00
|
|
|
output : ['objectmanager-gen.h',
|
|
|
|
'objectmanager-gen.c',
|
|
|
|
'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
|
|
|
|
'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
|
2017-01-28 13:52:18 +01:00
|
|
|
command : [python, gdbus_codegen,
|
|
|
|
'--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
|
|
|
|
'--c-namespace', 'Example',
|
|
|
|
'--c-generate-object-manager',
|
2017-07-14 04:22:16 +02:00
|
|
|
'--output-directory', '@OUTDIR@',
|
2018-10-04 09:09:51 +02:00
|
|
|
'--generate-c-code', 'objectmanager-gen',
|
|
|
|
'--generate-docbook', 'objectmanager-gen',
|
2020-04-17 12:07:51 +02:00
|
|
|
'--symbol-decorator', '_GLIB_EXTERN',
|
|
|
|
'--symbol-decorator-define', 'HAVE_CONFIG_H',
|
2017-01-28 13:52:18 +01:00
|
|
|
'@INPUT@'])
|
|
|
|
|
2022-01-20 16:17:59 +01:00
|
|
|
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@',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-09-19 17:53:07 +02:00
|
|
|
libgdbus_example_objectmanager = library('gdbus-example-objectmanager',
|
2017-01-28 13:52:18 +01:00
|
|
|
gdbus_example_objectmanager_generated,
|
2018-09-24 19:32:08 +02:00
|
|
|
c_args : test_c_args,
|
2017-01-28 13:52:18 +01:00
|
|
|
dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
|
2018-09-19 17:53:07 +02:00
|
|
|
install : installed_tests_enabled,
|
|
|
|
install_dir : installed_tests_execdir)
|
2017-01-28 13:52:18 +01:00
|
|
|
|
2018-09-24 19:32:08 +02:00
|
|
|
libgdbus_example_objectmanager_dep = declare_dependency(
|
2022-01-20 16:17:59 +01:00
|
|
|
sources : [
|
|
|
|
gdbus_example_objectmanager_generated[0],
|
|
|
|
gdbus_example_objectmanager_rst_gen[0],
|
|
|
|
],
|
2019-07-09 20:57:54 +02:00
|
|
|
link_with : libgdbus_example_objectmanager,
|
|
|
|
dependencies : [libgio_dep])
|