aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/81 extract all/meson.build
blob: 4f08a4fa63a34ab92447e5da0677a05e2bb3cc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
project('extract all', 'c')

a = static_library('a', 'one.c', 'two.c')
b = static_library('b', 'three.c', 'four.c')
c = static_library('c', objects : [a.extract_all_objects(), b.extract_all_objects()])
d = static_library('d', objects : [a.extract_all_objects(), b.extract_all_objects(), c.extract_all_objects()])
d_recursive = static_library('d_recursive', objects : [c.extract_all_objects(recursive : true)])

e = executable('proggie', 'prog.c', link_with : d)
test('extall', e)

e = executable('proggie_recursive', 'prog.c', link_with : d_recursive)
test('extall_recursive', e)