Debian Codegraph @

test cases/failing/134 invalid build_subdir/meson.build

raw
1 project('invalid build_subdir test', 'c', meson_version : '>= 1.9.1')
2
3 # This setup intentially tries to use a build_subdir
4 # with a name matching one in the source directory.
5 # produce a Ninja targets with the same name. It only works on
6 # unix, because on Windows the target has a '.exe' suffix.
7 #
8 # This test might fail to work on different backends or when
9 # output location is redirected.
10
11 conf = configuration_data()
12
13 conf.set('var', 'mystring')
14 conf.set('other', 'string 2')
15 conf.set('second', ' bonus')
16 conf.set('BE_TRUE', true)
17
18 configure_file(input : files('existing-dir/config.h.in'),
19 output : 'config.h',
20 build_subdir : 'existing-dir',
21 install_dir : 'share/appdir/existing-dir',
22 configuration : conf)
23
24 run_target('build_dir', command: ['echo', 'clash 1'])