Debian Codegraph @

vendored-meson/meson/test cases/common/13 pch/meson.build

raw
1 project('pch test', 'c', 'cpp',
2 meson_version: '>= 0.46.0')
3
4 cc = meson.get_compiler('c')
5 cc_id = cc.get_id()
6
7 if cc_id == 'pgi'
8 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.')
9 endif
10
11 subdir('c')
12 subdir('cpp')
13 subdir('generated')
14 subdir('userDefined')
15 subdir('withIncludeDirectories')
16 if meson.backend() == 'xcode'
17 warning('Xcode backend does not support forced includes. Skipping "withIncludeFile" which requires this.')
18 else
19 subdir('withIncludeFile')
20 endif
21
22 if meson.backend() == 'xcode'
23 warning('Xcode backend only supports one precompiled header per target. Skipping "mixed" which has various precompiled headers.')
24 else
25 subdir('mixed')
26 endif
27
28 if cc_id == 'msvc'
29 subdir('linkwhole')
30 endif