The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
478 B
18 lines
478 B
7 years ago
|
project('custom target template substitution', 'c')
|
||
|
|
||
|
check = find_program('checkcopy.py')
|
||
|
|
||
|
config = configuration_data()
|
||
|
|
||
|
in = configure_file(configuration : config, output : 'x@IN')
|
||
|
|
||
7 years ago
|
# Check that substitution does not find @FOO@ and then misses @INPUT0@.
|
||
7 years ago
|
# Check the resulting x@INPUT1@ is not replaced.
|
||
|
foo = custom_target('runcheck',
|
||
|
input : [in, 'foo.c.in'],
|
||
|
output : 'foo.c',
|
||
7 years ago
|
command : [check, '-D@FOO@INPUT0@PUT1@', '@INPUT1@', '@OUTPUT@']
|
||
7 years ago
|
)
|
||
|
|
||
|
executable('foo', foo)
|