Debian Codegraph @

vendored-meson/meson/test cases/common/74 file object/meson.build

raw
1 project('file object', 'c')
2
3 prog0 = files('prog.c')
4 lib0 = files('lib.c')
5 test('fobj', executable('fobj', prog0, lib0))
6
7 subdir('subdir1')
8 subdir('subdir2')
9
10 # Use fs.as_posix() because / operator replaces \ with / in the path, but
11 # full_path() method is not doing that. This is a pretty inconsistent across all
12 # Meson APIs.
13 fs = import('fs')
14 assert(fs.as_posix(prog0[0].full_path()) == fs.as_posix(meson.current_source_dir() / 'prog.c'))