Debian Codegraph @

test cases/common/218 include_dir dot/src/meson.build

raw
1 # test to_list() for include_directories defined in the parent meson.build file
2 source_dir = meson.project_source_root()
3 build_dir = meson.project_build_root()
4 expected = [source_dir / '.', build_dir / '.']
5 # Use fs.as_posix() to ensure the results are the same across platforms.
6 fs = import('fs')
7 assert(fs.as_posix('@0@'.format(inc.to_list())) == '@0@'.format(expected))
8
9 # test include directories
10 t = executable(
11 'main',
12 ['main.c', 'rone.c'],
13 include_directories : inc,
14 implicit_include_directories : false,
15 )