diff options
| author | Jake Petroules <jake.petroules@petroules.com> | 2015-07-21 17:48:59 -0700 |
|---|---|---|
| committer | Jake Petroules <jake.petroules@petroules.com> | 2015-07-22 09:08:36 +0000 |
| commit | c359cf5283de39c4ae2a71b61db3c8bf8a742bd4 (patch) | |
| tree | ecded5ab64973cec9380e622e1e1f55137114b28 | |
| parent | f388e98a7f2043a01f15a9d4faaff5ab077fce6a (diff) | |
| download | qbs-c359cf5283de39c4ae2a71b61db3c8bf8a742bd4.tar.gz | |
Introduce qbs.nullDevice.
Change-Id: I84d2f1e461eb22f25c08c9a610a4f7b152c67970
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| -rw-r--r-- | doc/reference/modules/qbs-module.qdoc | 7 | ||||
| -rw-r--r-- | share/qbs/modules/qbs/common.qbs | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/reference/modules/qbs-module.qdoc b/doc/reference/modules/qbs-module.qdoc index 50770ecbc..45cf07ba2 100644 --- a/doc/reference/modules/qbs-module.qdoc +++ b/doc/reference/modules/qbs-module.qdoc @@ -154,6 +154,13 @@ \c{":"} on Unix \li Holds the platform-specific separator for path list that is used in environment variables or other contexts. + \row + \li nullDevice + \li \c{string} + \li 1.4.2 + \li \c{"NUL"} on Windows, + \c{"/dev/null"} on Unix + \li Holds the platform-specific file path corresponding to the null device. \endtable \section1 Environment Properties diff --git a/share/qbs/modules/qbs/common.qbs b/share/qbs/modules/qbs/common.qbs index baff5db73..3854b586f 100644 --- a/share/qbs/modules/qbs/common.qbs +++ b/share/qbs/modules/qbs/common.qbs @@ -66,6 +66,7 @@ Module { property stringList targetOS: hostOS property string pathListSeparator: hostOS.contains("windows") ? ";" : ":" property string pathSeparator: hostOS.contains("windows") ? "\\" : "/" + property string nullDevice: hostOS.contains("windows") ? "NUL" : "/dev/null" property string profile property stringList toolchain property string architecture |
