]> git.sur5r.net Git - minitube/blobdiff - minitube.pro
Upload 2.9-1 to unstable
[minitube] / minitube.pro
index 942926e096f788684504b6dc2c4af4d3ed1cc46a..453cf15f4b30093ec6ee02eb922a44ee165ec174 100644 (file)
@@ -1,6 +1,7 @@
-CONFIG += release
+CONFIG += release c++11
+CONFIG -= rtti exceptions
 TEMPLATE = app
-VERSION = 2.1.6
+VERSION = 2.9
 DEFINES += APP_VERSION="$$VERSION"
 
 APP_NAME = Minitube
@@ -9,26 +10,35 @@ DEFINES += APP_NAME="$$APP_NAME"
 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})
+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 xml phonon sql script
+QT += widgets network sql qml
 
 include(src/qtsingleapplication/qtsingleapplication.pri)
+include(src/http/http.pri)
+include(src/idle/idle.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/networkaccess.h \
     src/videomimedata.h \
-    src/global.h \
     src/updatechecker.h \
     src/searchparams.h \
     src/minisplitter.h \
@@ -66,33 +76,45 @@ HEADERS += \
     src/standardfeedsview.h \
     src/ytregions.h \
     src/ytcategories.h \
-    src/ytfeedreader.h \
     src/ytsuggester.h \
     src/videosourcewidget.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/seekslider.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/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
 SOURCES += src/main.cpp \
     src/searchlineedit.cpp \
-    src/urllineedit.cpp \
     src/spacer.cpp \
     src/video.cpp \
     src/videomimedata.cpp \
     src/updatechecker.cpp \
-    src/networkaccess.cpp \
     src/searchparams.cpp \
     src/minisplitter.cpp \
     src/loadingwidget.cpp \
@@ -129,25 +151,38 @@ SOURCES += src/main.cpp \
     src/standardfeedsview.cpp \
     src/ytregions.cpp \
     src/ytcategories.cpp \
-    src/ytfeedreader.cpp \
     src/ytsuggester.cpp \
     src/videosourcewidget.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/seekslider.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/exlineedit.cpp \
+    src/channellistview.cpp \
+    src/httputils.cpp \
+    src/appwidget.cpp \
+    src/clickablelabel.cpp \
+    src/ytvideo.cpp \
+    src/toolbarmenu.cpp \
+    src/sharetoolbar.cpp
 RESOURCES += resources.qrc
 DESTDIR = build/target/
 OBJECTS_DIR = build/obj/
@@ -162,7 +197,9 @@ include(locale/locale.pri)
 # deploy
 DISTFILES += CHANGES COPYING
 unix:!mac {
-    INCLUDEPATH += /usr/include/phonon
+    DEFINES += APP_LINUX
+    LIBS += -lphonon4qt5
+    INCLUDEPATH += /usr/include/phonon4qt5
     QT += dbus
     HEADERS += src/gnomeglobalshortcutbackend.h
     SOURCES += src/gnomeglobalshortcutbackend.cpp
@@ -176,6 +213,7 @@ unix:!mac {
         PKGDATADIR=\\\"$$PKGDATADIR\\\"
     INSTALLS += translations \
         desktop \
+        appdata \
         iconsvg \
         icon16 \
         icon22 \
@@ -189,6 +227,8 @@ unix:!mac {
     translations.files += $$DESTDIR/locale
     desktop.path = $$DATADIR/applications
     desktop.files += minitube.desktop
+    appdata.path = $$DATADIR/appdata
+    appdata.files += minitube.appdata.xml
     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
     iconsvg.files += data/minitube.svg
     icon16.path = $$DATADIR/icons/hicolor/16x16/apps