engine.pro 10.5 KB
Newer Older
armin's avatar
armin committed
1
2
TEMPLATE = lib 
QT += core network websockets sql concurrent
Armin Felder's avatar
Armin Felder committed
3
CONFIG += c++14 static
armin's avatar
armin committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

SOURCES +=  api/meteorddp.cpp \
    api/restapi.cpp \
    ddpRequests/ddploginrequest.cpp \
    ddpRequests/ddprequest.cpp \
    ddpRequests/ddpsubscriptionrequest.cpp \
    ddpRequests/methodrequest.cpp \
    ddpRequests/pingrequest.cpp \
    ddpRequests/rocketchatsubscribechannelrequest.cpp \
    ddpRequests/rocketchatsubscribeusernotify.cpp \
    ddpRequests/rocketchatnotifynoticesrequest.cpp \
    ddpRequests/rocketchatsubscriptionchangedrequest.cpp \
    ddpRequests/rocketchatmarkchannelasreadrequest.cpp \
    ddpRequests/ddpunsubscriptionrequest.cpp \
    ddpRequests/rocketchatcreateprivategrouprequest.cpp \
    ddpRequests/rocketchatadduserstochannel.cpp \
    ddpRequests/ddpufscreaterequest.cpp \
armin's avatar
armin committed
21
22
23
24
25
    ddpRequests/rocketchatupdatepushtokenrequest.cpp \
    ddpRequests/rocketchatgetroomsrequest.cpp \
    ddpRequests/rocketchatmessagesearchrequest.cpp \
    ddpRequests/rocketchatsubscribeactiveusers.cpp \
    ddpRequests/rocketchatsubscriberoomrequest.cpp \
armin's avatar
armin committed
26
27
28
29
30
    ddpRequests/ddpsamlloginrequest.cpp \
    ddpRequests/rocketchatupdatejitsitimeout.cpp \
    ddpRequests/rocketchatcreateaccount.cpp \
    ddpRequests/rocketchatsubscribeloginmethods.cpp \
    ddpRequests/ddpopenidloginrequest.cpp \
armin's avatar
armin committed
31
32
    repos/abstractbaserepository.cpp \
    repos/messagerepository.cpp \
armin's avatar
armin committed
33
34
    repos/channelrepository.cpp \
    repos/userrepository.cpp \
armin's avatar
armin committed
35
36
37
38
39
40
41
42
43
44
    repos/emojirepo.cpp \
    repos/entities/rocketchatuser.cpp \
    repos/entities/rocketchatmessage.cpp \
    repos/entities/rocketchatattachment.cpp \
    repos/entities/rocketchatchannel.cpp \
    repos/entities/tempfile.cpp \
    repos/entities/audiofile.cpp \
    repos/entities/documentfile.cpp \
    repos/entities/videofile.cpp \
    repos/entities/emoji.cpp \
armin's avatar
armin committed
45
46
47
48
49
50
51
52
53
    persistancelayer.cpp \
    rocketchat.cpp \
    rocketchatserver.cpp \
    utils.cpp \
    restRequests/getrequest.cpp \
    restRequests/restrequest.cpp \
    restRequests/restsendmessagerequest.cpp \
    restRequests/postrequest.cpp \
    restRequests/restpaths.cpp \
armin's avatar
armin committed
54
    restRequests/restgetjoinedroomsrequest.cpp \
armin's avatar
armin committed
55
    restRequests/restloginrequest.cpp \
armin's avatar
armin committed
56
57
58
59
    restRequests/restfileuploadrequest.cpp \
    restRequests/restgetjoinedgroupsrequest.cpp \
    restRequests/restlogoutrequest.cpp \
    restRequests/restmerequest.cpp \
armin's avatar
armin committed
60
61
62
63
64
65
66
67
68
    notifications/notificationabstract.cpp \
    notifications/notifications.cpp \
    fileuploader.cpp \
    services/messageservice.cpp \
    services/rocketchatchannelservice.cpp \
    services/requests/loadhistoryservicerequest.cpp \
    services/requests/loadHistoryrequestcontainer.cpp \
    services/requests/loadmissedmessageservicerequest.cpp \
    services/fileservice.cpp \
armin's avatar
armin committed
69
    services/emojiservice.cpp \
armin's avatar
armin committed
70
    CustomModels/usermodel.cpp \
armin's avatar
armin committed
71
72
73
74
75
    rocketchatserverconfig.cpp \
    CustomModels/channelmodel.cpp \
    container/sortedvector.cpp \
    container/observablelist.cpp \
    container/modelobserver.cpp \
