| 1 |
project('valastatic', 'vala', 'c') |
| 2 |
|
| 3 |
valadeps = [dependency('glib-2.0'), dependency('gobject-2.0')] |
| 4 |
|
| 5 |
l = static_library('valalib', 'mylib.vala', dependencies : valadeps) |
| 6 |
# NOTE: This static library is not usable from Vala because it does not carry |
| 7 |
# forward the .vapi and .h files generated by Valac to the next BuildTarget. |
| 8 |
# Will have to be fixed with https://github.com/mesonbuild/meson/issues/891 |
| 9 |
m = static_library('extractedlib', |
| 10 |
objects : l.extract_all_objects(), |
| 11 |
install : true) |
| 12 |
|
| 13 |
e = executable('valaprog', 'prog.vala', |
| 14 |
link_with : l, |
| 15 |
dependencies : valadeps) |
| 16 |
|
| 17 |
test('valastatictest', e) |