aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/173 preserve gendir/meson.build
blob: ce219f0d8c9ea525aedba865933ee60aa142e41b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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@'])

generated = gen.process('base.inp', 'com/mesonbuild/subbie.inp',
  preserve_path_from : meson.current_source_dir())

e = executable('testprog', 'testprog.c', generated)
test('testprog', e)