forked from opengisch/QField
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.pri
More file actions
25 lines (18 loc) · 791 Bytes
/
version.pri
File metadata and controls
25 lines (18 loc) · 791 Bytes
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
VERSION_MAJOR = 0
VERSION_MINOR = 3
VERSION_FIX = 4
VERSION = '$${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_FIX}'
ANDROID_VERSION_SUFFIX = 0
ANDROID_TARGET_ARCH = $$ANDROID_TARGET_ARCH$$
equals ( ANDROID_TARGET_ARCH, 'armeabi-v7a' ) {
ANDROID_VERSION_SUFFIX = 1
}
equals ( ANDROID_TARGET_ARCH, 'x86' ) {
ANDROID_VERSION_SUFFIX = 2
}
VERSIONCODE = $$format_number($$format_number($${VERSION_MAJOR}, width=2 zeropad)$$format_number($${VERSION_MINOR}, width=2 zeropad)$$format_number($${VERSION_FIX}, width=2 zeropad)$$format_number($${ANDROID_VERSION_SUFFIX}))
CODENAME = 'Cerro Torre'
VERSTR = '$${VERSION} - $${CODENAME}'
message( 'Building Version $${VERSTR} ($${VERSIONCODE})' )
ESCAPED_VERSTR = $$replace( VERSTR, ' ', '\ ' )
DEFINES += "VERSTR=\\\"$${ESCAPED_VERSTR}\\\""