diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-07-13 12:52:39 +0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-07-19 17:53:32 +0300 |
commit | aa0d75deaee925b9ceb3d98ef8f5de0167587c71 (patch) | |
tree | e5363513b287a0b80eef279499981f0eda762bfe | |
parent | 998c78fb0a404f34512414d93b08cf45166be357 (diff) | |
download | meson-aa0d75deaee925b9ceb3d98ef8f5de0167587c71.zip meson-aa0d75deaee925b9ceb3d98ef8f5de0167587c71.tar.gz meson-aa0d75deaee925b9ceb3d98ef8f5de0167587c71.tar.bz2 |
Stabilize keyval module
We have experimented with the module for about a year in a qemu
branch (https://wiki.qemu.org/Features/Meson), and we would like to
start moving the build system to meson. For that, keyval should have
the stability guarantees.
Cc: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | docs/markdown/Keyval-module.md | 4 | ||||
-rw-r--r-- | docs/markdown/snippets/keyval.md | 7 | ||||
-rw-r--r-- | mesonbuild/modules/keyval.py (renamed from mesonbuild/modules/unstable_keyval.py) | 0 | ||||
-rw-r--r-- | test cases/common/222 source set realistic example/meson.build | 2 | ||||
-rw-r--r-- | test cases/keyval/1 basic/meson.build | 2 | ||||
-rw-r--r-- | test cases/keyval/2 subdir/dir/meson.build | 2 | ||||
-rw-r--r-- | test cases/keyval/3 load_config files/dir/meson.build | 2 | ||||
-rw-r--r-- | test cases/keyval/4 load_config builddir/meson.build | 2 |
8 files changed, 14 insertions, 7 deletions
diff --git a/docs/markdown/Keyval-module.md b/docs/markdown/Keyval-module.md index 643265e..afc48fa 100644 --- a/docs/markdown/Keyval-module.md +++ b/docs/markdown/Keyval-module.md @@ -1,5 +1,5 @@ --- -short-description: Unstable keyval module +short-description: Keyval module authors: - name: Mark Schulte, Paolo Bonzini years: [2017, 2019] @@ -23,7 +23,7 @@ chosen the configuration options), output a ".config" file. The module may be imported as follows: ``` meson -keyval = import('unstable-keyval') +keyval = import('keyval') ``` The following functions will then be available as methods on the object diff --git a/docs/markdown/snippets/keyval.md b/docs/markdown/snippets/keyval.md new file mode 100644 index 0000000..895de9b --- /dev/null +++ b/docs/markdown/snippets/keyval.md @@ -0,0 +1,7 @@ +## `unstable-keyval` is now stable `keyval` + +The `unstable-keyval` has been renamed to `keyval` and now promises stability +guarantees. + +Meson will print a warning when you load an `unstable-` module that has been +stabilised (so `unstable-keyval` is still accepted for example). diff --git a/mesonbuild/modules/unstable_keyval.py b/mesonbuild/modules/keyval.py index 3da2992..3da2992 100644 --- a/mesonbuild/modules/unstable_keyval.py +++ b/mesonbuild/modules/keyval.py diff --git a/test cases/common/222 source set realistic example/meson.build b/test cases/common/222 source set realistic example/meson.build index 106b81d..d986b99 100644 --- a/test cases/common/222 source set realistic example/meson.build +++ b/test cases/common/222 source set realistic example/meson.build @@ -9,7 +9,7 @@ if cppid == 'pgi' endif ss = import('sourceset') -keyval = import('unstable-keyval') +keyval = import('keyval') zlib = declare_dependency(compile_args: '-DZLIB=1') another = declare_dependency(compile_args: '-DANOTHER=1') diff --git a/test cases/keyval/1 basic/meson.build b/test cases/keyval/1 basic/meson.build index fc7ddb3..c3e4466 100644 --- a/test cases/keyval/1 basic/meson.build +++ b/test cases/keyval/1 basic/meson.build @@ -1,6 +1,6 @@ project('keyval basic test') -k = import('unstable-keyval') +k = import('keyval') conf = k.load('.config') if not conf.has_key('CONFIG_VAL1') diff --git a/test cases/keyval/2 subdir/dir/meson.build b/test cases/keyval/2 subdir/dir/meson.build index dc1b478..291ad93 100644 --- a/test cases/keyval/2 subdir/dir/meson.build +++ b/test cases/keyval/2 subdir/dir/meson.build @@ -1,5 +1,5 @@ -k = import('unstable-keyval') +k = import('keyval') conf = k.load(meson.source_root() / '.config') diff --git a/test cases/keyval/3 load_config files/dir/meson.build b/test cases/keyval/3 load_config files/dir/meson.build index 43fba13..adc5289 100644 --- a/test cases/keyval/3 load_config files/dir/meson.build +++ b/test cases/keyval/3 load_config files/dir/meson.build @@ -1,5 +1,5 @@ -k = import('unstable-keyval') +k = import('keyval') conf = k.load(files('config')) diff --git a/test cases/keyval/4 load_config builddir/meson.build b/test cases/keyval/4 load_config builddir/meson.build index 1bb0285..6bd83db 100644 --- a/test cases/keyval/4 load_config builddir/meson.build +++ b/test cases/keyval/4 load_config builddir/meson.build @@ -1,6 +1,6 @@ project('keyval builddir test') -k = import('unstable-keyval') +k = import('keyval') out_conf = configure_file(input: 'config', output: 'out-config', copy: true) conf = k.load(out_conf) |