-CONFIG += release c++11
-CONFIG -= rtti exceptions
+CONFIG += c++14 exceptions_off rtti_off optimize_full
+
TEMPLATE = app
-VERSION = 2.9
+VERSION = 3.1
DEFINES += APP_VERSION="$$VERSION"
APP_NAME = Minitube
APP_UNIX_NAME = minitube
DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
-DEFINES += APP_PHONON
-DEFINES += APP_PHONON_SEEK
DEFINES += APP_SNAPSHOT
message(Building $${APP_NAME} $${VERSION})
QT += widgets network sql qml
+include(lib/http/http.pri)
+include(lib/idle/idle.pri)
+
+DEFINES += MEDIA_MPV
+include(lib/media/media.pri)
+
include(src/qtsingleapplication/qtsingleapplication.pri)
-include(src/http/http.pri)
-include(src/idle/idle.pri)
HEADERS += src/video.h \
- src/searchlineedit.h \
src/spacer.h \
src/constants.h \
src/playlistitemdelegate.h \
src/searchparams.h \
src/minisplitter.h \
src/loadingwidget.h \
- src/videoareawidget.h \
src/autocomplete.h \
src/videodefinition.h \
src/fontutils.h \
src/yt3.h \
src/paginatedvideosource.h \
src/searchwidget.h \
- src/exlineedit.h \
src/channellistview.h \
src/httputils.h \
src/appwidget.h \
src/clickablelabel.h \
src/ytvideo.h \
src/toolbarmenu.h \
- src/sharetoolbar.h
+ src/sharetoolbar.h \
+ src/videoarea.h \
+ src/searchlineedit.h
SOURCES += src/main.cpp \
- src/searchlineedit.cpp \
src/spacer.cpp \
src/video.cpp \
src/videomimedata.cpp \
src/searchparams.cpp \
src/minisplitter.cpp \
src/loadingwidget.cpp \
- src/videoareawidget.cpp \
src/autocomplete.cpp \
src/videodefinition.cpp \
src/constants.cpp \
src/ytchannel.cpp \
src/yt3.cpp \
src/paginatedvideosource.cpp \
- src/exlineedit.cpp \
src/channellistview.cpp \
src/httputils.cpp \
src/appwidget.cpp \
src/clickablelabel.cpp \
src/ytvideo.cpp \
src/toolbarmenu.cpp \
- src/sharetoolbar.cpp
+ src/sharetoolbar.cpp \
+ src/videoarea.cpp \
+ src/searchlineedit.cpp
+
RESOURCES += resources.qrc
+RESOURCES += $$files(icons/*.png, true)
+
DESTDIR = build/target/
OBJECTS_DIR = build/obj/
MOC_DIR = build/moc/
# Tell Qt Linguist that we use UTF-8 strings in our sources
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
+
include(locale/locale.pri)
# deploy
DISTFILES += CHANGES COPYING
unix:!mac {
DEFINES += APP_LINUX
- LIBS += -lphonon4qt5
- INCLUDEPATH += /usr/include/phonon4qt5
QT += dbus
HEADERS += src/gnomeglobalshortcutbackend.h
SOURCES += src/gnomeglobalshortcutbackend.cpp
+
isEmpty(PREFIX):PREFIX = /usr
+
BINDIR = $$PREFIX/bin
INSTALLS += target
target.path = $$BINDIR
+
DATADIR = $$PREFIX/share
PKGDATADIR = $$DATADIR/minitube
DEFINES += DATADIR=\\\"$$DATADIR\\\" \
PKGDATADIR=\\\"$$PKGDATADIR\\\"
+
INSTALLS += translations \
+ sounds \
desktop \
appdata \
iconsvg \
icon512
translations.path = $$PKGDATADIR
translations.files += $$DESTDIR/locale
+ sounds.path = $$PKGDATADIR
+ sounds.files += sounds/
desktop.path = $$DATADIR/applications
desktop.files += minitube.desktop
appdata.path = $$DATADIR/appdata
icon512.path = $$DATADIR/icons/hicolor/512x512/apps
icon512.files += data/512x512/minitube.png
}
+
mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)