diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-11-27 22:18:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 22:18:13 +0200 |
commit | 270f2395d6f4d3f1134393bf18c8eb3d9f1e5332 (patch) | |
tree | 8717aa86b33607d6c71be4cfa1d2e553538cfbf3 /docs/markdown | |
parent | 2c91ca3d6a39692071a2b9f9c23b7c378a3e837e (diff) | |
parent | f954eee90669f4c9ac0f458975a37ace28ba3a47 (diff) | |
download | meson-270f2395d6f4d3f1134393bf18c8eb3d9f1e5332.zip meson-270f2395d6f4d3f1134393bf18c8eb3d9f1e5332.tar.gz meson-270f2395d6f4d3f1134393bf18c8eb3d9f1e5332.tar.bz2 |
Merge pull request #4191 from trilader/feature/projectinfo-from-source
mintro: Allow introspect --projectinfo without build directory
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/snippets/introspect_projectinfo.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/markdown/snippets/introspect_projectinfo.md b/docs/markdown/snippets/introspect_projectinfo.md new file mode 100644 index 0000000..40558b8 --- /dev/null +++ b/docs/markdown/snippets/introspect_projectinfo.md @@ -0,0 +1,35 @@ +## `introspect --projectinfo` can now be used without configured build directory + +This allows IDE integration to get information about the project before the user has configured a build directory. + +Before you could use `meson.py introspect --projectinfo build-directory`. +Now you also can use `meson.py introspect --projectinfo project-dir/meson.build`. + +The output is similiar to the output with a build directory but additionally also includes information from `introspect --buildsystem-files`. + +For example `meson.py introspect --projectinfo test\ cases/common/47\ subproject\ options/meson.build` +This outputs (pretty printed for readability): +``` +{ + "buildsystem_files": [ + "meson_options.txt", + "meson.build" + ], + "name": "suboptions", + "version": null, + "descriptive_name": "suboptions", + "subprojects": [ + { + "buildsystem_files": [ + "subprojects/subproject/meson_options.txt", + "subprojects/subproject/meson.build" + ], + "name": "subproject", + "version": "undefined", + "descriptive_name": "subproject" + } + ] +} +``` + +Both usages now include a new `descriptive_name` property which always shows the name set in the project. |