aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/imports/qbs/Probes/PathProbe.qbs
Commit message (Collapse)AuthorAgeFilesLines
* Probes: Remove deprecated properties from PathProbeIvan Komissarov2020-07-151-10/+2
| | | | | | | | They were declared deprecated in qbs 1.13, looks like it's safe to remove them. Change-Id: I493f7bb9578da1bb579161338bcb5d391cc15f4c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Improve TestBlackbox::pathProbeIvan Komissarov2020-02-031-5/+7
| | | | | | | | | | | | | | Add checks for the candidatePaths and the single file API. Also, this includes a behavior change - if multiple selectors are present, the filePath/fileName/path probe properties are not set up - this is because it is not clear how they should be set up in case when the first file in selectors is found, but the second is not (and thus probe.found is false). In case of multiple selectors, user should use probe.allResults but not the single file API. Change-Id: Ib56faf0de93d3ec9fc49f5dbc9d51d4b36831a2d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add PathProbe::candidateFilter propertyIvan Komissarov2019-06-261-3/+4
| | | | | | | | | | | | | | | This property can be used to check if candidate conforms with some conditions. For example, an architecture of a shared library candidate should match the current qbs.architecture. Also, this will allow to implement support for the "text based stub libraries" (yaml files that point to a real library in a system) on macOS - instead of checking real file architecture, it should be read from .tbd file Change-Id: Ie84a3e70d883dec949440358e2f08213a8501982 Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Allow PathProbe to search multiple filesIvan Komissarov2019-06-251-3/+9
| | | | | | Change-Id: I6ae2dd130cbafb03e51bc6e8e8a3e262d6d45fc6 Reviewed-by: Qbs CI Bot <travis-bot@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Rename PathProbe.pathPrefixes and PathProbe.platformPaths propertiesIvan Komissarov2018-12-101-4/+14
| | | | | | | | | The naming was misleading - prefixes had the same logical meaning as platformPaths, despite the fact completely different PathProbe.pathSuffixes property exists. Change-Id: Ie593b5e03d27de4f8aafed821a3b37cc1b3b0b9e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix environmentPaths properties typeIvan Komissarov2018-11-221-2/+2
| | | | | | | These are the names of env variables containing paths, not paths itself Change-Id: I9054f4ffa3b3b005ee8ef56f6c43ac53ba4f53ac Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Remove the base module import from shared imports and modulesJoerg Bornemann2018-06-221-1/+0
| | | | | Change-Id: I5270e033dc41b5bd76a417099514c69cc073008b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix nodejs/typescript probes when the Node interpreter is not in PATHJake Petroules2017-06-141-1/+2
| | | | | Change-Id: I9302a631450a43c25b5cf9bac6b5299f2b728683 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* PathProbe: don't search Unix paths on WindowsJake Petroules2017-06-071-1/+1
| | | | | Change-Id: Ide01c185867671b3de9b76bcc6f3ae54dfe44ad5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* PathProbe: provide candidate paths that were searchedJake Petroules2017-06-071-0/+2
| | | | | | | These can be used in the construction of helpful error messages. Change-Id: I24d2871b362a035c0071b845c8e4ef119d023905 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Do not access the qbs module inside Probe configure scriptsChristian Kandeler2017-03-211-1/+2
| | | | | | | | The code inside a configure property is supposed to be "pure" in that it can only access other properties of the Probe. Change-Id: I904875b90b23715c429efbca82b23ca576fe182d Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Replace 'the Qt build suite' with 'Qbs' in copyright notices.Jake Petroules2016-06-061-1/+1
| | | | | | Change-Id: I885d94bb14b325dc36767a840ebdb0be1fb59dd2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Overhaul Probe handling for node.js/TypeScript.Jake Petroules2015-11-231-36/+9
| | | | | Change-Id: I61964212856f0ebd78bdca621ebc13f9f0654e8b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* add missing license headersJoerg Bornemann2015-04-151-0/+30
| | | | | | Change-Id: I49d8886b0f9811fb9a8b6e33cb7974534b4a1b35 Task-number: QBS-750 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Move concatAll function to ModUtils; it's not specific to probes.Jake Petroules2014-04-151-5/+5
| | | | | Change-Id: I731ffa8865afd99e32c199dd38f532e671d7544a Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Rename getenv and putenv to getEnv and putEnv, respectively.Christian Kandeler2013-11-071-1/+1
| | | | | | | | We use camel case everywhere else. Change-Id: I8a67f1d44659d59e612c0eaced0628c6d34d5b47 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fix casing error in FileInfo import in PathProbe.Jake Petroules2013-07-091-1/+1
| | | | | Change-Id: I14b9e4b8d603cc6584e20d0dce0339120df91662 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Do not use an "as" specifier for URI imports.Christian Kandeler2013-07-051-0/+56
Also rename "fileinfo" to "FileInfo" and "probes" to "Probes", to make the default name more conventional. Change-Id: I86ed29e299b8a9c2f40244c098d57a3ec8b68397 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>