diff options
author | Mark Schulte <mark@mjs.pw> | 2017-04-12 23:04:13 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-15 11:42:36 +0100 |
commit | 647bd2839e83267bf92fc5909f1b86e630bf395f (patch) | |
tree | 20b7224d00bbe161ee245c88e4db47628654feab /test cases/kconfig/2 subdir/dir/meson.build | |
parent | 66db1af4dd4905426cc7e11e335e1e4788d267d4 (diff) | |
download | meson-647bd2839e83267bf92fc5909f1b86e630bf395f.tar.gz |
[modules] Add kconfig module
Add a kconfig module to allow meson to integrate with existing projects
that use kconfig.
Diffstat (limited to 'test cases/kconfig/2 subdir/dir/meson.build')
-rw-r--r-- | test cases/kconfig/2 subdir/dir/meson.build | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test cases/kconfig/2 subdir/dir/meson.build b/test cases/kconfig/2 subdir/dir/meson.build new file mode 100644 index 000000000..12f150297 --- /dev/null +++ b/test cases/kconfig/2 subdir/dir/meson.build @@ -0,0 +1,13 @@ + +k = import('unstable-kconfig') + +conf = k.load(meson.source_root() / '.config') + +if not conf.has_key('CONFIG_IS_SET') + error('Expected CONFIG_IS_SET to be set, but it wasn\'t') +endif + +if conf.has_key('CONFIG_NOT_IS_SET') + error('Expected CONFIG_NOT_IS_SET not be set, but it was') +endif + |