diff options
Diffstat (limited to 'doc/reference/jsextensions')
-rw-r--r-- | doc/reference/jsextensions/jsextensions-general.qdoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/reference/jsextensions/jsextensions-general.qdoc b/doc/reference/jsextensions/jsextensions-general.qdoc index 9582772fc..2bbd2f7ac 100644 --- a/doc/reference/jsextensions/jsextensions-general.qdoc +++ b/doc/reference/jsextensions/jsextensions-general.qdoc @@ -49,6 +49,16 @@ Tries to find a variable with the given name in the build environment and returns its value. If no such variable could be found, \c undefined is returned. + \section2 qbs.getHash + \code + qbs.getHash(key: string): string + \endcode + Calculates a 16-byte hash of the input and returns it. + Rules in modules should use this function to find unique locations for output + artifacts in the build directory without duplicating the whole directory structure of + the respective input file (to deal with the case of two files with the same name in different + subdirectories of the same product). + \section2 qbs.rfc1034Identifier \code qbs.rfc1034Identifier(str: string): string |