Doc: add documentation for QMAKE_HOST

Task-number: QTBUG-13745
Change-Id: Ieeecb0f2bb065fe2ec5a1112a25a7b83bf701bd1
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Samuel Gaist 2015-08-03 12:17:19 +02:00
parent 64b53ddf56
commit 32a9ef32df
2 changed files with 26 additions and 0 deletions

View File

@ -987,3 +987,10 @@ QMAKE_SONAME_PREFIX = /Library/Frameworks
#! [185]
VERSION_PE_HEADER = 1.2
#! [185]
#! [186]
win32-g++:contains(QMAKE_HOST.arch, x86_64):{
message("Host is 64bit")
...
}
#! [186]

View File

@ -1739,6 +1739,25 @@
See \l{Creating Frameworks} for more information about creating frameworks.
\target QMAKE_HOST
\section1 QMAKE_HOST
Provides information about the host machine running qmake.
For example, you can retrieve the host machine architecture from
\c{QMAKE_HOST.arch}.
\table
\header \li Keys \li Values
\row \li .arch \li Host architecture
\row \li .os \li Host OS
\row \li .cpu_count \li Number of available cpus
\row \li .name \li Host computer name
\row \li .version \li Host OS version number
\row \li .version_string \li Host OS version string
\endtable
\snippet code/doc_src_qmake-manual.pro 186
\target QMAKE_INCDIR
\section1 QMAKE_INCDIR