混合來源
project('Mixed sources Project', 'vala')
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
executable('foo', 'foo.vala', 'bar.c', dependencies: [glib_dep, gobject_dep])
In foo.vala
:
namespace Foo {
public extern int bar ();
public int main (string[] args) {
return bar ();
}
}
In bar.c
:
int
bar ()
{
return 0;
}