aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2023-09-22 10:06:50 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2023-09-22 10:06:50 +0200
commit1670538f7200da983a24bf869358c6fb0dc46ebd (patch)
tree2527f07a0122b72da9aff7fc183cd9479031a297
parent4c3b9ef8ee9200580235e708bfc6794576f9caa4 (diff)
parent12041c01b8247a05faa12e9d1a6678c8ba56afc5 (diff)
Merge 2.1 into master
-rw-r--r--doc/reference/items/probe/binary-probe.qdoc5
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];