| 1 |
project('extract all', 'c', 'cpp') |
| 2 |
|
| 3 |
if meson.backend() == 'xcode' |
| 4 |
error('MESON_SKIP_TEST: Xcode backend does not handle libraries with only objects, not sources.') |
| 5 |
endif |
| 6 |
|
| 7 |
a = static_library('a', 'one.c', 'two.c') |
| 8 |
b = static_library('b', 'three.c', 'four.c') |
| 9 |
# libc.so cannot be used, it already exists as a reserved name |
| 10 |
c = shared_library('cee', |
| 11 |
objects : [a.extract_all_objects(), b.extract_all_objects()], |
| 12 |
vs_module_defs : 'func1234.def') |
| 13 |
|
| 14 |
e = executable('proggie', 'prog.c', link_with : c) |
| 15 |
test('extall', e) |