diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2023-09-14 17:43:34 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2023-09-18 10:11:48 +0000 |
commit | 12041c01b8247a05faa12e9d1a6678c8ba56afc5 (patch) | |
tree | eda4ee252a36486e8059656e738a00fdd1ace723 | |
parent | d361630f727459ea6dccc1ca6cd5ad51162bfb62 (diff) |
Change-Id: I6d9b26057f1e45458d42f18779d499953cae7e41
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r-- | doc/reference/items/probe/binary-probe.qdoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/reference/items/probe/binary-probe.qdoc b/doc/reference/items/probe/binary-probe.qdoc index 7c8cd2f42..919d0b89e 100644 --- a/doc/reference/items/probe/binary-probe.qdoc +++ b/doc/reference/items/probe/binary-probe.qdoc @@ -50,6 +50,7 @@ For example, BinaryProbe can be used to search for a protobuf compiler executable as follows: \code + // Assuming module is called "myproto" import qbs.File import qbs.Probes @@ -70,10 +71,10 @@ Rule { // rule input/outputs here... - // run executable + // run executable for the module called "myproto": prepare: { var args = // initialize arguments... - var cmd = new Command(executableFilePath, args); + var cmd = new Command(input.myproto.executableFilePath, args); cmd.highlight = "codegen"; cmd.description = "generating protobuf files for " + input.fileName; return [cmd]; |