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.
35 lines
612 B
35 lines
612 B
11 months ago
|
project('demo', 'c', 'vala')
|
||
|
|
||
|
gnome = import('gnome', required: false)
|
||
|
|
||
|
if not gnome.found()
|
||
|
error('MESON_SKIP_TEST: gnome module not supported')
|
||
|
endif
|
||
|
|
||
|
deps = [
|
||
|
dependency('glib-2.0', version : '>=2.50'),
|
||
|
dependency('gobject-2.0'),
|
||
|
dependency('gtk+-3.0'),
|
||
|
]
|
||
|
|
||
|
ui_tgt = custom_target(
|
||
|
input: 'TestBox.ui.in',
|
||
|
output: 'TestBox.ui',
|
||
|
command: [find_program('cat')],
|
||
|
feed: true,
|
||
|
capture: true,
|
||
|
)
|
||
|
|
||
|
resources = gnome.compile_resources('test-resources',
|
||
|
'test.gresource.xml',
|
||
|
c_name: 'test_res',
|
||
|
dependencies: ui_tgt,
|
||
|
)
|
||
|
|
||
|
executable(
|
||
|
'demo',
|
||
|
'test.vala',
|
||
|
resources,
|
||
|
dependencies: deps,
|
||
|
)
|