You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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(),
|
|
|
|
)
|