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.
16 lines
488 B
16 lines
488 B
5 years ago
|
project('valatest', 'vala', 'c')
|
||
|
|
||
|
valac = meson.get_compiler('vala')
|
||
|
# Try to find our library
|
||
|
valadeps = [valac.find_library('meson-something-else', dirs : meson.current_source_dir())]
|
||
|
valadeps += [dependency('glib-2.0'), dependency('gobject-2.0')]
|
||
|
|
||
|
e = executable(
|
||
|
'valaprog',
|
||
|
sources : ['config.vapi', 'prog.vala'],
|
||
|
dependencies : valadeps,
|
||
|
c_args : ['-DDATA_DIRECTORY="@0@"'.format(meson.current_source_dir()),
|
||
|
'-DSOMETHING_ELSE="Out of this world!"']
|
||
|
)
|
||
|
test('valatest', e)
|