| 1 |
libsources = ['meson-subsample.c', 'meson-subsample.h'] |
| 2 |
|
| 3 |
girsubproject = shared_library( |
| 4 |
'girsubproject', |
| 5 |
sources : libsources, |
| 6 |
dependencies : [gobj, girlib_dep], |
| 7 |
install : true |
| 8 |
) |
| 9 |
|
| 10 |
girexe = executable( |
| 11 |
'girprog', |
| 12 |
sources : 'prog.c', |
| 13 |
dependencies : [gobj, girlib_dep], |
| 14 |
link_with : girsubproject |
| 15 |
) |
| 16 |
|
| 17 |
gnome.generate_gir( |
| 18 |
girsubproject, |
| 19 |
sources : libsources, |
| 20 |
nsversion : '1.0', |
| 21 |
namespace : 'MesonSub', |
| 22 |
symbol_prefix : 'meson_sub_', |
| 23 |
identifier_prefix : 'MesonSub', |
| 24 |
includes : ['GObject-2.0', meson_gir], |
| 25 |
install : true, |
| 26 |
install_dir_gir: false, |
| 27 |
) |
| 28 |
|
| 29 |
message('TEST: ' + girsubproject.outdir()) |
| 30 |
|
| 31 |
test('gobject introspection/subproject/c', girexe) |