| 1 |
project('demo', 'c', 'vala') |
| 2 |
|
| 3 |
gnome = import('gnome', required: false) |
| 4 |
|
| 5 |
if not gnome.found() |
| 6 |
error('MESON_SKIP_TEST: gnome module not supported') |
| 7 |
endif |
| 8 |
|
| 9 |
deps = [ |
| 10 |
dependency('glib-2.0', version : '>=2.50'), |
| 11 |
dependency('gobject-2.0'), |
| 12 |
dependency('gtk+-3.0'), |
| 13 |
] |
| 14 |
|
| 15 |
ui_tgt = custom_target( |
| 16 |
input: 'TestBox.ui.in', |
| 17 |
output: 'TestBox.ui', |
| 18 |
command: [find_program('cat')], |
| 19 |
feed: true, |
| 20 |
capture: true, |
| 21 |
) |
| 22 |
|
| 23 |
resources = gnome.compile_resources('test-resources', |
| 24 |
'test.gresource.xml', |
| 25 |
c_name: 'test_res', |
| 26 |
dependencies: ui_tgt, |
| 27 |
) |
| 28 |
|
| 29 |
executable( |
| 30 |
'demo', |
| 31 |
'test.vala', |
| 32 |
resources, |
| 33 |
dependencies: deps, |
| 34 |
) |