diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-02-14 09:35:21 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-02-14 13:07:19 +0100 |
commit | f62f985eee96f60f6870a7a412a417df1389452b (patch) | |
tree | 4d452b08488e0a0bb569ac966e17381365eca4cf /doc/tutorial/hello-world.md | |
parent | 95fc12d2f08d80f58f507e1bb5d4d10eb10dffe0 (diff) | |
download | justbuild-f62f985eee96f60f6870a7a412a417df1389452b.tar.gz |
tutorial, getting started: add the basics of analyse
Diffstat (limited to 'doc/tutorial/hello-world.md')
-rw-r--r-- | doc/tutorial/hello-world.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/tutorial/hello-world.md b/doc/tutorial/hello-world.md index b700252d..afd8629f 100644 --- a/doc/tutorial/hello-world.md +++ b/doc/tutorial/hello-world.md @@ -422,3 +422,52 @@ INFO: Artifacts built, logical paths are: (1 runfiles omitted.) $ ``` + +The ommitted (i.e., not shown but still built) runfile is the header file. As +mentioned in the introduction to `just analyse` this is a typical use of that +second artifact arrangement. We can also have a look at the other information +that library provides. + +``` sh +$ just-mr analyse greet greet +INFO: Performing repositories setup +INFO: Found 3 repositories to set up +INFO: Setup finished, exec ["just","analyse","-C","...","greet","greet"] +INFO: Requested target is [["@","tutorial","greet","greet"],{}] +INFO: Analysed target [["@","tutorial","greet","greet"],{}] +INFO: Result of target [["@","tutorial","greet","greet"],{}]: { + "artifacts": { + "greet/libgreet.a": {"data":{"id":"c4ba32e2fc1ce267b4245d8885ae7b53405d41a709f853061549ca93aa73a6ac","path":"work/greet/libgreet.a"},"type":"ACTION"} + }, + "provides": { + "compile-args": [ + ], + "compile-deps": { + }, + "debug-hdrs": { + }, + "debug-srcs": { + }, + "link-args": [ + "greet/libgreet.a" + ], + "link-deps": { + }, + "lint": [ + ], + "package": { + "cflags-files": {}, + "ldflags-files": {}, + "name": "greet" + }, + "run-libs": { + }, + "run-libs-args": [ + ] + }, + "runfiles": { + "greet/greet.hpp": {"data":{"path":"greet/greet.hpp","repository":"tutorial"},"type":"LOCAL"} + } + } +$ +``` |