Add a test that contains only generated Vala files

Demonstrates that the Vala detection is broken when all the files are
generated.
This commit is contained in:
Nirbheek Chauhan 2016-10-21 07:08:52 +05:30
parent e908910187
commit d59f5f8620
4 changed files with 12 additions and 0 deletions

View File

@ -1 +1,2 @@
usr/bin/generatedtest usr/bin/generatedtest
usr/bin/onlygentest

View File

@ -5,3 +5,4 @@ cd.set('x', 'y')
subdir('src') subdir('src')
subdir('tools') subdir('tools')
subdir('onlygen')

View File

@ -0,0 +1,3 @@
int main() {
return 0;
}

View File

@ -0,0 +1,7 @@
onlygen = generator(copy,
output : '@BASENAME@.vala',
arguments : ['@INPUT@', '@OUTPUT@'])
executable('onlygentest', onlygen.process('maingen.in'),
install : true,
dependencies: [dependency('glib-2.0'), dependency('gobject-2.0')])