test cases/common/300 built file by path/meson.build
raw| 1 | project('a', 'c') |
| 2 | configure_file(output: 'fullpath.c', input: 'main.c', copy: true) |
| 3 | |
| 4 | path = meson.project_build_root() / 'fullpath.c' |
| 5 | if build_machine.system() == 'windows' |
| 6 | if '\\' in meson.project_build_root() |
| 7 | path = path.replace('\\', '/') |
| 8 | else |
| 9 | path = path.replace('/', '\\') |
| 10 | endif |
| 11 | endif |
| 12 | exe = executable('fullpath', path) |
| 13 | test('fullpath', exe) |