forked from vipjeffreylee/qwx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qwx.pro
61 lines (49 loc) · 1.33 KB
/
qwx.pro
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
QT_VERSION = $$[QT_VERSION]
QT_VERSION = $$split(QT_VERSION, ".")
QT_VER_MAJ = $$member(QT_VERSION, 0)
QT_VER_MIN = $$member(QT_VERSION, 1)
lessThan(QT_VER_MAJ, 5) | lessThan(QT_VER_MIN, 2) {
error(qwx is only tested under Qt 5.2!)
}
QT += qml quick network xml
QMAKE_CXXFLAGS += -std=c++11 -Werror
!android: !ios: !blackberry: qtHaveModule(widgets): QT += widgets
TARGET = qwx
CODECFORSRC = UTF-8
include(src/src.pri)
OTHER_FILES += \
qml/main.qml \
qml/SplashView.qml \
qml/LoginView.qml \
qml/NavigatorView.qml \
qml/IconTab.qml \
qml/WXView.qml \
qml/ChatView.qml \
qml/TalkBubble.qml \
qml/ContactListView.qml \
qml/IView.qml \
qml/global.js
RESOURCES += \
resources.qrc
!isEmpty(QWX_DEBUG) {
DEFINES += QWX_DEBUG
QMAKE_CXXFLAGS += -g
}
unix {
#VARIABLES
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $$PREFIX/bin
DATADIR = $$PREFIX/share
DEFINES += PREFIX=\\\"$$PREFIX\\\"
DEFINES += TARGET=\\\"$$TARGET\\\"
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
#MAKE INSTALL
INSTALLS += target desktop icon
target.path = $$BINDIR
desktop.path = $$DATADIR/applications
desktop.files += $${TARGET}.desktop
icon.path = $$DATADIR/icons/hicolor/64x64/apps
icon.files += images/$${TARGET}.png
}