aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-09-17 22:12:24 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-09-25 19:20:26 +0300
commit5f90aac4edd89953c3a4d9941165556dba59b2a1 (patch)
tree96b3418f4b084c4514c397f15e94c2206091b9f8 /test cases
parent5f6c9d628df72f43b15412bbb91e110d4881023e (diff)
downloadmeson-5f90aac4edd89953c3a4d9941165556dba59b2a1.zip
meson-5f90aac4edd89953c3a4d9941165556dba59b2a1.tar.gz
meson-5f90aac4edd89953c3a4d9941165556dba59b2a1.tar.bz2
With a generator.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/118 allgenerate/meson.build12
1 files changed, 6 insertions, 6 deletions
diff --git a/test cases/common/118 allgenerate/meson.build b/test cases/common/118 allgenerate/meson.build
index 98ecabf..93428d6 100644
--- a/test cases/common/118 allgenerate/meson.build
+++ b/test cases/common/118 allgenerate/meson.build
@@ -1,11 +1,11 @@
-project('all sources generated', 'cpp')
+project('all sources generated', 'c')
comp = find_program('converter.py')
-c = custom_target('outputfile',
- input : 'foobar.c.in',
- output : 'foobar.cpp',
- command : [comp, '@INPUT@', '@OUTPUT@'],
-)
+g = generator(comp,
+ output : '@BASENAME@.c',
+ arguments : ['@INPUT@', '@OUTPUT@'])
+
+c = g.process('foobar.c.in')
prog = executable('genexe', c)