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.

16 lines
330 B

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))