-
Notifications
You must be signed in to change notification settings - Fork 211
/
qwx.pro
49 lines (38 loc) · 1.02 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
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/LoginView.qml \
qml/ContactListView.qml
RESOURCES += \
resources.qrc
!isEmpty(QWX_DEBUG) {
DEFINES += QWX_DEBUG
}
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
target.path = $$BINDIR
desktop.path = $$DATADIR/applications
desktop.files += $${TARGET}.desktop
}