1
0
Fork 0
VideoPlayer/KittehPlayer.pro

40 lines
778 B
Prolog
Raw Normal View History

2018-10-13 15:38:31 +01:00
TARGET = KittehPlayer
TEMPLATE = app
QT += qml quickcontrols2 widgets
SOURCES += src/main.cpp src/mpvobject.cpp
2018-10-16 07:45:40 +01:00
CONFIG += release
exists("/usr/lib/libmpv.a") {
LIBS += -L/usr/lib /usr/lib/libmpv.a
} else {
2018-10-13 15:38:31 +01:00
QT_CONFIG -= no-pkg-config
2018-10-16 07:45:40 +01:00
CONFIG += link_pkgconfig
2018-10-13 15:38:31 +01:00
PKGCONFIG += mpv
2018-10-16 07:45:40 +01:00
}
2018-10-13 15:38:31 +01:00
RESOURCES += src/qml/qml.qrc
unix {
isEmpty(PREFIX) {
PREFIX = /usr
}
target.path = $$PREFIX/bin
desktop.files = KittehPlayer.desktop
desktop.path = $$PREFIX/share/applications/
icon.files += KittehPlayer.png
icon.path = $$PREFIX/share/icons/hicolor/256x256/apps/
INSTALLS += desktop
INSTALLS += icon
}
INSTALLS += target
HEADERS += src/main.h src/mpvobject.h src/config.h
DISTFILES += KittehPlayer.desktop KittehPlayer.png README.md LICENSE.txt