Debian Codegraph @

test cases/frameworks/37 gir cpp/meson.build

raw
1 project('gnome module without C', 'cpp')
2
3 gi = dependency('gobject-introspection-1.0', required: false)
4 if not gi.found()
5 error('MESON_SKIP_TEST gobject-introspection not found.')
6 endif
7
8 if host_machine.system() == 'cygwin'
9 # FIXME: g-ir-scanner seems broken on cygwin:
10 # ERROR: can't resolve libraries to shared libraries: foo++
11 error('MESON_SKIP_TEST g-ir-scanner is broken on cygwin.')
12 endif
13
14 gnome = import('gnome')
15
16 lib = library('foo++', 'foo.cpp')
17 gnome.generate_gir(
18 lib,
19 sources: ['foo.cpp', 'foo.h'],
20 namespace: 'foo',
21 nsversion: meson.project_version(),
22 )