2017-04-24 23:00:26 +02:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2016-12-28T18:23:35
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
2017-07-31 00:37:22 +02:00
|
|
|
QT += core gui network multimedia
|
2017-04-24 23:00:26 +02:00
|
|
|
CONFIG += communi
|
|
|
|
COMMUNI += core model util
|
|
|
|
CONFIG += c++14
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2017-06-06 14:48:14 +02:00
|
|
|
# Include ourself
|
|
|
|
INCLUDEPATH += src/
|
|
|
|
|
2017-04-24 23:00:26 +02:00
|
|
|
TARGET = chatterino
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
2017-05-27 15:47:04 +02:00
|
|
|
# Define warning flags for Chatterino
|
2017-05-27 23:35:58 +02:00
|
|
|
win32-msvc* {
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON = -W4
|
2017-06-06 14:48:14 +02: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-05-28 00:35:38 +02:00
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4714
|
|
|
|
QMAKE_CXXFLAGS_WARN_ON += /wd4996
|
2017-05-27 23:35:58 +02: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
|
|
|
|
}
|
2017-05-27 15:47:04 +02:00
|
|
|
|
2017-04-24 23:00:26 +02:00
|
|
|
# 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
|
|
|
|
|
2017-06-06 14:48:14 +02:00
|
|
|
SOURCES += \
|
|
|
|
src/main.cpp \
|
2017-06-13 21:13:58 +02:00
|
|
|
src/application.cpp \
|
2017-06-06 14:48:14 +02:00
|
|
|
src/channel.cpp \
|
2017-06-15 23:13:01 +02:00
|
|
|
src/channeldata.cpp \
|
2017-06-06 14:48:14 +02:00
|
|
|
src/colorscheme.cpp \
|
|
|
|
src/ircmanager.cpp \
|
|
|
|
src/messages/lazyloadedimage.cpp \
|
|
|
|
src/messages/link.cpp \
|
|
|
|
src/messages/message.cpp \
|
|
|
|
src/messages/word.cpp \
|
|
|
|
src/messages/wordpart.cpp \
|
|
|
|
src/resources.cpp \
|
|
|
|
src/widgets/chatwidget.cpp \
|
|
|
|
src/widgets/chatwidgetheader.cpp \
|
|
|
|
src/widgets/chatwidgetinput.cpp \
|
|
|
|
src/widgets/mainwindow.cpp \
|
|
|
|
src/widgets/notebook.cpp \
|
|
|
|
src/widgets/notebookbutton.cpp \
|
|
|
|
src/widgets/notebookpage.cpp \
|
|
|
|
src/widgets/notebookpagedroppreview.cpp \
|
|
|
|
src/widgets/notebooktab.cpp \
|
|
|
|
src/widgets/scrollbar.cpp \
|
|
|
|
src/widgets/scrollbarhighlight.cpp \
|
|
|
|
src/widgets/settingsdialog.cpp \
|
|
|
|
src/widgets/settingsdialogtab.cpp \
|
|
|
|
src/widgets/textinputdialog.cpp \
|
|
|
|
src/messages/messageref.cpp \
|
|
|
|
src/logging/loggingmanager.cpp \
|
|
|
|
src/logging/loggingchannel.cpp \
|
|
|
|
src/windowmanager.cpp \
|
|
|
|
src/channelmanager.cpp \
|
|
|
|
src/fontmanager.cpp \
|
|
|
|
src/settingsmanager.cpp \
|
|
|
|
src/emotemanager.cpp \
|
|
|
|
src/messages/messagebuilder.cpp \
|
|
|
|
src/twitch/twitchmessagebuilder.cpp \
|
|
|
|
src/twitch/twitchparsemessage.cpp \
|
|
|
|
src/widgets/titlebar.cpp \
|
|
|
|
src/appdatapath.cpp \
|
|
|
|
src/accountmanager.cpp \
|
|
|
|
src/twitch/twitchuser.cpp \
|
|
|
|
src/ircaccount.cpp \
|
2017-06-26 15:53:43 +02:00
|
|
|
src/widgets/accountpopup.cpp \
|
2017-07-09 00:09:02 +02:00
|
|
|
src/widgets/basewidget.cpp \
|
2017-07-09 17:58:59 +02:00
|
|
|
src/widgets/resizingtextedit.cpp \
|
2017-07-28 19:46:53 +02:00
|
|
|
src/completionmanager.cpp \
|
2017-09-11 23:35:59 +02:00
|
|
|
src/widgets/logindialog.cpp \
|
2017-09-15 17:23:49 +02:00
|
|
|
src/widgets/qualitypopup.cpp \
|
2017-09-16 00:05:06 +02:00
|
|
|
src/widgets/emotepopup.cpp \
|
|
|
|
src/widgets/channelview.cpp \
|
2017-09-16 16:20:10 +02:00
|
|
|
src/twitch/twitchchannel.cpp \
|
|
|
|
src/widgets/rippleeffectlabel.cpp \
|
2017-09-21 00:54:10 +02:00
|
|
|
src/widgets/rippleeffectbutton.cpp \
|
|
|
|
src/messages/messagecolor.cpp
|
2017-04-24 23:00:26 +02:00
|
|
|
|
|
|
|
HEADERS += \
|
2017-06-11 09:31:45 +02:00
|
|
|
src/asyncexec.hpp \
|
|
|
|
src/channel.hpp \
|
|
|
|
src/colorscheme.hpp \
|
|
|
|
src/concurrentmap.hpp \
|
|
|
|
src/emojis.hpp \
|
|
|
|
src/ircmanager.hpp \
|
|
|
|
src/messages/lazyloadedimage.hpp \
|
|
|
|
src/messages/link.hpp \
|
|
|
|
src/messages/message.hpp \
|
|
|
|
src/messages/word.hpp \
|
|
|
|
src/messages/wordpart.hpp \
|
|
|
|
src/resources.hpp \
|
|
|
|
src/setting.hpp \
|
|
|
|
src/twitch/emotevalue.hpp \
|
|
|
|
src/widgets/chatwidget.hpp \
|
|
|
|
src/widgets/chatwidgetheader.hpp \
|
|
|
|
src/widgets/chatwidgetinput.hpp \
|
|
|
|
src/widgets/mainwindow.hpp \
|
|
|
|
src/widgets/notebook.hpp \
|
|
|
|
src/widgets/notebookbutton.hpp \
|
|
|
|
src/widgets/notebookpage.hpp \
|
|
|
|
src/widgets/notebookpagedroppreview.hpp \
|
|
|
|
src/widgets/notebooktab.hpp \
|
|
|
|
src/widgets/scrollbar.hpp \
|
|
|
|
src/widgets/scrollbarhighlight.hpp \
|
|
|
|
src/widgets/settingsdialog.hpp \
|
|
|
|
src/widgets/settingsdialogtab.hpp \
|
|
|
|
src/widgets/signallabel.hpp \
|
|
|
|
src/widgets/textinputdialog.hpp \
|
|
|
|
src/widgets/resizingtextedit.hpp \
|
|
|
|
src/settingssnapshot.hpp \
|
|
|
|
src/messages/limitedqueue.hpp \
|
|
|
|
src/messages/limitedqueuesnapshot.hpp \
|
|
|
|
src/messages/messageref.hpp \
|
|
|
|
src/logging/loggingmanager.hpp \
|
|
|
|
src/logging/loggingchannel.hpp \
|
|
|
|
src/channelmanager.hpp \
|
|
|
|
src/windowmanager.hpp \
|
|
|
|
src/settingsmanager.hpp \
|
|
|
|
src/fontmanager.hpp \
|
|
|
|
src/emotemanager.hpp \
|
|
|
|
src/util/urlfetch.hpp \
|
|
|
|
src/messages/messageparseargs.hpp \
|
|
|
|
src/messages/messagebuilder.hpp \
|
|
|
|
src/twitch/twitchmessagebuilder.hpp \
|
|
|
|
src/twitch/twitchparsemessage.hpp \
|
|
|
|
src/widgets/titlebar.hpp \
|
|
|
|
src/appdatapath.hpp \
|
|
|
|
src/accountmanager.hpp \
|
|
|
|
src/twitch/twitchuser.hpp \
|
|
|
|
src/ircaccount.hpp \
|
|
|
|
src/widgets/accountpopup.hpp \
|
2017-06-26 15:53:43 +02:00
|
|
|
src/util/distancebetweenpoints.hpp \
|
2017-07-09 17:58:59 +02:00
|
|
|
src/widgets/basewidget.hpp \
|
2017-09-11 23:35:59 +02:00
|
|
|
src/completionmanager.hpp \
|
2017-09-16 00:05:06 +02:00
|
|
|
src/widgets/channelview.hpp \
|
2017-09-16 16:20:10 +02:00
|
|
|
src/twitch/twitchchannel.hpp \
|
|
|
|
src/widgets/rippleeffectbutton.hpp \
|
|
|
|
src/widgets/rippleeffectlabel.hpp \
|
|
|
|
src/widgets/qualitypopup.hpp \
|
2017-09-21 00:54:10 +02:00
|
|
|
src/widgets/emotepopup.hpp \
|
2017-09-22 00:50:43 +02:00
|
|
|
src/messages/messagecolor.hpp \
|
2017-09-24 19:23:07 +02:00
|
|
|
src/util/nativeeventhelper.hpp \
|
|
|
|
src/debug/log.hpp
|
2017-04-24 23:00:26 +02:00
|
|
|
|
|
|
|
PRECOMPILED_HEADER =
|
|
|
|
|
|
|
|
RESOURCES += \
|
2017-06-06 14:48:14 +02:00
|
|
|
resources/resources.qrc
|
2017-04-24 23:00:26 +02:00
|
|
|
|
|
|
|
DISTFILES +=
|
|
|
|
|
|
|
|
# Include boost
|
|
|
|
win32 {
|
|
|
|
INCLUDEPATH += C:\local\boost\
|
|
|
|
}
|
|
|
|
|
2017-09-24 19:23:07 +02:00
|
|
|
win32 {
|
|
|
|
LIBS += -luser32
|
|
|
|
LIBS += -lgdi32
|
|
|
|
}
|
|
|
|
|
2017-04-24 23:00:26 +02:00
|
|
|
# Optional dependency on windows sdk 7.1
|
2017-09-21 17:34:41 +02:00
|
|
|
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-08-05 16:23:43 +02:00
|
|
|
# SOURCES += platform/borderless/qwinwidget.cpp \
|
|
|
|
# platform/borderless/winnativewindow.cpp \
|
|
|
|
# platform/borderless/widget.cpp
|
2017-09-21 17:34:41 +02:00
|
|
|
|
2017-08-05 16:23:43 +02:00
|
|
|
# HEADERS += platform/borderless/qwinwidget.h \
|
|
|
|
# platform/borderless/winnativewindow.h \
|
|
|
|
# platform/borderless/widget.h
|
2017-09-21 17:34:41 +02:00
|
|
|
|
|
|
|
DEFINES += "USEWINSDK"
|
|
|
|
}
|
2017-04-24 23:00:26 +02:00
|
|
|
|
|
|
|
macx {
|
|
|
|
INCLUDEPATH += /usr/local/include
|
|
|
|
}
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
forms/accountpopupform.ui
|
2017-05-27 15:47:04 +02:00
|
|
|
|
|
|
|
werr {
|
|
|
|
QMAKE_CXXFLAGS += -Werror
|
|
|
|
|
|
|
|
message("Enabling error on warning")
|
|
|
|
}
|
2017-06-06 11:18:16 +02:00
|
|
|
|
|
|
|
# External dependencies
|
|
|
|
include(dependencies/rapidjson.pri)
|
|
|
|
include(dependencies/settings.pri)
|
2017-06-26 15:53:43 +02:00
|
|
|
include(dependencies/signals.pri)
|
2017-06-11 21:01:08 +02:00
|
|
|
include(dependencies/humanize.pri)
|
2017-07-23 11:57:30 +02:00
|
|
|
include(dependencies/fmt.pri)
|
2017-09-30 00:16:14 +02:00
|
|
|
DEFINES += IRC_NAMESPACE=Communi
|
|
|
|
include(dependencies/libcommuni.pri)
|
|
|
|
|