engine.pro 8.1 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
32
33
    ddpRequests/rocketchatupdatepushtokenrequest.cpp \
    ddpRequests/rocketchatgetroomsrequest.cpp \
    ddpRequests/rocketchatmessagesearchrequest.cpp \
    ddpRequests/rocketchatsubscribeactiveusers.cpp \
    ddpRequests/rocketchatsubscriberoomrequest.cpp \
    repos/abstractbaserepository.cpp \
    repos/messagerepository.cpp \
armin's avatar
armin committed
34
35
    repos/channelrepository.cpp \
    repos/userrepository.cpp \
armin's avatar
armin committed
36
37
38
39
40
41
42
43
44
45
    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
46
47
48
49
50
51
52
53
54
    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
55
    restRequests/restgetjoinedroomsrequest.cpp \
armin's avatar
armin committed
56
    restRequests/restloginrequest.cpp \
armin's avatar
armin committed
57
58
59
60
    restRequests/restfileuploadrequest.cpp \
    restRequests/restgetjoinedgroupsrequest.cpp \
    restRequests/restlogoutrequest.cpp \
    restRequests/restmerequest.cpp \
armin's avatar
armin committed
61
62
63
64
65
66
67
68
69
    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
70
    services/emojiservice.cpp \
armin's avatar
armin committed
71
    CustomModels/usermodel.cpp \
armin's avatar
armin committed
72
73
74
75
76
    rocketchatserverconfig.cpp \
    CustomModels/channelmodel.cpp \
    container/sortedvector.cpp \
    container/observablelist.cpp \
    container/modelobserver.cpp \
armin's avatar
armin committed
77
78
79
    ddpRequests/rocketchatchangeuserpresancedefaultstatus.cpp \
    CustomModels/messagemodel.cpp \
    ddpRequests/rocketchatupdatejitsitimeout.cpp
armin's avatar
armin committed
80

armin's avatar
armin committed
81
82
83
HEADERS += \
    api/meteorddp.h \
    api/restapi.h \
armin's avatar
armin committed
84
85
    websocket/websocket.h \
    websocket/websocketabstract.h \
armin's avatar
armin committed
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
    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
101
102
103
104
105
106
    ddpRequests/rocketchatgetroomsrequest.h \
    ddpRequests/rocketchatsubscriberoomrequest.h \
    ddpRequests/rocketchatsubscribeactiveusers.h \
    ddpRequests/ddplogoutrequest.h \
    ddpRequests/rocketchatupdatepushtokenrequest.h \
    ddpRequests/rocketchatmessagesearchrequest.h \
armin's avatar
armin committed
107
108
109
    repos/abstractbaserepository.h \
    repos/channelrepository.h \
    repos/userrepository.h \
armin's avatar
armin committed
110
111
112
113
114
115
116
117
118
119
120
    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
121
122
123
124
125
126
127
128
129
130
131
    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
132
133
134
135
    restRequests/restgetjoinedgroupsrequest.h \
    restRequests/restmerequest.h \
    restRequests/getrequest.h \
    restRequests/restfileuploadrequest.h \
armin's avatar
armin committed
136
137
138
139
140
141
142
143
    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
144
    services/fileservice.h \
armin's avatar
armin committed
145
146
147
148
    services/emojiservice.h \
    ddpRequests/ddplogoutrequest.h \
    rocketchatserverconfig.h \
    CustomModels/usermodel.h \
armin's avatar
armin committed
149
150
151
152
    CustomModels/channelmodel.h \
    container/sortedvector.h \
    container/observablelist.h \
    container/modelobserver.h \
armin's avatar
armin committed
153
    ddpRequests/rocketchatchangeuserpresancedefaultstatus.h \
armin's avatar
armin committed
154
155
156
    config.h \
    CustomModels/messagemodel.h \
    ddpRequests/rocketchatupdatejitsitimeout.h
armin's avatar
armin committed
157

armin's avatar
armin committed
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
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
176
177
        android/androidstatusbarcolor.cpp \
        android/androidfiledialog.cpp
armin's avatar
armin committed
178
179
180
181
182
183
184
185



    HEADERS += android/androidfiledialog.h\
        notifications/android/googlepushnotifications.h\
        notifications/android/androidnotificationreceiver.h\
        android/androidcheckpermissions.h \
        android/androidbadges.h \
armin's avatar
armin committed
186
187
        android/androidstatusbarcolor.h \
        android/androidfiledialog.h
armin's avatar
armin committed
188
189
190
191
192
193
194
195
196
197
198
}


ios{
    QT += gui-private
    RESOURCES += ios.qrc

    SOURCES += websocket/linuxwebsocket/websocketlinux.cpp\
        notifications/ios/applepushnotifications.cpp\
        notifications/ios/iosdevicetokenstorage.cpp\
        segfaulthandler.cpp \
armin's avatar
armin committed
199
200
201
        notifications/ios/iosnotificationreceiver.cpp\
        ios/urlhandler.cpp \

armin's avatar
armin committed
202
203
204
205
206
207
208
209
210

    HEADERS += websocket/linuxwebsocket/websocketlinux.h\
        notifications/ios/applepushnotifications.h\
        notifications/ios/iosdevicetokenstorage.h\
        ios/FileHandlerActivity.h \
        ios/fileopener.h \
        segfaulthandler.h \
        ios/IosGalleryPicker.h \
        ios/shareheplersingelton.h \
armin's avatar
armin committed
211
212
        notifications/ios/iosnotificationreceiver.h \
        ios/urlhandler.h \
armin's avatar
armin committed
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230


    OBJECTIVE_SOURCES += ios/QIOSApplicationDelegate+PushDelegate.mm \
        notifications/ios/DelegateClass.mm \
        ios/FileHandlerActivity.mm \
        ios/IosGalleryPicker.mm \
        ios/fileopener.mm \
        ios/shareheplersingelton.mm


    LIBS += -framework NotificationCenter
    LIBS += -framework UserNotifications

}
CONFIG(release, debug|release) {
    CONFIG  += qt release
    DEFINES += QT_NO_DEBUG_OUTPUT
    DEFINES += QT_NO_DEBUG
armin's avatar
armin committed
231
    CONFIG += ltcg
armin's avatar
armin committed
232
233
234
235
236
237
238
239
240
241
242
243
    # compiler options: O3 optimize
    linux:{
         QMAKE_CXXFLAGS += -O3
    }
    android:{
        QMAKE_CXXFLAGS += -O3
    }
    ios:{
        QMAKE_CXXFLAGS += -O3
    }
}

armin's avatar
fixes    
armin committed
244
245
246
RESOURCES += \
    sql.qrc