-
Notifications
You must be signed in to change notification settings - Fork 4
/
harbour-sailslack.pro
116 lines (100 loc) · 2.95 KB
/
harbour-sailslack.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
# App config
TARGET = harbour-sailslack
CONFIG += link_pkgconfig
PKGCONFIG += qt5embedwidget
CONFIG += sailfishapp
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
# Translations
CONFIG += sailfishapp_i18n
#TRANSLATIONS += translations/harbour-sailslack-fi.ts
# Notifications
QT += dbus
PKGCONFIG += nemonotifications-qt5 connman-qt5
CONFIG += sailfish-components-webview-qt5
QT += concurrent dbus websockets
include(vendor/vendor.pri)
VERSION = "0.3"
DEFINES += APP_VERSION=\\\"$${VERSION}\\\"
# Check slack config
CLIENT_ID = $$slack_client_id
CLIENT_SECRET = $$slack_client_secret
if(isEmpty(CLIENT_ID)) {
error("No client id defined")
}
if(isEmpty(CLIENT_SECRET)) {
error("No client secret defined")
}
DEFINES += SLACK_CLIENT_ID=\\\"$${CLIENT_ID}\\\"
DEFINES += SLACK_CLIENT_SECRET=\\\"$${CLIENT_SECRET}\\\"
DBUS_ADAPTORS += src/harbour.sailslack.xml
TRANSLATIONS += translations/harbour-sailslack.ts \
translations/harbour-sailslack-sv.ts \
translations/harbour-sailslack-bg.ts
SOURCES += src/harbour-sailslack.cpp \
src/authserver.cpp \
src/slackclient.cpp \
src/networkaccessmanagerfactory.cpp \
src/networkaccessmanager.cpp \
src/slackstream.cpp \
src/storage.cpp \
src/messageformatter.cpp \
src/notificationlistener.cpp \
src/filemodel.cpp \
src/slackauthenticator.cpp \
src/requestutils.cpp \
src/slackclientconfig.cpp \
src/slackconfig.cpp \
src/teamsmodel.cpp
OTHER_FILES += qml/harbour-sailslack.qml \
qml/cover/CoverPage.qml \
rpm/harbour-sailslack.changes.in \
rpm/harbour-sailslack.spec \
rpm/harbour-sailslack.yaml \
harbour-sailslack.desktop \
harbour-sailslack.png
HEADERS += \
src/authserver.h \
src/slackclient.h \
src/networkaccessmanagerfactory.h \
src/networkaccessmanager.h \
src/slackstream.h \
src/storage.h \
src/messageformatter.h \
src/notificationlistener.h \
src/filemodel.h \
src/slackauthenticator.h \
src/requestutils.h \
src/slackclientconfig.h \
src/slackconfig.h \
src/teamsmodel.h
DISTFILES += \
qml/pages/LoginPage.qml \
qml/pages/Loader.qml \
qml/pages/ChannelList.qml \
qml/pages/ChannelList.js \
qml/pages/Channel.qml \
qml/pages/LoginWebView.qml \
qml/pages/MessageListItem.qml \
qml/pages/MessageInput.qml \
qml/pages/Image.qml \
qml/pages/ConnectionPanel.qml \
qml/pages/ChannelListView.qml \
qml/pages/MessageListView.qml \
qml/pages/About.qml \
qml/pages/RichTextLabel.qml \
qml/pages/AttachmentFieldGrid.qml \
qml/pages/Attachment.qml \
qml/pages/Spacer.qml \
qml/pages/ChannelSelect.qml \
qml/pages/Channel.js \
qml/pages/GroupLeaveDialog.qml \
qml/pages/ChatSelect.qml \
qml/dialogs/ImagePicker.qml \
qml/pages/FileSend.qml \
data/emoji.json \
qml/pages/TeamList.qml \
qml/pages/TeamList.js \
qml/pages/Thread.qml \
qml/pages/UserView.qml
RESOURCES += \
data.qrc