2017-01-28 13:52:18 +01:00
|
|
|
# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
|
|
|
|
gdbus_example_objectmanager_generated = custom_target('gdbus-example-objectmanager-generated',
|
|
|
|
input : ['gdbus-example-objectmanager.xml'],
|
|
|
|
output : ['gdbus-example-objectmanager-generated.h',
|
|
|
|
'gdbus-example-objectmanager-generated.c',
|
|
|
|
'gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
|
|
|
|
'gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
|
|
|
|
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@',
|
|
|
|
'--generate-c-code', 'gdbus-example-objectmanager-generated',
|
|
|
|
'--generate-docbook', 'gdbus-example-objectmanager-generated',
|
2017-01-28 13:52:18 +01:00
|
|
|
'@INPUT@'])
|
|
|
|
|
2017-07-16 16:41:02 +02:00
|
|
|
libgdbus_example_objectmanager = library('libgdbus-example-objectmanager',
|
2017-01-28 13:52:18 +01:00
|
|
|
gdbus_example_objectmanager_generated,
|
2018-02-19 13:09:10 +01:00
|
|
|
c_args : gio_c_args,
|
2017-01-28 13:52:18 +01:00
|
|
|
dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
|
|
|
|
install : false)
|
|
|
|
|
|
|
|
libgdbus_example_objectmanager_dep = declare_dependency(sources : gdbus_example_objectmanager_generated,
|
|
|
|
link_with : libgdbus_example_objectmanager)
|