This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
qmake-extensions.pri
63 lines (54 loc) · 1.56 KB
/
qmake-extensions.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
###########################################################################################
## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1)
##
## Author : Filipe Azevedo aka Nox P@sNox <[email protected]>
## Project : qmake-extensions.pri
## FileName : qmake-extensions.pri
## Date : 2012-07-28T13:13:40
## License : LGPL3
## Comment : Creating using Monkey Studio RAD
## Home Page : https://github.com/pasnox/qmake-extensions
##
## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
##
###########################################################################################
Q_HOST_OS = $${QMAKE_HOST.os}
Q_LOWER_HOST_OS = $$lower( $${Q_HOST_OS} )
win32 {
!isEqual( Q_LOWER_HOST_OS, "windows" ) {
# we are cross building for windows
CONFIG *= cb_win32
}
}
macx {
!isEqual( Q_LOWER_HOST_OS, "darwin" ) {
# we are cross building for mac os x
CONFIG *= cb_mac
}
}
# the build target os
Q_TARGET = $${Q_HOST_OS}
# the build target arch
Q_ARCH = $${QT_ARCH}
cb_win32 {
Q_TARGET = Windows
}
cb_mac {
Q_TARGET = Darwin
}
Q_TARGET_ARCH = "$${Q_TARGET}-$${Q_ARCH}"
# Some useful variables that can't be easily added in variable values directly
Q_NULL =
Q_BACK_SLASH = "\\"
Q_SLASH = "/"
Q_QUOTE = "\""
Q_DOLLAR = "\\$"
Q_OPENING_BRACE = "\\{"
Q_CLOSING_BRACE = "\\}"
# include functions
isEmpty( translations_pass ) {
include( $$PWD/functions.pri )
} else {
include( $$PWD/fake-functions.pri )
}