-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPXMessenger.pro
116 lines (100 loc) · 2.79 KB
/
PXMessenger.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
TEMPLATE = app
TARGET = PXMessenger
VERSION = 1.6.0
QMAKE_TARGET_COMPANY = Bolar Code Solutions
QMAKE_TARGET_PRODUCT = PXMessenger
QMAKE_TARGET_DESCRIPTION = Instant Messenger
QMAKE_TARGET_COPYRIGHT = GPLv3
target.path = /usr/local/bin
desktop.path = /usr/share/applications
desktop.files += $$PWD/resources/pxmessenger.desktop
icon.path = /usr/share/pixmaps
icon.files += $$PWD/resources/PXMessenger.png
INSTALLS += target desktop icon
QT = core gui widgets multimedia
CONFIG += DEBUG \
RELEASE
win32: CONFIG += windows
unix: LIBS += -levent -levent_pthreads
win32 {
LIBS += -L$$PWD/../libevent/build/lib -levent -levent_core
INCLUDEPATH += $$PWD/../libevent/include \
$$PWD/../libevent/build/include
}
INCLUDEPATH += $$PWD/include
win32 {
LIBS += -lws2_32
RC_ICONS = $$PWD/resources/PXM_Icon.ico
}
win32 {
contains(QMAKE_HOST.arch, x86_64):{
TARGET =$$TARGET-x86_64
BUILDDIR = build-win64
}
contains(QMAKE_HOST.arch, x86):{
TARGET =$$TARGET-x86
BUILDDIR = build-win32
}
}
QMAKE_CXXFLAGS += -Wall \
-std=c++14
SOURCES += \
$$PWD/src/pxmclient.cpp \
$$PWD/src/pxmpeerworker.cpp \
$$PWD/src/pxmsync.cpp \
$$PWD/src/pxminireader.cpp \
$$PWD/src/pxmserver.cpp \
$$PWD/src/pxmmainwindow.cpp \
$$PWD/src/pxmessenger.cpp \
$$PWD/src/netcompression.cpp \
$$PWD/src/pxmstackwidget.cpp \
$$PWD/src/pxmconsole.cpp \
$$PWD/src/pxmpeers.cpp \
$$PWD/src/pxmagent.cpp
HEADERS += \
$$PWD/include/pxmpeerworker.h \
$$PWD/include/pxmmainwindow.h \
$$PWD/include/pxmsync.h \
$$PWD/include/pxminireader.h \
$$PWD/include/pxmserver.h \
$$PWD/include/pxmclient.h \
$$PWD/include/netcompression.h \
$$PWD/include/timedvector.h \
$$PWD/include/pxmstackwidget.h \
$$PWD/include/pxmconsole.h \
$$PWD/include/pxmconsts.h \
$$PWD/include/pxmpeers.h \
$$PWD/include/pxmagent.h
FORMS += \
$$PWD/ui/pxmmainwindow.ui \
$$PWD/ui/pxmaboutdialog.ui \
$$PWD/ui/pxmsettingsdialog.ui \
ui/manualconnect.ui
DISTFILES += \
resources/updates.json
RESOURCES += $$PWD/resources/resources.qrc
win32 {
release:DESTDIR = $$PWD/$$BUILDDIR/
debug:DESTDIR = $$PWD/$$BUILDDIR/
OBJECTS_DIR = $$PWD/$$BUILDDIR/obj
MOC_DIR = $$PWD/$$BUILDDIR/moc
RCC_DIR = $$PWD/$$BUILDDIR/rcc
UI_DIR = $$PWD/$$BUILDDIR/ui
QMAKE_CLEAN += $$PWD/object_script.* \
$$PWD/PXMessenger_resource.rc
}
unix {
release:DESTDIR = $$PWD/
debug:DESTDIR = $$PWD/
OBJECTS_DIR = $$PWD/build-unix/obj
MOC_DIR = $$PWD/build-unix/moc
RCC_DIR = $$PWD/build-unix/rcc
UI_DIR = $$PWD/build-unix/ui
}
INCLUDEPATH += MOC_DIR
win32 {
include($$PWD/include/QSimpleUpdater/QSimpleUpdater.pri)
}
#QMAKE_CXXFLAGS+="-fsanitize=undefined -fno-omit-frame-pointer"
#QMAKE_CFLAGS+="-fsanitize=address -fno-omit-frame-pointer"
#QMAKE_LFLAGS+="-fsanitize=undefined"