]> git.sur5r.net Git - minitube/blobdiff - minitube.pro
Upload 3.9.3-2 to unstable
[minitube] / minitube.pro
index d4f247f05688afb0dec00674a68896e21e72883f..646dd4ed1e3d4df9d2c2a99f13ce851dbc78cec0 100644 (file)
@@ -1,7 +1,7 @@
-CONFIG += c++14 exceptions_off rtti_off optimize_full
+CONFIG += c++17 exceptions_off rtti_off object_parallel_to_source
 
 TEMPLATE = app
-VERSION = 3.4.1
+VERSION = 3.9.3
 DEFINES += APP_VERSION="$$VERSION"
 
 APP_NAME = Minitube
@@ -10,6 +10,9 @@ DEFINES += APP_NAME="$$APP_NAME"
 APP_UNIX_NAME = minitube
 DEFINES += APP_UNIX_NAME="$$APP_UNIX_NAME"
 
+message(Building $${APP_NAME} $${VERSION})
+message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
+
 DEFINES += APP_SNAPSHOT
 
 CONFIG -= debug_and_release
@@ -19,13 +22,14 @@ CONFIG(debug, debug|release): {
 CONFIG(release, debug|release): {
     message(Building for release)
     DEFINES *= QT_NO_DEBUG_OUTPUT
+    CONFIG += optimize_full
 }
 
 DEFINES *= QT_USE_QSTRINGBUILDER QT_STRICT_ITERATORS QT_DEPRECATED_WARNINGS
 
-!contains(DEFINES, APP_GOOGLE_API_KEY=.+) {
-    warning("You need to specify a Google API Key, refer to the README.md file for details")
-}
+#!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}
 
@@ -33,19 +37,26 @@ QT += widgets network sql qml
 
 include(lib/http/http.pri)
 include(lib/idle/idle.pri)
+include(lib/js/js.pri)
+include(lib/promises/promises.pri)
 
 DEFINES += MEDIA_MPV
 include(lib/media/media.pri)
 
 include(src/qtsingleapplication/qtsingleapplication.pri)
+include(src/yt/yt.pri)
+
+INCLUDEPATH += $$PWD/src
 
 HEADERS += src/video.h \
     src/messagebar.h \
     src/spacer.h \
     src/constants.h \
     src/playlistitemdelegate.h \
+    src/subscriptionimportview.h \
+    src/updateutils.h \
+    src/videoapi.h \
     src/videomimedata.h \
-    src/updatechecker.h \
     src/searchparams.h \
     src/minisplitter.h \
     src/loadingwidget.h \
@@ -76,6 +87,7 @@ HEADERS += src/video.h \
     src/view.h \
     src/playlistmodel.h \
     src/videosource.h \
+    src/waitingspinnerwidget.h \
     src/ytsearch.h \
     src/ytstandardfeed.h \
     src/standardfeedsview.h \
@@ -118,9 +130,10 @@ HEADERS += src/video.h \
 SOURCES += src/main.cpp \
     src/messagebar.cpp \
     src/spacer.cpp \
+    src/subscriptionimportview.cpp \
+    src/updateutils.cpp \
     src/video.cpp \
     src/videomimedata.cpp \
-    src/updatechecker.cpp \
     src/searchparams.cpp \
     src/minisplitter.cpp \
     src/loadingwidget.cpp \
@@ -151,6 +164,7 @@ SOURCES += src/main.cpp \
     src/playlistitemdelegate.cpp \
     src/playlistmodel.cpp \
     src/videosource.cpp \
+    src/waitingspinnerwidget.cpp \
     src/ytsearch.cpp \
     src/ytstandardfeed.cpp \
     src/standardfeedsview.cpp \
@@ -242,8 +256,8 @@ unix:!mac {
     sounds.files += sounds/
     desktop.path = $$DATADIR/applications
     desktop.files += minitube.desktop
-    appdata.path = $$DATADIR/appdata
-    appdata.files += minitube.appdata.xml
+    appdata.path = $$DATADIR/metainfo
+    appdata.files += org.tordini.flavio.minitube.metainfo.xml
     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
     iconsvg.files += data/minitube.svg
     icon16.path = $$DATADIR/icons/hicolor/16x16/apps
@@ -266,6 +280,7 @@ unix:!mac {
 
 mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
 
+message(QT: $$QT)
 message(CONFIG: $$CONFIG)
 message(DEFINES: $$DEFINES)
 message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS)