-
Notifications
You must be signed in to change notification settings - Fork 1
/
Server.pro
124 lines (94 loc) · 4.21 KB
/
Server.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
117
118
119
120
121
122
123
124
QT += core xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network sql
CONFIG += c++11 console
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
Server/caudio.cpp \
Server/cookiesmanager.cpp \
src/AbstractServer.cpp \
src/abstractaudio.cpp \
src/cchannel.cpp \
Server/cclient.cpp \
src/cdatabase.cpp \
src/cmessage.cpp \
src/cpacket.cpp \
Server/cserver.cpp \
Server/main.cpp \
src/crole.cpp \
Server/sha256.cpp \
src/csessioncookie.cpp \
Client/messagelist.cpp \
Server/qsslserver.cpp
HEADERS += \
src/includes/AbstractServer.h \
Server/includes/caudio.h \
Server/includes/cookiesmanager.h \
Server/includes/sha256.h \
Server/includes/cserver.h \
Server/config.h \
Server/includes/csessioncookie.h \
src/includes/cmessage.h \
src/includes/cchannel.h \
Server/includes/cclient.h \
Server/includes/cdatabase.h \
Server/includes/cpacket.h \
src/includes/cmessage.h \
src/includes/crole.h \
Client/includes/messagelist.h \
Server/includes/qsslserver.h
FORMS +=
INCLUDEPATH += src \
src/includes \
Server/includes
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
win32: LIBS += -L$$PWD/libs/libmariadb/win32/ -llibmariadb
INCLUDEPATH += $$PWD/libs/libmariadb/include \
$$PWD/libs/libmariadb/win32
DEPENDPATH += $$PWD/libs/libmariadb/win32
#Includes paths for libs
INCLUDEPATH += $$PWD/libs/include/
DEPENDPATH += $$PWD/libs/include/
INCLUDEPATH += $$PWD/libs/include/portaudio
DEPENDPATH += $$PWD/libs/include/portaudio
INCLUDEPATH += $$PWD/libs/include/opus
DEPENDPATH += $$PWD/libs/include/opus
INCLUDEPATH += $$PWD/libs/include/jthread
DEPENDPATH += $$PWD/libs/include/jthread
INCLUDEPATH += $$PWD/libs/include/jrtplib3
DEPENDPATH += $$PWD/libs/include/jrtplib3
INCLUDEPATH += $$PWD/libs/include/emiplib
DEPENDPATH += $$PWD/libs/include/emiplib
#portaudio
win32: LIBS += -L$$PWD/libs/lib/ -lportaudio_x64
win32:!win32-g++: PRE_TARGETDEPS += $$PWD/libs/lib/portaudio_x64.lib
else:win32-g++: PRE_TARGETDEPS += $$PWD/libs/lib/libportaudio_x64.a
#opus
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/lib/ -lopus
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/libopus.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/opus.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/opus.lib
#jthread
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/lib/ -ljthread
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/libjthread.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/libjthread_d.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/jthread.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/jthread_d.lib
#jrtplib
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/lib/ -ljrtplib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libs/lib/ -ljrtplib_d
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/jrtplib.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/jrtplib_d.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/jrtplib.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/jrtplib_d.lib
#emiplib
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/lib/ -lemiplib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libs/lib/ -lemiplib_d
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/emiplib.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/emiplib_d.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/emiplib.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/libs/lib/emiplib_d.lib