• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
2gdbus_example_objectmanager_xml = files('gdbus-example-objectmanager.xml')
3gdbus_example_objectmanager_generated = custom_target('objectmanager-gen',
4  input  : gdbus_example_objectmanager_xml,
5  output : ['objectmanager-gen.h',
6            'objectmanager-gen.c',
7            'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
8            'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
9  command : [python, gdbus_codegen,
10             '--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
11             '--c-namespace', 'Example',
12             '--c-generate-object-manager',
13             '--output-directory', '@OUTDIR@',
14             '--generate-c-code', 'objectmanager-gen',
15             '--generate-docbook', 'objectmanager-gen',
16             '--symbol-decorator', '_GLIB_EXTERN',
17             '--symbol-decorator-define', 'HAVE_CONFIG_H',
18             '@INPUT@'])
19
20libgdbus_example_objectmanager = library('gdbus-example-objectmanager',
21    gdbus_example_objectmanager_generated,
22    c_args : test_c_args,
23    dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
24    install : installed_tests_enabled,
25    install_dir : installed_tests_execdir)
26
27libgdbus_example_objectmanager_dep = declare_dependency(
28  sources : gdbus_example_objectmanager_generated[0],
29  link_with : libgdbus_example_objectmanager,
30  dependencies : [libgio_dep])
31