void-packages/srcpkgs/chatterino2/patches/0001-use-system-communi.patch

30 lines
1.0 KiB
Diff

diff --git chatterino.pro chatterino.pro
index 38168d72..9f760304 100644
--- chatterino.pro
+++ chatterino.pro
@@ -7,10 +7,13 @@
message(----)
QT += widgets core gui network multimedia svg
-CONFIG += communi
-COMMUNI += core model util
CONFIG += c++14
INCLUDEPATH += src/
+INCLUDEPATH += /usr/include/qt5/Communi/IrcCore
+INCLUDEPATH += /usr/include/qt5/Communi/IrcModel
+INCLUDEPATH += /usr/include/qt5/Communi/IrcUtil
+DEFINES += IRC_SHARED
+LIBS += -lIrcCore -lIrcModel -lIrcUtil
TARGET = chatterino
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
@@ -37,8 +40,6 @@ include(dependencies/settings.pri)
include(dependencies/signals.pri)
include(dependencies/humanize.pri)
include(dependencies/fmt.pri)
-DEFINES += IRC_NAMESPACE=Communi
-include(dependencies/libcommuni.pri)
include(dependencies/websocketpp.pri)
include(dependencies/openssl.pri)
include(dependencies/boost.pri)