engine.pro 9.38 KB
Newer Older
armin's avatar
armin committed
1
2
3
4
5
6
7
8
9
TEMPLATE = lib 
QT += core network websockets sql concurrent
CONFIG += c++11 static
INCLUDEPATH += websocket\
               websocket/winrtwebsocket\
               websocket/linuxwebsocket

SOURCES +=  api/meteorddp.cpp \
    api/restapi.cpp \
armin's avatar
armin committed
10
11
    websocket/websocket.cpp \
    websocket/websocketabstract.cpp \
armin's avatar
armin committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    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/rocketchatcreatechannelrequest.cpp \
    ddpRequests/ddpunsubscriptionrequest.cpp \
    ddpRequests/rocketchatcreateprivategrouprequest.cpp \
    ddpRequests/rocketchatadduserstochannel.cpp \
    ddpRequests/ddpufscreaterequest.cpp \
armin's avatar
armin committed
27
28
29
30
31
    ddpRequests/rocketchatupdatepushtokenrequest.cpp \
    ddpRequests/rocketchatgetroomsrequest.cpp \
    ddpRequests/rocketchatmessagesearchrequest.cpp \
    ddpRequests/rocketchatsubscribeactiveusers.cpp \
    ddpRequests/rocketchatsubscriberoomrequest.cpp \
armin's avatar
armin committed
32
33
34
35
36
37
    ddpRequests/rocketchatspotlightrequest.cpp \
    ddpRequests/ddpsamlloginrequest.cpp \
    ddpRequests/rocketchatupdatejitsitimeout.cpp \
    ddpRequests/rocketchatcreateaccount.cpp \
    ddpRequests/rocketchatsubscribeloginmethods.cpp \
    ddpRequests/ddpopenidloginrequest.cpp \
armin's avatar
armin committed
38
39
    repos/abstractbaserepository.cpp \
    repos/messagerepository.cpp \
armin's avatar
armin committed
40
41
    repos/channelrepository.cpp \
    repos/userrepository.cpp \
armin's avatar
armin committed
42
43
44
45
46
47
48
49
50
51
    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
52
53
54
55
56
57
58
59
60
    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
61
    restRequests/restgetjoinedroomsrequest.cpp \
armin's avatar
armin committed
62
    restRequests/restloginrequest.cpp \
armin's avatar
armin committed
63
64
65
66
    restRequests/restfileuploadrequest.cpp \
    restRequests/restgetjoinedgroupsrequest.cpp \
    restRequests/restlogoutrequest.cpp \
    restRequests/restmerequest.cpp \
armin's avatar
armin committed
67
68
69
70
71
72
73
74
75
    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
76
    services/emojiservice.cpp \
armin's avatar
armin committed
77
    CustomModels/usermodel.cpp \
armin's avatar
armin committed
78
79
80
81
82
    rocketchatserverconfig.cpp \
    CustomModels/channelmodel.cpp \
    container/sortedvector.cpp \
    container/observablelist.cpp \
    container/modelobserver.cpp \
armin's avatar
armin committed
83
84
    ddpRequests/rocketchatchangeuserpresancedefaultstatus.cpp \
    CustomModels/messagemodel.cpp \
armin's avatar
armin committed
85
86
    CustomModels/loginmethodsmodel.cpp \
    repos/loginmethodsrepository.cpp \
87
    repos/entities/loginmethod.cpp \
88
    restRequests/getserverinforequest.cpp \
89
    ddpRequests/rocketchatblockuserrequest.cpp \
90
    ddpRequests/rocketchatunblockuserrequest.cpp \
armin's avatar
armin committed
91
    restRequests/getserverinforequest.cpp \
armin's avatar
armin committed
92
93
    ddpRequests/rocketchatleaveroomrequest.cpp \
    ddpRequests/rocketchathideroomrequest.cpp
armin's avatar
armin committed
94

armin's avatar
armin committed
95
96
97
HEADERS += \
    api/meteorddp.h \
    api/restapi.h \
armin's avatar
armin committed
98
99
    websocket/websocket.h \
    websocket/websocketabstract.h \
armin's avatar
armin committed
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
    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/rocketchatcreatechannelrequest.h \
    ddpRequests/ddpunsubscriptionrequest.h \
    ddpRequests/rocketchatcreateprivategrouprequest.h \
    ddpRequests/rocketchatadduserstochannel.h \
    ddpRequests/ddpufscreaterequest.h \
armin's avatar
armin committed
115
116
117
118
119
120
    ddpRequests/rocketchatgetroomsrequest.h \
    ddpRequests/rocketchatsubscriberoomrequest.h \
    ddpRequests/rocketchatsubscribeactiveusers.h \
    ddpRequests/ddplogoutrequest.h \
    ddpRequests/rocketchatupdatepushtokenrequest.h \
    ddpRequests/rocketchatmessagesearchrequest.h \
armin's avatar
armin committed
121
122
123
124
125
126
    ddpRequests/rocketchatspotlightrequest.h \
    ddpRequests/ddpsamlloginrequest.h \
    ddpRequests/rocketchatupdatejitsitimeout.h \
    ddpRequests/rocketchatcreateaccount.h \
    ddpRequests/rocketchatsubscribeloginmethods.h \
    ddpRequests/ddpopenidloginrequest.h \
