The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
495 B
18 lines
495 B
11 years ago
|
project('object extraction', 'c')
|
||
|
|
||
11 years ago
|
if meson.is_unity()
|
||
|
message('Skipping extraction test because this is a Unity build.')
|
||
|
else
|
||
10 years ago
|
lib1 = shared_library('somelib', 'src/lib.c')
|
||
8 years ago
|
lib2 = shared_library('somelib2', 'lib.c', 'lib2.c')
|
||
11 years ago
|
|
||
10 years ago
|
obj1 = lib1.extract_objects('src/lib.c')
|
||
|
obj2 = lib2.extract_objects(['lib.c'])
|
||
10 years ago
|
|
||
8 years ago
|
e1 = executable('main1', 'main.c', objects : obj1)
|
||
|
e2 = executable('main2', 'main.c', objects : obj2)
|
||
10 years ago
|
|
||
|
test('extraction test 1', e1)
|
||
|
test('extraction test 2', e2)
|
||
11 years ago
|
endif
|