The Meson Build System
http://mesonbuild.com/
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.
40 lines
1.1 KiB
40 lines
1.1 KiB
libsources = ['meson-subsample.c', 'meson-subsample.h'] |
|
|
|
girsubproject = shared_library( |
|
'girsubproject', |
|
sources : libsources, |
|
dependencies : [gobj, meson_gir], |
|
install : true |
|
) |
|
|
|
girexe = executable( |
|
'girprog', |
|
sources : 'prog.c', |
|
dependencies : [gobj, meson_gir], |
|
link_with : girsubproject |
|
) |
|
|
|
gnome.generate_gir( |
|
girsubproject, |
|
sources : libsources, |
|
dependencies : [gobj, meson_gir], |
|
nsversion : '1.0', |
|
namespace : 'MesonSub', |
|
symbol_prefix : 'meson_sub_', |
|
identifier_prefix : 'MesonSub', |
|
includes : ['GObject-2.0', 'Meson-1.0'], |
|
install : true |
|
) |
|
|
|
message('TEST: ' + girsubproject.outdir()) |
|
|
|
envdata = environment() |
|
envdata.append('GI_TYPELIB_PATH', girsubproject.outdir(), 'subprojects/mesongir', separator : ':') |
|
envdata.append('LD_LIBRARY_PATH', girsubproject.outdir(), 'subprojects/mesongir') |
|
if ['windows', 'cygwin'].contains(host_machine.system()) |
|
envdata.append('PATH', girsubproject.outdir(), 'subprojects/mesongir') |
|
endif |
|
|
|
test('gobject introspection/subproject/c', girexe) |
|
test('gobject introspection/subproject/py', find_program('prog.py'), |
|
env : envdata)
|
|
|