forked from markussammallahti/harbour-slackfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
harbour-slackfish.pro
124 lines (110 loc) · 3.28 KB
/
harbour-slackfish.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
# NOTICE:
#
# Application name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, the following needs to be done
# to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
# - translation filenames have to be changed
# App config
TARGET = harbour-slackfish
CONFIG += sailfishapp
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
# Translations
CONFIG += sailfishapp_i18n
TRANSLATIONS += translations/harbour-slackfish-fi.ts
# Notifications
QT += dbus
PKGCONFIG += nemonotifications-qt5
# Includes
INCLUDEPATH += ./QtWebsocket
QT += concurrent
include(vendor/vendor.pri)
VERSION = "1.4.2"
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}\\\"
SOURCES += src/harbour-slackfish.cpp \
src/slackclient.cpp \
src/QtWebsocket/QWsSocket.cpp \
src/QtWebsocket/QWsFrame.cpp \
src/QtWebsocket/functions.cpp \
src/QtWebsocket/QWsHandshake.cpp \
src/networkaccessmanagerfactory.cpp \
src/networkaccessmanager.cpp \
src/slackstream.cpp \
src/storage.cpp \
src/messageformatter.cpp \
src/notificationlistener.cpp \
src/dbusadaptor.cpp \
src/filemodel.cpp \
src/slackauthenticator.cpp \
src/requestutils.cpp \
src/slackclientconfig.cpp \
src/slackconfig.cpp
OTHER_FILES += qml/harbour-slackfish.qml \
qml/cover/CoverPage.qml \
rpm/harbour-slackfish.changes.in \
rpm/harbour-slackfish.spec \
rpm/harbour-slackfish.yaml \
translations/*.ts \
harbour-slackfish.desktop \
harbour-slackfish.png
HEADERS += \
src/slackclient.h \
src/QtWebsocket/QWsSocket.h \
src/QtWebsocket/QWsFrame.h \
src/QtWebsocket/functions.h \
src/QtWebsocket/QWsHandshake.h \
src/networkaccessmanagerfactory.h \
src/networkaccessmanager.h \
src/slackstream.h \
src/storage.h \
src/messageformatter.h \
src/notificationlistener.h \
src/dbusadaptor.h \
src/filemodel.h \
src/slackauthenticator.h \
src/requestutils.h \
src/slackclientconfig.h \
src/slackconfig.h
DISTFILES += \
qml/pages/LoginPage.qml \
qml/pages/Loader.qml \
qml/pages/ChannelList.qml \
qml/pages/ChannelList.js \
qml/pages/Channel.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/UserView.qml
RESOURCES += \
data.qrc