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
352 B
18 lines
352 B
2 years ago
|
project('test_project', 'fortran')
|
||
|
|
||
|
if get_option('unity') == 'on'
|
||
|
error('MESON_SKIP_TEST: extract_objects does not work in unity builds')
|
||
|
endif
|
||
|
|
||
|
libfoo = static_library(
|
||
|
'foo',
|
||
|
sources : ['foo1.f90', 'foo2.f90'])
|
||
|
|
||
|
foo1_object = libfoo.extract_objects('foo1.f90')
|
||
|
|
||
|
libfinal = library(
|
||
|
'final',
|
||
|
sources : 'bar.f90',
|
||
|
objects : foo1_object,
|
||
|
)
|