-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathshared.pri
57 lines (44 loc) · 1.4 KB
/
shared.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
CONFIG *= c++14
QMAKE_LFLAGS *= -std=c++14
QMAKE_CXXFLAGS *= -std=c++14
top_srcdir=$$PWD
top_builddir=$$shadowed($$PWD)
# Read version info from version.txt
VERSION_INFO=$$cat(version.txt)
APP_VERSION=$$member(VERSION_INFO, 0)
APP_REVISION=$$member(VERSION_INFO, 1)
equals(OVERLAY_PATH, "") {
include(config.pri)
} else {
include($${OVERLAY_PATH}/config.pri)
}
QMAKE_SUBSTITUTES += $${top_srcdir}/config.h.in
INCLUDEPATH += $${top_builddir}
# We want -Wall to keep the code clean and tidy, however:
# On Windows, -Wall goes mental, so not using it there
!win32:QMAKE_CXXFLAGS += -Wall
equals(OVERLAY_PATH, "") {
PACKAGE_BASE_DIR = $$shell_path($$PWD/packaging)
} else {
PACKAGE_BASE_DIR = $$shell_path($${OVERLAY_PATH}/packaging)
}
# As of Qt 5.15, lots of things are deprecated inside Qt in preparation for Qt6 but no replacement to actually fix those yet.
linux:!android {
QMAKE_CXXFLAGS += -Wno-deprecated-declarations -Wno-deprecated-copy
}
android: {
QMAKE_CXXFLAGS += -Wno-deprecated-declarations
ANDROID_PACKAGE_SOURCE_DIR = $${PACKAGE_BASE_DIR}/android
message("Android package directory: $${ANDROID_PACKAGE_SOURCE_DIR}")
!no-firebase:DEFINES+=WITH_FIREBASE
}
ios: {
!no-firebase:DEFINES+=WITH_FIREBASE
IOS_PACKAGE_DIR = $${PACKAGE_BASE_DIR}/ios/
}
macx: {
MACX_PACKAGE_DIR = $${PACKAGE_BASE_DIR}/osx/
}
win32: {
WIN_PACKAGE_DIR = $${PACKAGE_BASE_DIR}\windows
}