-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
+VERSION = 3.9.3
DEFINES += APP_VERSION="$$VERSION"
APP_NAME = Minitube
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
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}
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 \
src/view.h \
src/playlistmodel.h \
src/videosource.h \
+ src/waitingspinnerwidget.h \
src/ytsearch.h \
src/ytstandardfeed.h \
src/standardfeedsview.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 \
src/playlistitemdelegate.cpp \
src/playlistmodel.cpp \
src/videosource.cpp \
+ src/waitingspinnerwidget.cpp \
src/ytsearch.cpp \
src/ytstandardfeed.cpp \
src/standardfeedsview.cpp \
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
mac|win32|contains(DEFINES, APP_UBUNTU):include(local/local.pri)
+message(QT: $$QT)
message(CONFIG: $$CONFIG)
message(DEFINES: $$DEFINES)
message(QMAKE_CXXFLAGS: $$QMAKE_CXXFLAGS)