project('Vala Project')
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
executable('foo', 'foo.vala', dependencies: [glib_dep, gobject_dep])
Note: both glib-2.0
and gobject-2.0
dependencies are required unless --nostdpkg
is explicitly given.