diff options
Diffstat (limited to 'test cases/common/120 extract all shared library/meson.build')
-rw-r--r-- | test cases/common/120 extract all shared library/meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test cases/common/120 extract all shared library/meson.build b/test cases/common/120 extract all shared library/meson.build new file mode 100644 index 0000000..e7c5809 --- /dev/null +++ b/test cases/common/120 extract all shared library/meson.build @@ -0,0 +1,15 @@ +project('extract all', 'c', 'cpp') + +if meson.backend() == 'xcode' + error('MESON_SKIP_TEST: Xcode backend does not handle libraries with only objects, not sources.') +endif + +a = static_library('a', 'one.c', 'two.c') +b = static_library('b', 'three.c', 'four.c') +# libc.so cannot be used, it already exists as a reserved name +c = shared_library('cee', + objects : [a.extract_all_objects(), b.extract_all_objects()], + vs_module_defs : 'func1234.def') + +e = executable('proggie', 'prog.c', link_with : c) +test('extall', e) |