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.
22 lines
699 B
22 lines
699 B
5 years ago
|
project('pch test', 'c', 'cpp',
|
||
|
meson_version: '>= 0.46.0')
|
||
|
|
||
|
cc = meson.get_compiler('c')
|
||
|
cc_id = cc.get_id()
|
||
|
|
||
|
if cc_id == 'pgi'
|
||
|
error('MESON_SKIP_TEST: PGI compiler does support PCH, however, PGI cannot tolerate spaces in the --pch_dir path and Meson run_project_tests.py uses spaces in temporary build path names. If this test is run individually with no spaces in build path, it will pass.')
|
||
|
endif
|
||
|
|
||
|
subdir('c')
|
||
|
subdir('cpp')
|
||
|
subdir('generated')
|
||
|
subdir('userDefined')
|
||
|
subdir('withIncludeDirectories')
|
||
|
|
||
|
if meson.backend() == 'xcode'
|
||
|
warning('Xcode backend only supports one precompiled header per target. Skipping "mixed" which has various precompiled headers.')
|
||
|
else
|
||
|
subdir('mixed')
|
||
|
endif
|