forked from Venemo/irc-chatter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
irc-chatter.pro
164 lines (146 loc) · 5.56 KB
/
irc-chatter.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
TARGET = irc-chatter
TEMPLATE = app
VERSION = 0.3.2
QT = core gui network
lessThan(QT_MAJOR_VERSION, 5) {
lessThan(QT_MAJOR_VERSION, 4) | lessThan(QT_MINOR_VERSION, 7) {
error(IRC Chatter requires Qt 4.7 or newer but Qt $$[QT_VERSION] was detected.)
}
QT += declarative
} else {
QT += widgets quick
}
DEFINES += \
COMMUNI_STATIC \
HAVE_ICU \
APP_VERSION=\\\"$$VERSION\\\"
HEADERS += \
helpers/util.h \
helpers/appeventlistener.h \
model/channelmodel.h \
model/servermodel.h \
model/ircmodel.h \
helpers/qobjectlistmodel.h \
model/settings/appsettings.h \
model/settings/serversettings.h \
clients/abstractircclient.h \
clients/communiircclient.h \
helpers/commandparser.h \
helpers/channelhelper.h \
helpers/notifier.h \
model/channelmodelcollection.h
SOURCES += \
main.cpp \
helpers/appeventlistener.cpp \
model/channelmodel.cpp \
model/ircmodel.cpp \
model/servermodel.cpp \
model/settings/appsettings.cpp \
model/settings/serversettings.cpp \
clients/abstractircclient.cpp \
clients/communiircclient.cpp \
helpers/commandparser.cpp \
helpers/channelhelper.cpp \
helpers/notifier.cpp \
helpers/qobjectlistmodel.cpp \
model/channelmodelcollection.cpp
RESOURCES += \
ui-meego.qrc \
ui-desktop.qrc
# Licensing and other information
OTHER_FILES += \
LICENSE \
LICENSE-DOCS \
AUTHORS \
qml/desktop/misc/ChannelSwitcherButton.qml \
qml/desktop/misc/ServerSettingEntry.qml \
qml/desktop/components/Switch.qml \
qml/desktop/components/Dialog.qml \
qml/desktop/components/Menu.qml \
qml/desktop/components/MenuButton.qml \
qml/desktop/dialogs/ServerSettingsDialog.qml \
qml/desktop/dialogs/AboutDialog.qml \
qml/desktop/components/QueryDialog.qml \
qml/desktop/pages/SettingsPage.qml \
qml/desktop/misc/TitleLabel.qml \
qml/desktop/components/ComboBox.qml
# User interface for MeeGo
OTHER_FILES += \
qml/meego/AppWindow.qml \
qml/meego/components/TitleLabel.qml \
qml/meego/components/WorkingSelectionDialog.qml \
qml/meego/components/CommonDialog.qml \
qml/meego/components/ServerSettingsList.qml \
qml/meego/pages/StartPage.qml \
qml/meego/pages/ChatPage.qml \
qml/meego/pages/SettingsPage.qml \
qml/meego/pages/ManageServersPage.qml \
qml/meego/sheets/JoinSheet.qml \
qml/meego/sheets/ServerSettingsSheet.qml
# User interface for desktop
OTHER_FILES += \
qml/desktop/AppWindow.qml \
qml/desktop/components/Button.qml \
qml/desktop/components/Bubble.qml \
qml/desktop/components/Sidebar.qml \
qml/desktop/components/TextField.qml \
qml/desktop/components/VerticalScrollBar.qml \
qml/desktop/components/Page.qml \
qml/desktop/pages/StartPage.qml \
qml/desktop/pages/ChatPage.qml
CONFIG += meegotouch
unix {
QMAKE_CXXFLAGS += -fPIC -fvisibility=hidden -fvisibility-inlines-hidden
QMAKE_LFLAGS += -pie -rdynamic
QT += dbus
INSTALLS = target
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/Communi
DEPENDPATH += $$[QT_INSTALL_HEADERS]/Communi
LIBS += -lCommuni
DEFINES += USE_DESKTOP_UI
target.path=/usr/bin
# TODO: create generic desktop and icon files
}
# for MeeGo 1.2 Harmattan
contains(MEEGO_EDITION, harmattan) {
DEFINES += MEEGO_EDITION_HARMATTAN HAVE_APPLAUNCHERD HAVE_MNOTIFICATION
CONFIG += qdeclarative-boostable link_pkgconfig
# Note: you will need to have Communi installed in your sysroot for this to build correctly
PKGCONFIG += qdeclarative-boostable
INCLUDEPATH += /usr/include/applauncherd /usr/include/Communi
LIBS += -lCommuni
DEFINES += USE_MEEGO_UI DEFAULT_CHANNELS=\\\"#harmattan, #irc-chatter\\\"
# IRC Chatter app
target.path=/opt/irc-chatter
# Icon
icon.files = installables/harmattan/irc-chatter-harmattan-icon.png
icon.path = /usr/share/icons/hicolor/80x80/apps
desktopfile.files = installables/harmattan/irc-chatter-harmattan.desktop
desktopfile.path = /usr/share/applications
# Communi libraries
communilib.files = installables/harmattan/libCommuni.so.1
communilib.path = /opt/irc-chatter
communiuchardetplugin.files = installables/harmattan/libuchardetplugin.so
communiuchardetplugin.path = /opt/irc-chatter/plugins/communi
# Portrait and landscape splash screens
splashes.files = installables/harmattan/irc-chatter-splash-harmattan-portrait.jpg installables/harmattan/irc-chatter-splash-harmattan-landscape.jpg
splashes.path = /usr/share/irc-chatter
# Notification icons
notifyicons.files = installables/harmattan/irc-chatter-harmattan-icon.png installables/harmattan/irc-chatter-harmattan-lpm-icon.png installables/harmattan/irc-chatter-harmattan-statusbar-icon.png
notifyicons.path = /usr/share/themes/blanco/meegotouch/icons
# Notification event type config
notifyconfig.files = installables/harmattan/irc-chatter.irc.conf
notifyconfig.path = /usr/share/meegotouch/notifications/eventtypes
INSTALLS = target splashes notifyicons icon notifyconfig desktopfile communilib communiuchardetplugin
contains(DEFINES, HARMATTAN_DEV) {
INSTALLS = target communilib communiuchardetplugin
target.path = /home/developer
communilib.path = /home/developer
communiuchardetplugin.path = /home/developer/plugins/communi
QMAKE_LFLAGS += -Wl,--rpath=/home/developer,-O3
message("Using the Harmattan development configuration.")
} else {
QMAKE_LFLAGS += -Wl,--rpath=/opt/irc-chatter,-O3
}
}
QMAKE_CLEAN += Makefile build-stamp configure-stamp irc-chatter