armin's avatar
armin committed
76
    ddpRequests/rocketchatchangeuserpresencedefaultstatus.cpp \
armin's avatar
armin committed
77
    CustomModels/messagemodel.cpp \
armin's avatar
armin committed
78
    CustomModels/loginmethodsmodel.cpp \
79
    CustomModels/models.cpp \
armin's avatar
armin committed
80
    repos/loginmethodsrepository.cpp \
81
    repos/entities/loginmethod.cpp \
82
    restRequests/getserverinforequest.cpp \
83
    ddpRequests/rocketchatblockuserrequest.cpp \
84
    ddpRequests/rocketchatunblockuserrequest.cpp \
armin's avatar
armin committed
85
    restRequests/getserverinforequest.cpp \
armin's avatar
armin committed
86
    ddpRequests/rocketchatleaveroomrequest.cpp \
armin's avatar
armin committed
87
    ddpRequests/rocketchathideroomrequest.cpp \
armin's avatar
armin committed
88
89
    ddpRequests/rocketchatsubscriberoomschanged.cpp \
    ddpRequests/rocketchatmessagesearchrequest.cpp \
armin's avatar
armin committed
90
91
92
93
    CustomModels/messagesearchresultsmodel.cpp \
    restRequests/restspotlightrequest.cpp \
    CustomModels/roomsearchresultsmodel.cpp \
    ddpRequests/rocketchatgetroombynameandtype.cpp \
armin's avatar
ias    
armin committed
94
95
96
    ddpRequests/rocketchatgetroombyid.cpp \
    ddpRequests/rocketchatjoinroomrequest.cpp \
    ddpRequests/rocketchatgetroomidbynameorid.cpp \
Dennis Beier's avatar
Dennis Beier committed
97
    ddpRequests/rocketchatspotlightrequest.cpp \
98
99
    repos/entities/rocketchatreplymessage.cpp \
    ddpRequests/rocketchatgetusernamesuggestion.cpp \
armin's avatar
armin committed
100
    ddpRequests/rocketchatsetusername.cpp \
armin's avatar
armin committed
101
102
    ddpRequests/rocketchatcreatepublicgrouprequest.cpp \
    ddpRequests/rocketchatchangeuserpresencestatus.cpp \
armin's avatar
d    
armin committed
103
    ddpRequests/rocketchatsubscribeuserdata.cpp \
armin's avatar
as    
armin committed
104
105
    CustomModels/emojismodel.cpp \
    repos/filesrepo.cpp
armin's avatar
armin committed
106

armin's avatar
armin committed
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
HEADERS += \
    api/meteorddp.h \
    api/restapi.h \
    ddpRequests/ddploginrequest.h \
    ddpRequests/ddpmethodrequest.h \
    ddpRequests/ddprequest.h \
    ddpRequests/ddpsubscriptionrequest.h \
    ddpRequests/pingrequest.h \
    ddpRequests/rocketchatsubscribechannelrequest.h \
    ddpRequests/rocketchatsubscribeusernotify.h \
    ddpRequests/rocketchatnotifynoticesrequest.h \
    ddpRequests/rocketchatsubscriptionchangedrequest.h \
    ddpRequests/rocketchatmarkchannelasreadrequest.h \
    ddpRequests/ddpunsubscriptionrequest.h \
    ddpRequests/rocketchatcreateprivategrouprequest.h \
    ddpRequests/rocketchatadduserstochannel.h \
    ddpRequests/ddpufscreaterequest.h \
armin's avatar
armin committed
124
125
126
127
128
129
    ddpRequests/rocketchatgetroomsrequest.h \
    ddpRequests/rocketchatsubscriberoomrequest.h \
    ddpRequests/rocketchatsubscribeactiveusers.h \
    ddpRequests/ddplogoutrequest.h \
    ddpRequests/rocketchatupdatepushtokenrequest.h \
    ddpRequests/rocketchatmessagesearchrequest.h \
armin's avatar
armin committed
130
131
132
133
134
    ddpRequests/ddpsamlloginrequest.h \
    ddpRequests/rocketchatupdatejitsitimeout.h \
    ddpRequests/rocketchatcreateaccount.h \
    ddpRequests/rocketchatsubscribeloginmethods.h \
    ddpRequests/ddpopenidloginrequest.h \
