File: meson.build

package info (click to toggle)
gobject-introspection 1.74.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 68,092 kB
  • sloc: ansic: 524,161; xml: 32,098; python: 21,234; yacc: 1,707; perl: 1,411; sh: 1,044; lex: 499; cpp: 171; makefile: 77; lisp: 1
file content (49 lines) | stat: -rw-r--r-- 2,026 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
gdbus_example_objectmanager_xml = files('gdbus-example-objectmanager.xml')
gdbus_example_objectmanager_generated = custom_target('objectmanager-gen',
  input  : gdbus_example_objectmanager_xml,
  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'],
  command : [python, gdbus_codegen,
             '--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
             '--c-namespace', 'Example',
             '--c-generate-object-manager',
             '--output-directory', '@OUTDIR@',
             '--generate-c-code', 'objectmanager-gen',
             '--generate-docbook', 'objectmanager-gen',
             '--symbol-decorator', '_GLIB_EXTERN',
             '--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,
    dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
    install : installed_tests_enabled,
    install_dir : installed_tests_execdir)

libgdbus_example_objectmanager_dep = declare_dependency(
  sources : [
    gdbus_example_objectmanager_generated[0],
    gdbus_example_objectmanager_rst_gen[0],
  ],
  link_with : libgdbus_example_objectmanager,
  dependencies : [libgio_dep])