summaryrefslogtreecommitdiff
path: root/test cases/frameworks/37 gir cpp/meson.build
blob: 0d228b0fe61021b55d9b091f18856eb6bc9625a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project('gnome module without C', 'cpp')

gi = dependency('gobject-introspection-1.0', required: false)
if not gi.found()
  error('MESON_SKIP_TEST gobject-introspection not found.')
endif

if host_machine.system() == 'cygwin'
  # FIXME: g-ir-scanner seems broken on cygwin:
  # ERROR: can't resolve libraries to shared libraries: foo++
  error('MESON_SKIP_TEST g-ir-scanner is broken on cygwin.')
endif

gnome = import('gnome')

lib = library('foo++', 'foo.cpp')
gnome.generate_gir(
  lib,
  sources: ['foo.cpp', 'foo.h'],
  namespace: 'foo',
  nsversion: meson.project_version(),
)