diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-27 23:41:28 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-27 23:41:28 +0200 |
commit | 2e93295c2e2ed52abd036687d8a6a947b94f213a (patch) | |
tree | 6b4d5394c16c7ea52e438a08a94a6d08d1851291 /test cases/common | |
parent | 00ecf811e67d7ed5372fbddbf19366b6ee61d10b (diff) | |
download | meson-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.build | 8 |
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. |