From 25cded4eda2b316b3e2b8fbc2f0c54f34e1f2528 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Tue, 16 Oct 2018 07:45:40 +0100 Subject: [PATCH] Add static MPV linking. --- KittehPlayer.pro | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/KittehPlayer.pro b/KittehPlayer.pro index 8488775..9069468 100644 --- a/KittehPlayer.pro +++ b/KittehPlayer.pro @@ -5,10 +5,14 @@ QT += qml quickcontrols2 widgets SOURCES += src/main.cpp src/mpvobject.cpp +CONFIG += release +exists("/usr/lib/libmpv.a") { +LIBS += -L/usr/lib /usr/lib/libmpv.a +} else { QT_CONFIG -= no-pkg-config -CONFIG += link_pkgconfig release +CONFIG += link_pkgconfig PKGCONFIG += mpv - +} RESOURCES += src/qml/qml.qrc unix {