2017-11-12 17:21:50 +01:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2016-12-28T18:23:35
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2018-01-02 03:44:52 +01:00
|
|
|
QT += core gui network multimedia svg
|
2017-11-12 17:21:50 +01:00
|
|
|
CONFIG += communi
|
|
|
|
COMMUNI += core model util
|
|
|
|
CONFIG += c++14
|
2017-12-23 21:18:13 +01:00
|
|
|
PRECOMPILED_HEADER = precompiled_header.hpp
|
2017-11-12 17:21:50 +01:00
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
# Include ourself
|
|
|
|
INCLUDEPATH += src/
|
|
|
|
|
|
|
|
TARGET = chatterino
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# Define warning flags for Chatterino
|
|
|
|
win32-msvc* {
|
2017-12-22 15:13:42 +01:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON = /W4
|
2017-11-12 17:21:50 +01:00
|
|
|
# 4714 - function marked as __forceinline not inlined
|
|
|
|
# 4996 - occurs when the compiler encounters a function or variable that is marked as deprecated.
|
|
|
|
# These functions may have a different preferred name, may be insecure or have
|
|
|
|
# a more secure variant, or may be obsolete.
|
2017-12-22 15:13:42 +01:00
|
|
|
# 4505 - unreferenced local version has been removed
|
|
|
|
# 4127 - conditional expression is constant
|
|
|
|
# 4503 - decorated name length exceeded, name was truncated
|
2018-01-05 02:01:08 +01:00
|
|
|
# 4100 - unreferences formal parameter
|
2017-11-12 17:21:50 +01:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4714
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4996
|
2017-12-22 15:13:42 +01:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4505
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4127
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4503
|
2018-01-05 02:01:08 +01:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4100
|
2017-12-22 15:13:42 +01:00
|
|
|
|
2017-11-12 17:21:50 +01:00
|
|
|
} else {
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON = -Wall
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-function
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-switch
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-declarations
|
|
|
|
}
|
|
|
|
|
|
|
|
# do not use windows min/max macros
|
|
|
|
win32 {
|
|
|
|
DEFINES += NOMINMAX
|
|
|
|
}
|
|
|
|
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
src/main.cpp \
|
|
|
|
src/application.cpp \
|
|
|
|
src/channel.cpp \
|
|
|
|
src/channeldata.cpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/ircmanager.cpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/messages/link.cpp \
|
|
|
|
src/messages/message.cpp \
|
|
|
|
src/widgets/notebook.cpp \
|
|
|
|
src/widgets/helper/notebookbutton.cpp \
|
|
|
|
src/widgets/helper/notebooktab.cpp \
|
|
|
|
src/widgets/scrollbar.cpp \
|
|
|
|
src/widgets/helper/scrollbarhighlight.cpp \
|
|
|
|
src/widgets/settingsdialog.cpp \
|
|
|
|
src/widgets/helper/settingsdialogtab.cpp \
|
|
|
|
src/widgets/textinputdialog.cpp \
|
|
|
|
src/logging/loggingmanager.cpp \
|
|
|
|
src/logging/loggingchannel.cpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/windowmanager.cpp \
|
|
|
|
src/singletons/channelmanager.cpp \
|
|
|
|
src/singletons/fontmanager.cpp \
|
|
|
|
src/singletons/settingsmanager.cpp \
|
|
|
|
src/singletons/emotemanager.cpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/messages/messagebuilder.cpp \
|
|
|
|
src/twitch/twitchmessagebuilder.cpp \
|
|
|
|
src/widgets/titlebar.cpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/accountmanager.cpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/twitch/twitchuser.cpp \
|
|
|
|
src/ircaccount.cpp \
|
|
|
|
src/widgets/accountpopup.cpp \
|
|
|
|
src/widgets/basewidget.cpp \
|
|
|
|
src/widgets/helper/resizingtextedit.cpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/completionmanager.cpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/widgets/logindialog.cpp \
|
|
|
|
src/widgets/qualitypopup.cpp \
|
|
|
|
src/widgets/emotepopup.cpp \
|
|
|
|
src/widgets/helper/channelview.cpp \
|
|
|
|
src/twitch/twitchchannel.cpp \
|
|
|
|
src/widgets/helper/rippleeffectlabel.cpp \
|
|
|
|
src/widgets/helper/rippleeffectbutton.cpp \
|
|
|
|
src/messages/messagecolor.cpp \
|
|
|
|
src/util/networkmanager.cpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/commandmanager.cpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/widgets/split.cpp \
|
|
|
|
src/widgets/helper/splitinput.cpp \
|
|
|
|
src/widgets/helper/splitheader.cpp \
|
|
|
|
src/widgets/splitcontainer.cpp \
|
|
|
|
src/widgets/helper/droppreview.cpp \
|
|
|
|
src/widgets/window.cpp \
|
2017-12-19 02:16:01 +01:00
|
|
|
src/widgets/helper/splitcolumn.cpp \
|
|
|
|
src/widgets/accountswitchwidget.cpp \
|
2017-12-23 22:17:38 +01:00
|
|
|
src/widgets/accountswitchpopupwidget.cpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/widgets/tooltipwidget.cpp \
|
|
|
|
src/singletons/thememanager.cpp \
|
|
|
|
src/twitch/twitchaccountmanager.cpp \
|
2017-12-31 02:21:33 +01:00
|
|
|
src/singletons/helper/completionmodel.cpp \
|
2018-01-01 23:54:54 +01:00
|
|
|
src/singletons/resourcemanager.cpp \
|
2018-01-05 02:23:49 +01:00
|
|
|
src/singletons/helper/ircmessagehandler.cpp \
|
2018-01-05 13:42:23 +01:00
|
|
|
src/singletons/pathmanager.cpp \
|
2018-01-11 20:16:25 +01:00
|
|
|
src/widgets/helper/searchpopup.cpp \
|
|
|
|
src/messages/messageelement.cpp \
|
|
|
|
src/messages/image.cpp \
|
|
|
|
src/messages/layouts/messagelayout.cpp \
|
|
|
|
src/messages/layouts/messagelayoutelement.cpp \
|
2018-01-12 23:09:05 +01:00
|
|
|
src/messages/layouts/messagelayoutcontainer.cpp \
|
|
|
|
src/widgets/settingspages/appearancepage.cpp \
|
|
|
|
src/widgets/settingspages/settingspage.cpp \
|
|
|
|
src/widgets/settingspages/behaviourpage.cpp \
|
|
|
|
src/widgets/settingspages/commandpage.cpp \
|
|
|
|
src/widgets/settingspages/emotespage.cpp \
|
|
|
|
src/widgets/settingspages/highlightingpage.cpp \
|
|
|
|
src/widgets/settingspages/accountspage.cpp \
|
|
|
|
src/widgets/settingspages/aboutpage.cpp \
|
|
|
|
src/widgets/settingspages/moderationpage.cpp \
|
2018-01-14 21:55:36 +01:00
|
|
|
src/widgets/settingspages/logspage.cpp \
|
2018-01-17 14:14:31 +01:00
|
|
|
src/widgets/basewindow.cpp \
|
|
|
|
src/singletons/helper/moderationaction.cpp
|
2017-11-12 17:21:50 +01:00
|
|
|
|
|
|
|
HEADERS += \
|
2017-12-23 21:18:13 +01:00
|
|
|
src/precompiled_headers.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/asyncexec.hpp \
|
|
|
|
src/channel.hpp \
|
2017-12-31 22:58:35 +01:00
|
|
|
src/util/concurrentmap.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/emojis.hpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/ircmanager.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/messages/link.hpp \
|
|
|
|
src/messages/message.hpp \
|
|
|
|
src/twitch/emotevalue.hpp \
|
|
|
|
src/widgets/notebook.hpp \
|
|
|
|
src/widgets/helper/notebookbutton.hpp \
|
|
|
|
src/widgets/helper/notebooktab.hpp \
|
|
|
|
src/widgets/scrollbar.hpp \
|
|
|
|
src/widgets/helper/scrollbarhighlight.hpp \
|
|
|
|
src/widgets/settingsdialog.hpp \
|
|
|
|
src/widgets/helper/settingsdialogtab.hpp \
|
|
|
|
src/widgets/helper/signallabel.hpp \
|
|
|
|
src/widgets/textinputdialog.hpp \
|
|
|
|
src/widgets/helper/resizingtextedit.hpp \
|
|
|
|
src/messages/limitedqueue.hpp \
|
|
|
|
src/messages/limitedqueuesnapshot.hpp \
|
|
|
|
src/logging/loggingmanager.hpp \
|
|
|
|
src/logging/loggingchannel.hpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/channelmanager.hpp \
|
|
|
|
src/singletons/windowmanager.hpp \
|
|
|
|
src/singletons/settingsmanager.hpp \
|
|
|
|
src/singletons/fontmanager.hpp \
|
|
|
|
src/singletons/emotemanager.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/util/urlfetch.hpp \
|
|
|
|
src/messages/messageparseargs.hpp \
|
|
|
|
src/messages/messagebuilder.hpp \
|
|
|
|
src/twitch/twitchmessagebuilder.hpp \
|
|
|
|
src/widgets/titlebar.hpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/accountmanager.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/twitch/twitchuser.hpp \
|
|
|
|
src/ircaccount.hpp \
|
|
|
|
src/widgets/accountpopup.hpp \
|
|
|
|
src/util/distancebetweenpoints.hpp \
|
|
|
|
src/widgets/basewidget.hpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/completionmanager.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/widgets/helper/channelview.hpp \
|
|
|
|
src/twitch/twitchchannel.hpp \
|
|
|
|
src/widgets/helper/rippleeffectbutton.hpp \
|
|
|
|
src/widgets/helper/rippleeffectlabel.hpp \
|
|
|
|
src/widgets/qualitypopup.hpp \
|
|
|
|
src/widgets/emotepopup.hpp \
|
|
|
|
src/messages/messagecolor.hpp \
|
|
|
|
src/util/nativeeventhelper.hpp \
|
|
|
|
src/debug/log.hpp \
|
|
|
|
src/util/benchmark.hpp \
|
|
|
|
src/util/networkmanager.hpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/commandmanager.hpp \
|
2017-11-12 17:21:50 +01:00
|
|
|
src/widgets/split.hpp \
|
|
|
|
src/widgets/helper/splitheader.hpp \
|
|
|
|
src/widgets/helper/splitinput.hpp \
|
|
|
|
src/widgets/window.hpp \
|
|
|
|
src/widgets/splitcontainer.hpp \
|
|
|
|
src/widgets/helper/droppreview.hpp \
|
2017-12-17 00:01:42 +01:00
|
|
|
src/widgets/helper/splitcolumn.hpp \
|
2017-12-17 17:01:37 +01:00
|
|
|
src/util/irchelpers.hpp \
|
2017-12-19 02:16:01 +01:00
|
|
|
src/util/helpers.hpp \
|
|
|
|
src/widgets/accountswitchwidget.hpp \
|
2017-12-19 16:13:02 +01:00
|
|
|
src/widgets/accountswitchpopupwidget.hpp \
|
2017-12-23 21:18:13 +01:00
|
|
|
src/const.hpp \
|
2017-12-23 22:17:38 +01:00
|
|
|
src/widgets/tooltipwidget.hpp \
|
2017-12-23 21:18:13 +01:00
|
|
|
src/precompiled_headers.hpp \
|
2017-12-31 00:50:07 +01:00
|
|
|
src/singletons/thememanager.hpp \
|
|
|
|
src/twitch/twitchaccountmanager.hpp \
|
|
|
|
src/singletons/helper/completionmodel.hpp \
|
2017-12-31 02:21:33 +01:00
|
|
|
src/singletons/helper/chatterinosetting.hpp \
|
2017-12-31 22:58:35 +01:00
|
|
|
src/singletons/resourcemanager.hpp \
|
2018-01-01 23:54:54 +01:00
|
|
|
src/util/emotemap.hpp \
|
2018-01-04 01:52:37 +01:00
|
|
|
src/singletons/helper/ircmessagehandler.hpp \
|
|
|
|
src/util/serialize-custom.hpp \
|
2018-01-04 23:50:30 +01:00
|
|
|
src/messages/highlightphrase.hpp \
|
2018-01-05 02:23:49 +01:00
|
|
|
src/messages/selection.hpp \
|
2018-01-05 13:42:23 +01:00
|
|
|
src/singletons/pathmanager.hpp \
|
2018-01-06 20:24:04 +01:00
|
|
|
src/widgets/helper/searchpopup.hpp \
|
2018-01-11 20:16:25 +01:00
|
|
|
src/widgets/helper/shortcut.hpp \
|
|
|
|
src/messages/messageelement.hpp \
|
|
|
|
src/messages/image.hpp \
|
|
|
|
src/messages/layouts/messagelayout.hpp \
|
|
|
|
src/messages/layouts/messagelayoutelement.hpp \
|
|
|
|
src/messages/layouts/messagelayoutcontainer.hpp \
|
2018-01-12 23:09:05 +01:00
|
|
|
src/util/property.hpp \
|
|
|
|
src/widgets/settingspages/appearancepage.hpp \
|
|
|
|
src/widgets/settingspages/settingspage.hpp \
|
|
|
|
src/util/layoutcreator.hpp \
|
|
|
|
src/widgets/settingspages/behaviourpage.hpp \
|
|
|
|
src/widgets/settingspages/commandpage.hpp \
|
|
|
|
src/widgets/settingspages/emotespage.hpp \
|
|
|
|
src/widgets/settingspages/highlightingpage.hpp \
|
|
|
|
src/widgets/settingspages/accountspage.hpp \
|
|
|
|
src/widgets/settingspages/aboutpage.hpp \
|
|
|
|
src/widgets/settingspages/moderationpage.hpp \
|
2018-01-14 21:55:36 +01:00
|
|
|
src/widgets/settingspages/logspage.hpp \
|
2018-01-17 14:14:31 +01:00
|
|
|
src/widgets/basewindow.hpp \
|
|
|
|
src/singletons/helper/moderationaction.hpp
|
2017-11-12 17:21:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
PRECOMPILED_HEADER =
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
resources/resources.qrc
|
|
|
|
|
|
|
|
DISTFILES +=
|
|
|
|
|
|
|
|
# Include boost
|
|
|
|
win32 {
|
2018-01-07 03:24:36 +01:00
|
|
|
isEmpty(BOOST_DIRECTORY) {
|
|
|
|
message(Using default boost directory C:\\local\\boost\\)
|
|
|
|
BOOST_DIRECTORY = C:\local\boost\
|
|
|
|
}
|
|
|
|
|
|
|
|
INCLUDEPATH += $$BOOST_DIRECTORY
|
2017-11-12 17:21:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
LIBS += -luser32
|
|
|
|
LIBS += -lgdi32
|
|
|
|
}
|
|
|
|
|
|
|
|
# Optional dependency on windows sdk 7.1
|
2017-12-31 00:50:07 +01:00
|
|
|
!contains(QMAKE_TARGET.arch, x86_64) {
|
|
|
|
win32:exists(C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\Windows.h) {
|
|
|
|
LIBS += -L"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" \
|
|
|
|
-ldwmapi \
|
|
|
|
-lgdi32
|
2017-11-12 17:21:50 +01:00
|
|
|
|
2017-12-31 00:50:07 +01:00
|
|
|
DEFINES += "USEWINSDK"
|
|
|
|
}
|
2017-11-12 17:21:50 +01:00
|
|
|
}
|
|
|
|
|
2018-01-11 20:26:32 +01:00
|
|
|
win32::exists(C:\fourtf) {
|
|
|
|
DEFINES += "OHHEYITSFOURTF"
|
|
|
|
}
|
|
|
|
|
2017-11-12 17:21:50 +01:00
|
|
|
macx {
|
|
|
|
INCLUDEPATH += /usr/local/include
|
|
|
|
}
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
forms/accountpopupform.ui
|
|
|
|
|
|
|
|
werr {
|
|
|
|
QMAKE_CXXFLAGS += -Werror
|
|
|
|
|
|
|
|
message("Enabling error on warning")
|
|
|
|
}
|
|
|
|
|
|
|
|
# External dependencies
|
|
|
|
include(dependencies/rapidjson.pri)
|
|
|
|
include(dependencies/settings.pri)
|
|
|
|
include(dependencies/signals.pri)
|
|
|
|
include(dependencies/humanize.pri)
|
|
|
|
include(dependencies/fmt.pri)
|
|
|
|
DEFINES += IRC_NAMESPACE=Communi
|
|
|
|
include(dependencies/libcommuni.pri)
|
|
|
|
|
2018-01-02 03:44:52 +01:00
|
|
|
|
2018-01-04 00:16:48 +01:00
|
|
|
#ICONs
|
2018-01-02 03:44:52 +01:00
|
|
|
macx:ICON = resources/images/chatterino2.icns
|
2018-01-04 00:16:48 +01:00
|
|
|
win32:RC_FILE = resources/windows.rc
|