CONFIG += release
TEMPLATE = app
-VERSION = 2.1.1
+VERSION = 2.5
DEFINES += APP_VERSION="$$VERSION"
APP_NAME = Minitube
APP_UNIX_NAME = minitube
DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
-DEFINES *= QT_NO_DEBUG_OUTPUT
+DEFINES += APP_PHONON
+DEFINES += APP_PHONON_SEEK
+DEFINES += APP_SNAPSHOT
+DEFINES += APP_YT3
+
+message(Building $${APP_NAME} $${VERSION})
+message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
+
+#DEFINES *= QT_NO_DEBUG_OUTPUT
DEFINES *= QT_USE_QSTRINGBUILDER
-DEFINES += QT_STRICT_ITERATORS
+DEFINES *= QT_STRICT_ITERATORS
+
+!contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
+ warning("You need to specify a Google API Key, refer to the README.md file for details")
+}
+
+TARGET = $${APP_UNIX_NAME}
+
+QT += network sql script
+qt:greaterThan(QT_MAJOR_VERSION, 4) {
+ contains(QT, gui): QT *= widgets
+}
-TARGET = minitube
-QT += network xml phonon sql script
include(src/qtsingleapplication/qtsingleapplication.pri)
-HEADERS += \
- src/video.h \
+
+HEADERS += src/video.h \
src/searchlineedit.h \
- src/urllineedit.h \
src/spacer.h \
src/constants.h \
src/playlistitemdelegate.h \
src/regionsview.h \
src/ytsinglevideosource.h \
src/sidebarheader.h \
- src/utils.h \
+ src/iconutils.h \
src/diskcache.h \
src/gridwidget.h \
src/painterutils.h \
src/database.h \
- src/ytuser.h \
src/channelaggregator.h \
src/channelmodel.h \
src/aggregatevideosource.h \
src/channelview.h \
src/channelitemdelegate.h \
- src/jsfunctions.h
+ src/jsfunctions.h \
+ src/seekslider.h \
+ src/snapshotsettings.h \
+ src/snapshotpreview.h \
+ src/datautils.h \
+ src/yt3listparser.h \
+ src/ytchannel.h \
+ src/yt3.h \
+ src/paginatedvideosource.h \
+ src/compatibility/qurlqueryhelper.h \
+ src/compatibility/pathsservice.h \
+ src/searchwidget.h \
+ src/exlineedit.h \
+ src/channellistview.h
SOURCES += src/main.cpp \
src/searchlineedit.cpp \
- src/urllineedit.cpp \
src/spacer.cpp \
src/video.cpp \
src/videomimedata.cpp \
src/regionsview.cpp \
src/ytsinglevideosource.cpp \
src/sidebarheader.cpp \
- src/utils.cpp \
+ src/iconutils.cpp \
src/diskcache.cpp \
src/gridwidget.cpp \
src/painterutils.cpp \
src/database.cpp \
- src/ytuser.cpp \
src/channelaggregator.cpp \
src/channelmodel.cpp \
src/aggregatevideosource.cpp \
src/channelview.cpp \
src/channelitemdelegate.cpp \
- src/jsfunctions.cpp
+ src/jsfunctions.cpp \
+ src/seekslider.cpp \
+ src/snapshotsettings.cpp \
+ src/snapshotpreview.cpp \
+ src/datautils.cpp \
+ src/yt3listparser.cpp \
+ src/ytchannel.cpp \
+ src/yt3.cpp \
+ src/paginatedvideosource.cpp \
+ src/compatibility/pathsservice.cpp \
+ src/exlineedit.cpp \
+ src/channellistview.cpp
RESOURCES += resources.qrc
DESTDIR = build/target/
OBJECTS_DIR = build/obj/
# deploy
DISTFILES += CHANGES COPYING
unix:!mac {
- INCLUDEPATH += /usr/include/phonon
+ DEFINES += APP_LINUX
+ qt:greaterThan(QT_MAJOR_VERSION, 4) {
+ LIBS += -lphonon4qt5
+ INCLUDEPATH += /usr/include/phonon4qt5
+ } else {
+ QT += phonon
+ INCLUDEPATH += /usr/include/phonon
+ }
QT += dbus
HEADERS += src/gnomeglobalshortcutbackend.h
SOURCES += src/gnomeglobalshortcutbackend.cpp
icon512.files += data/512x512/minitube.png
}
mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
+
+OTHER_FILES += \
+ sounds/snapshot.wav