Add a vala test for generated sources in subdirs

Modified from a test case provided by @benwaffle on
https://github.com/mesonbuild/meson/issues/815
pull/827/head
Nirbheek Chauhan 8 years ago
parent 207cdf2876
commit f42d0f5063
  1. 1
      test cases/vala/8 generated source/installed_files.txt
  2. 7
      test cases/vala/8 generated source/meson.build
  3. 3
      test cases/vala/8 generated source/src/config.vala.in
  4. 5
      test cases/vala/8 generated source/src/meson.build
  5. 3
      test cases/vala/8 generated source/src/test.vala
  6. 3
      test cases/vala/8 generated source/tools/meson.build

@ -0,0 +1,7 @@
project('mytest', 'vala', 'c')
cd = configuration_data()
cd.set('x', 'y')
subdir('src')
subdir('tools')

@ -0,0 +1,3 @@
namespace Config {
public static const string x = "@x@";
}

@ -0,0 +1,5 @@
config = configure_file(input: 'config.vala.in',
output: 'config.vala',
configuration: cd)
src = files('test.vala')

@ -0,0 +1,3 @@
void main() {
print (Config.x);
}

@ -0,0 +1,3 @@
executable('generatedtest', [src, config],
install : true,
dependencies: [dependency('glib-2.0'), dependency('gobject-2.0')])
Loading…
Cancel
Save