armin's avatar
armin committed
135
136
137
    repos/abstractbaserepository.h \
    repos/channelrepository.h \
    repos/userrepository.h \
armin's avatar
armin committed
138
139
140
141
142
143
144
145
146
147
148
    repos/messagerepository.h \
    repos/emojirepo.h \
    repos/entities/rocketchatuser.h \
    repos/entities/rocketchatattachment.h \
    repos/entities/rocketchatchannel.h \
    repos/entities/rocketchatmessage.h \
    repos/entities/tempfile.h \
    repos/entities/audiofile.h \
    repos/entities/documentfile.h \
    repos/entities/videofile.h \
    repos/entities/emoji.h \
armin's avatar
armin committed
149
150
151
152
153
154
155
156
157
158
159
    persistancelayer.h \
    rocketchat.h \
    rocketchatserver.h \
    utils.h \
    restRequests/getrequest.h \
    ddpRequests/rocketchatmessagesearchrequest.h \
    notifications/notificationabstract.h \
    restRequests/postrequest.h \
    restRequests/restpaths.h \
    restRequests/restgetjoinedroomsrequest.h \
    restRequests/restloginrequest.h \
armin's avatar
armin committed
160
161
162
163
    restRequests/restgetjoinedgroupsrequest.h \
    restRequests/restmerequest.h \
    restRequests/getrequest.h \
    restRequests/restfileuploadrequest.h \
armin's avatar
armin committed
164
165
166
167
168
169
170
171
    notifications/notifications.h \
    fileuploader.h \
    restRequests/restfileuploadrequest.h \
    services/messageservice.h \
    services/rocketchatchannelservice.h \
    services/requests/loadhistoryservicerequest.h \
    services/requests/loadHistoryrequestcontainer.h \
    services/requests/loadmissedmessageservicerequest.h \
armin's avatar
armin committed
172
    services/fileservice.h \
armin's avatar
armin committed
173
174
175
176
    services/emojiservice.h \
    ddpRequests/ddplogoutrequest.h \
    rocketchatserverconfig.h \
    CustomModels/usermodel.h \
armin's avatar
armin committed
177
178
179
180
    CustomModels/channelmodel.h \
    container/sortedvector.h \
    container/observablelist.h \
    container/modelobserver.h \
armin's avatar
armin committed
181
182
    config.h \
    CustomModels/messagemodel.h \
armin's avatar
armin committed
183
    CustomModels/loginmethodsmodel.h \
184
    CustomModels/models.h \
armin's avatar
armin committed
185
    repos/loginmethodsrepository.h \
186
    repos/entities/loginmethod.h \
187
    restRequests/getserverinforequest.h \
188
    ddpRequests/rocketchatblockuserrequest.h \
189
    ddpRequests/rocketchatunblockuserrequest.h \
armin's avatar
armin committed
190
    restRequests/getserverinforequest.h \
armin's avatar
armin committed
191
    ddpRequests/rocketchatleaveroomrequest.h \
armin's avatar
armin committed
192
    ddpRequests/rocketchathideroomrequest.h \
armin's avatar
armin committed
193
194
    ddpRequests/rocketchatsubscriberoomschanged.h \
    ddpRequests/rocketchatmessagesearchrequest.h \
armin's avatar
armin committed
195
196
197
198
    CustomModels/messagesearchresultsmodel.h \
    restRequests/restspotlightrequest.h \
    CustomModels/roomsearchresultsmodel.h \
    ddpRequests/rocketchatgetroombynameandtype.h \
armin's avatar
ias    
armin committed
199
200
201
    ddpRequests/rocketchatgetroombyid.h \
    ddpRequests/rocketchatjoinroomrequest.h \
    ddpRequests/rocketchatgetroomidbynameorid.h \
202
    ddpRequests/rocketchatspotlightrequest.h \
Dennis Beier's avatar
Dennis Beier committed
203
    api/messagelistener.h \
204
205
    repos/entities/rocketchatreplymessage.h \
    ddpRequests/rocketchatgetusernamesuggestion.h \
armin's avatar
armin committed
206
    ddpRequests/rocketchatsetusername.h \
armin's avatar
armin committed
207
208
209
    ddpRequests/rocketchatcreatepublicgrouprequest.h \
    ddpRequests/rocketchatchangeuserpresencestatus.h \
    ddpRequests/rocketchatchangeuserpresencedefaultstatus.h \
armin's avatar
d    
armin committed
210
    ddpRequests/rocketchatsubscribeuserdata.h \
