Debian Codegraph @

test cases/fortran/22 extract_objects/meson.build

raw
1 project('test_project', 'fortran')
2
3 if get_option('unity') == 'on'
4 error('MESON_SKIP_TEST: extract_objects does not work in unity builds')
5 endif
6
7 libfoo = static_library(
8 'foo',
9 sources : ['foo1.f90', 'foo2.f90'])
10
11 foo1_object = libfoo.extract_objects('foo1.f90')
12
13 libfinal = library(
14 'final',
15 sources : 'bar.f90',
16 objects : foo1_object,
17 )