Debian Codegraph @

test cases/common/160 custom target template substitution/meson.build

raw
1 project('custom target template substitution', 'c')
2
3 check = find_program('checkcopy.py')
4
5 config = configuration_data()
6
7 config_file = configure_file(configuration : config, output : 'x@IN')
8
9 # Check that substitution does not find @FOO@ and then misses @INPUT0@.
10 # Check the resulting x@INPUT1@ is not replaced.
11 foo = custom_target('runcheck',
12 input : [config_file, 'foo.c.in'],
13 output : 'foo.c',
14 command : [check, '-D@FOO@INPUT0@PUT1@', '@INPUT1@', '@OUTPUT@']
15 )
16
17 executable('foo', foo)