diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2018-12-30 12:38:55 +0100 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-06 12:19:31 +0100 |
| commit | 02734cc5c34faabe8ec0685139451f8349469993 (patch) | |
| tree | d3c7c3f04dcc042ac2d0a6fca38bd57795396ae4 | |
| parent | c33df1fd7377ed6f2116c61b19cac1825ae68f86 (diff) | |
| download | meson-02734cc5c34faabe8ec0685139451f8349469993.tar.gz | |
Better documentation
| -rw-r--r-- | docs/markdown/snippets/introspect_multiple.md | 1 | ||||
| -rw-r--r-- | mesonbuild/mintro.py | 6 | ||||
| -rwxr-xr-x | run_unittests.py | 4 |
3 files changed, 7 insertions, 4 deletions
diff --git a/docs/markdown/snippets/introspect_multiple.md b/docs/markdown/snippets/introspect_multiple.md index 97fdf8c81..2a885e41f 100644 --- a/docs/markdown/snippets/introspect_multiple.md +++ b/docs/markdown/snippets/introspect_multiple.md @@ -18,3 +18,4 @@ directory. This dump will be (re)generated each time meson updates the configura Additionlly the format of `meson introspect target` was changed: - New: the `sources` key. It stores the source files of a target and there compiler parameters + - Added new target types (`jar`, `shared module`) diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py index fa92a1ae1..ce9d81e8d 100644 --- a/mesonbuild/mintro.py +++ b/mesonbuild/mintro.py @@ -472,8 +472,10 @@ def run(options): list_buildoptions_from_source(sourcedir, options.backend) return 0 if not os.path.isdir(datadir) or not os.path.isdir(infodir): - print('Current directory is not a build dir. Please specify it or ' - 'change the working directory to it.') + print('Current directory is not a meson build directory.' + 'Please specify a valid build dir or change the working directory to it.' + 'It is also possible that the build directory was generated with an old' + 'meson version. Please regenerate it in this case.') return 1 results = [] diff --git a/run_unittests.py b/run_unittests.py index 69fac132e..349375e3e 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2569,7 +2569,7 @@ int main(int argc, char **argv) { for t in t_intro: id = t['id'] tf_intro = self.introspect(['--target-files', id]) - tf_intro = list(map(lambda x: os.path.relpath(x, testdir), tf_intro)) + #tf_intro = list(map(lambda x: os.path.relpath(x, testdir), tf_intro)) TODO make paths absolute in future PR self.assertEqual(tf_intro, expected[id]) self.wipe() @@ -2585,7 +2585,7 @@ int main(int argc, char **argv) { id = t['id'] tf_intro = self.introspect(['--target-files', id]) print(tf_intro) - tf_intro = list(map(lambda x: os.path.relpath(x, testdir), tf_intro)) + #tf_intro = list(map(lambda x: os.path.relpath(x, testdir), tf_intro)) TODO make paths absolute in future PR print(tf_intro) self.assertEqual(tf_intro, expected[id]) self.wipe() |
