aboutsummaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-03-27 23:41:28 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-27 23:41:28 +0200
commit2e93295c2e2ed52abd036687d8a6a947b94f213a (patch)
tree6b4d5394c16c7ea52e438a08a94a6d08d1851291 /test cases/common
parent00ecf811e67d7ed5372fbddbf19366b6ee61d10b (diff)
downloadmeson-2e93295c2e2ed52abd036687d8a6a947b94f213a.zip
meson-2e93295c2e2ed52abd036687d8a6a947b94f213a.tar.gz
meson-2e93295c2e2ed52abd036687d8a6a947b94f213a.tar.bz2
Generate configure files immediately when they are declared. Closes #88.
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/16 configure file/meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/test cases/common/16 configure file/meson.build b/test cases/common/16 configure file/meson.build
index 911a50f..8dec8fe 100644
--- a/test cases/common/16 configure file/meson.build
+++ b/test cases/common/16 configure file/meson.build
@@ -7,11 +7,15 @@ conf.set('other', 'string 2')
conf.set('second', ' bonus')
conf.set('BE_TRUE', true)
-configure_file(input : 'config.h.in',
+cfile = configure_file(input : 'config.h.in',
output : 'config.h',
configuration : conf)
-e = executable('inctest', 'prog.c')
+e = executable('inctest', 'prog.c',
+# Note that you should NOT do this. Don't add generated headers here
+# This tests that we do the right thing even if people add in conf files
+# to their sources.
+cfile)
test('inctest', e)
# Now generate a header file with an external script.