armin's avatar
armin committed
127
128
129
    repos/abstractbaserepository.h \
    repos/channelrepository.h \
    repos/userrepository.h \
armin's avatar
armin committed
130
131
132
133
134
135
136
137
138
139
140
    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
141
142
143
144
145
146
147
148
149
150
151
    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
152
153
154
155
    restRequests/restgetjoinedgroupsrequest.h \
    restRequests/restmerequest.h \
    restRequests/getrequest.h \
    restRequests/restfileuploadrequest.h \
armin's avatar
armin committed
156
157
158
159
160
161
162
163
    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
164
    services/fileservice.h \
armin's avatar
armin committed
165
166
167
168
    services/emojiservice.h \
    ddpRequests/ddplogoutrequest.h \
    rocketchatserverconfig.h \
    CustomModels/usermodel.h \
armin's avatar
armin committed
169
170
171
172
    CustomModels/channelmodel.h \
    container/sortedvector.h \
    container/observablelist.h \
    container/modelobserver.h \
armin's avatar
armin committed
173
    ddpRequests/rocketchatchangeuserpresancedefaultstatus.h \
armin's avatar
armin committed
174
175
    config.h \
    CustomModels/messagemodel.h \
armin's avatar
armin committed
176
177
    CustomModels/loginmethodsmodel.h \
    repos/loginmethodsrepository.h \
178
    repos/entities/loginmethod.h \
179
    restRequests/getserverinforequest.h \
180
    ddpRequests/rocketchatblockuserrequest.h \
181
    ddpRequests/rocketchatunblockuserrequest.h \
armin's avatar
armin committed
182
    restRequests/getserverinforequest.h \
armin's avatar
armin committed
183
184
    ddpRequests/rocketchatleaveroomrequest.h \
    ddpRequests/rocketchathideroomrequest.h
armin's avatar
armin committed
185

armin's avatar
armin committed
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
linux{

    SOURCES += websocket/linuxwebsocket/websocketlinux.cpp \
        segfaulthandler.cpp

    HEADERS += websocket/linuxwebsocket/websocketlinux.h \
        segfaulthandler.h

}

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
204
205
        android/androidstatusbarcolor.cpp \
        android/androidfiledialog.cpp
armin's avatar
armin committed
206
207
208
209
210
211
212
213



    HEADERS += android/androidfiledialog.h\
        notifications/android/googlepushnotifications.h\
        notifications/android/androidnotificationreceiver.h\
        android/androidcheckpermissions.h \
        android/androidbadges.h \
armin's avatar
armin committed
214
215
        android/androidstatusbarcolor.h \
        android/androidfiledialog.h
armin's avatar
armin committed
216
217
218
219
220
221
}


ios{
    QT += gui-private

armin's avatar
armin committed
222
223
224
    SOURCES += websocket/linuxwebsocket/websocketlinux.cpp \
        notifications/ios/applepushnotifications.cpp \
        notifications/ios/iosdevicetokenstorage.cpp \
armin's avatar
armin committed
225
        segfaulthandler.cpp \
armin's avatar
armin committed
226
        notifications/ios/iosnotificationreceiver.cpp
armin's avatar
armin committed
227

armin's avatar
armin committed
228

armin's avatar
armin committed
229
230
231
    HEADERS += websocket/linuxwebsocket/websocketlinux.h \
        notifications/ios/applepushnotifications.h \
        notifications/ios/iosdevicetokenstorage.h \
armin's avatar
armin committed
232
233
234
235
236
        ios/FileHandlerActivity.h \
        ios/fileopener.h \
        segfaulthandler.h \
        ios/IosGalleryPicker.h \
        ios/shareheplersingelton.h \
armin's avatar
armin committed
237
        notifications/ios/iosnotificationreceiver.h \
armin's avatar
armin committed
238
239
        notifications/ios/DelegateClass.h \
        ios/IosBadges.h
armin's avatar
armin committed
240
241
242
243
244
245
246


    OBJECTIVE_SOURCES += ios/QIOSApplicationDelegate+PushDelegate.mm \
        notifications/ios/DelegateClass.mm \
        ios/FileHandlerActivity.mm \
        ios/IosGalleryPicker.mm \
        ios/fileopener.mm \
armin's avatar
armin committed
247
248
        ios/shareheplersingelton.mm \
        ios/IosBadges.mm \
armin's avatar
armin committed
249
250
251
252
253
254
255
256
257
258
        ios/shareheplersingelton.mm


    LIBS += -framework UserNotifications

}
CONFIG(release, debug|release) {
    CONFIG  += qt release
    DEFINES += QT_NO_DEBUG_OUTPUT
    DEFINES += QT_NO_DEBUG
armin's avatar
armin committed
259
    CONFIG += ltcg
armin's avatar
armin committed
260
261
    # compiler options: O3 optimize
    linux:{
armin's avatar
armin committed
262
         QMAKE_CXXFLAGS += -O3 -flto
armin's avatar
armin committed
263
264
    }
    android:{
armin's avatar
armin committed
265
        QMAKE_CXXFLAGS += -O3 -flto
armin's avatar
armin committed
266
267
268
269
270
271
    }
    ios:{
        QMAKE_CXXFLAGS += -O3
    }
}

armin's avatar
fixes    
armin committed
272
273
274
RESOURCES += \
    sql.qrc

armin's avatar
armin committed
275
276
277
DISTFILES += \
    sql/migrations/3.sql

278