diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-06-01 20:25:14 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-06-01 20:25:14 +0300 |
commit | 177e286b3c761f461ac55ede934b941384b4bb97 (patch) | |
tree | 367e49025a633bb7f5f212769ca3ee5c57cf4510 /test cases/common/16 configure file/meson.build | |
parent | 0482635c1293ecc1148da8236f6b77cd4f21e130 (diff) | |
download | meson-177e286b3c761f461ac55ede934b941384b4bb97.zip meson-177e286b3c761f461ac55ede934b941384b4bb97.tar.gz meson-177e286b3c761f461ac55ede934b941384b4bb97.tar.bz2 |
Can generate config headers without an input file. Closes #549.
Diffstat (limited to 'test cases/common/16 configure file/meson.build')
-rw-r--r-- | test cases/common/16 configure file/meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test cases/common/16 configure file/meson.build b/test cases/common/16 configure file/meson.build index 8dec8fe..e1bdff3 100644 --- a/test cases/common/16 configure file/meson.build +++ b/test cases/common/16 configure file/meson.build @@ -30,3 +30,18 @@ command : [genprog, scriptfile, ifile, ofile], install_dir : 'share/appdir') test('inctest2', executable('prog2', 'prog2.c')) + +# Generate a conf file without an input file. + +dump = configuration_data() +dump.set('SHOULD_BE_STRING', '"string"') +dump.set('SHOULD_BE_RETURN', 'return') +dump.set('SHOULD_BE_DEFINED', true) +dump.set('SHOULD_BE_UNDEFINED', false) +dump.set('SHOULD_BE_ONE', 1) +dump.set('SHOULD_BE_ZERO', 0) +dump.set('SHOULD_BE_QUOTED_ONE', '"1"') +configure_file(output : 'config3.h', + configuration : dump) + +test('Configless.', executable('dumpprog', 'dumpprog.c')) |