| 1 |
libsources = ['meson-subsample.c', 'meson-subsample.h'] |
| 2 |
|
| 3 |
girlib = shared_library( |
| 4 |
'girlib', |
| 5 |
sources : libsources, |
| 6 |
dependencies : [gobj, statichelper_dep], |
| 7 |
install : true |
| 8 |
) |
| 9 |
|
| 10 |
girexe = executable( |
| 11 |
'girprog', |
| 12 |
sources : 'prog.c', |
| 13 |
dependencies : [gobj, statichelper_dep], |
| 14 |
link_with : girlib |
| 15 |
) |
| 16 |
|
| 17 |
gnome.generate_gir( |
| 18 |
girlib, statichelper_lib, |
| 19 |
sources : [ libsources, statichelper_sources ], |
| 20 |
nsversion : '1.0', |
| 21 |
namespace : 'Meson', |
| 22 |
symbol_prefix : 'meson_', |
| 23 |
identifier_prefix : 'Meson', |
| 24 |
includes : ['GObject-2.0'], |
| 25 |
install : true |
| 26 |
) |
| 27 |
|
| 28 |
test('gobject introspection/subproject/c', girexe) |