aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reference/items/probe/path-probe.qdoc
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-04-16 13:07:28 +0200
committerIvan Komissarov <abbapoh@gmail.com>2020-04-16 13:07:28 +0200
commit04240d47225f06eb36df4eec2270813a78a44344 (patch)
tree06dc4ad265583413912a23ccfaaf1fdee04ed2ac /doc/reference/items/probe/path-probe.qdoc
parentebda20ac2677085d79f5a6fab31a282cbcd958d5 (diff)
parent99d009c0ae5558d86159206e7a27d4ed7e8ade28 (diff)
Merge branch 'master' into wip/ci-ios
Diffstat (limited to 'doc/reference/items/probe/path-probe.qdoc')
-rw-r--r--doc/reference/items/probe/path-probe.qdoc20
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/reference/items/probe/path-probe.qdoc b/doc/reference/items/probe/path-probe.qdoc
index eaaee9e54..936ce3180 100644
--- a/doc/reference/items/probe/path-probe.qdoc
+++ b/doc/reference/items/probe/path-probe.qdoc
@@ -81,7 +81,7 @@
For example, when searching for a library, it might be necessary to check its architecture:
\code
PathProbe {
- pathSuffixes: ["*.so", *.dll]
+ pathSuffixes: [".so", ".dll", ".dylib"]
candidateFilter: {
function getLibraryArchitecture(file) { ... }
return function(file) {
@@ -169,6 +169,24 @@
This property contains the result list of all paths that were checked before a file was found
(including the file names).
+ This property is set even if the Probe didn't find anything and can be used to give the user
+ a hint what went wrong:
+ \code
+ Module {
+ Probes.BinaryProbe {
+ id: pythonProbe
+ names: "python"
+ }
+ validate: {
+ if (!pythonProbe.found) {
+ throw ModUtils.ModuleError(
+ "Could not find python binary at any of the following locations:\n\t" +
+ pythonProbe.candidatePaths.join("\n\t"));
+ }
+ }
+ }
+ \endcode
+
\nodefaultvalue
*/