armin's avatar
as    
armin committed
211
212
    CustomModels/emojismodel.h \
    repos/filesrepo.h
armin's avatar
armin committed
213

armin's avatar
armin committed
214
215
linux{

Armin Felder's avatar
Armin Felder committed
216
217
    SOURCES += segfaulthandler.cpp
    HEADERS += segfaulthandler.h
armin's avatar
armin committed
218
219
220
221
222
223
224
225
226
227
228

}

android{
    QT += androidextras

    SOURCES += android/androidfiledialog.cpp\
        notifications/android/googlepushnotifications.cpp\
        notifications/android/androidnotificationreceiver.cpp\
        android/androidcheckpermissions.cpp \
        android/androidbadges.cpp \
armin's avatar
armin committed
229
        android/androidstatusbarcolor.cpp \
armin's avatar
armin committed
230
231
232
        android/androidfiledialog.cpp \
        android/androidcookies.cpp

armin's avatar
armin committed
233
234
235
236
237
238
239
240



    HEADERS += android/androidfiledialog.h\
        notifications/android/googlepushnotifications.h\
        notifications/android/androidnotificationreceiver.h\
        android/androidcheckpermissions.h \
        android/androidbadges.h \
armin's avatar
armin committed
241
        android/androidstatusbarcolor.h \
armin's avatar
armin committed
242
243
244
        android/androidfiledialog.h \
        android/androidcookies.h

armin's avatar
armin committed
245
246
}

Armin Felder's avatar
Armin Felder committed
247
248
249
win32{
    QMAKE_CXXFLAGS += /MP
}
armin's avatar
armin committed
250
251

ios{
armin's avatar
sd    
armin committed
252

armin's avatar
armin committed
253
254
    QT += gui-private

Armin Felder's avatar
Armin Felder committed
255
    SOURCES += notifications/ios/applepushnotifications.cpp \
armin's avatar
armin committed
256
        notifications/ios/iosdevicetokenstorage.cpp \
armin's avatar
armin committed
257
        segfaulthandler.cpp \
armin's avatar
armin committed
258
        notifications/ios/iosnotificationreceiver.cpp
armin's avatar
armin committed
259

armin's avatar
armin committed
260

Armin Felder's avatar
Armin Felder committed
261
    HEADERS += notifications/ios/applepushnotifications.h \
armin's avatar
armin committed
262
        notifications/ios/iosdevicetokenstorage.h \
armin's avatar
armin committed
263
        notifications/ios/iosnotificationreceiver.h \
armin's avatar
armin committed
264
        notifications/ios/DelegateClass.h
armin's avatar
armin committed
265

armin's avatar
armin committed
266
    OBJECTIVE_SOURCES += notifications/ios/DelegateClass.mm
armin's avatar
armin committed
267
268
269
270
271
272
273
274
275
276


    LIBS += -framework UserNotifications

}
CONFIG(release, debug|release) {
    CONFIG  += qt release
    DEFINES += QT_NO_DEBUG_OUTPUT
    DEFINES += QT_NO_DEBUG
    # compiler options: O3 optimize
armin's avatar
armin committed
277
    linux:!android{
armin's avatar
armin committed
278
         CONFIG += ltcg
armin's avatar
ds    
armin committed
279
         QMAKE_CXXFLAGS += -Ofast -flto -funroll-loops -fno-signed-zeros -fno-trapping-math
armin's avatar
armin committed
280
281
    }
    android:{
armin's avatar
armin committed
282
         QMAKE_CXXFLAGS += -Ofast -funroll-loops -fno-signed-zeros -fno-trapping-math
armin's avatar
armin committed
283
284
    }
    ios:{
armin's avatar
sd    
armin committed
285
286
        CONFIG += ltcg
        QMAKE_CXXFLAGS += -Ofast -funroll-loops -fno-signed-zeros -fno-trapping-math
armin's avatar
armin committed
287
    }
Armin Felder's avatar
Armin Felder committed
288
289
290
    win32:{
        QMAKE_CXXFLAGS += /O2
    }
armin's avatar
armin committed
291
292
}

armin's avatar
fixes    
armin committed
293
294
295
RESOURCES += \
    sql.qrc

armin's avatar
armin committed
296
DISTFILES += \
armin's avatar
armin committed
297
    sql/migrations/3.sql \
298
    sql/migrations/4.sql \
armin's avatar
armin committed
299
300
    sql/migrations/5.sql \
    sql/migrations/6.sql
armin's avatar
armin committed
301

302