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.
14 lines
419 B
14 lines
419 B
7 years ago
|
project('preserve subdir', 'c')
|
||
|
|
||
|
gprog = find_program('genprog.py')
|
||
|
|
||
|
gen = generator(gprog, \
|
||
|
output : ['@BASENAME@.c', '@BASENAME@.h'],
|
||
|
arguments : ['--searchdir=@CURRENT_SOURCE_DIR@', '--outdir=@BUILD_DIR@', '@INPUT@'])
|
||
|
|
||
7 years ago
|
generated = gen.process('base.inp', 'com/mesonbuild/subbie.inp',
|
||
|
preserve_path_from : meson.current_source_dir())
|
||
|
|
||
7 years ago
|
e = executable('testprog', 'testprog.c', generated)
|
||
|
test('testprog', e)
|