Menu

Vala

Jussi Pakkanen

The Meson build system has moved

The new home of Meson's documentation is here. The information below is preserved only for posterity. It should be considered out of date.


Compiling Vala applications

Meson has experimental support for compiling Vala programs. A skeleton Vala file looks like this.

project('valaprog', 'vala')

glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')

executable('valaprog', 'prog.vala',
           deps : [glib, gobject])

You must always specify glib and gobject as dependencies, because all Vala applications use them.


Back to index


Related

Wiki: Manual