summaryrefslogtreecommitdiff
path: root/test cases/common/13 pch/meson.build
blob: d83291963284cdb90254364f8ac2a61ed6553d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 does not support forced includes. Skipping "withIncludeFile" which requires this.')
else
  subdir('withIncludeFile')
endif

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

if cc_id == 'msvc'
  subdir('linkwhole')
endif