blob: 4824598e72887c25191dc426435d88286ad8b08e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
project('preprocess', 'c')
cc = meson.get_compiler('c')
add_project_arguments(['-DFOO=0', '-DBAR=0'], language: 'c')
pp_files = cc.preprocess('foo.c', 'bar.c', output: '@PLAINNAME@')
foreach f : pp_files
message(f.full_path())
endforeach
subdir('src')
test('test-foo', executable('app', pp_files, link_depends: file_map))
|