From: APTX Date: Wed, 1 Mar 2017 15:22:04 +0000 (+0100) Subject: Move core plugin API to its own direcotry X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=82e07d136d5b1abfa13f68672148640b17174c62;p=aniplayer.git Move core plugin API to its own direcotry --- diff --git a/backendplugins/backend_mpv/backend_mpv.pro b/backendplugins/backend_mpv/backend_mpv.pro index 75ffa62..abb75be 100644 --- a/backendplugins/backend_mpv/backend_mpv.pro +++ b/backendplugins/backend_mpv/backend_mpv.pro @@ -1,7 +1,7 @@ TARGET = backend_mpv TEMPLATE = lib -include(../../core/core.pri) +include(../../core/backendapi.pri) include(../backendbuildconfig.pri) DEFINES += BACKEND_MPV_LIBRARY QT_DEPRECATED_WARNINGS @@ -13,6 +13,9 @@ HEADERS += \ backendmpv.h \ backend_mpv_global.h +DISTFILES += \ + backend_mpv.json + unix { LIBS += $$system(pkg-config --libs mpv) } @@ -25,5 +28,3 @@ unix { INSTALLS += target } -DISTFILES += \ - backend_mpv.json diff --git a/backendplugins/backend_mpv/backendmpv.h b/backendplugins/backend_mpv/backendmpv.h index 43271a3..bd1f6b1 100644 --- a/backendplugins/backend_mpv/backendmpv.h +++ b/backendplugins/backend_mpv/backendmpv.h @@ -5,7 +5,7 @@ #include #include "backend_mpv_global.h" -#include "backendpluginbase.h" +#include "aniplayer/backendpluginbase.h" struct mpv_handle; struct mpv_opengl_cb_context; diff --git a/backendplugins/backend_null/backend_null.pro b/backendplugins/backend_null/backend_null.pro index 1443ae9..6de835b 100644 --- a/backendplugins/backend_null/backend_null.pro +++ b/backendplugins/backend_null/backend_null.pro @@ -2,7 +2,7 @@ TARGET = backend_null QT -= gui TEMPLATE = lib -include(../../core/core.pri) +include(../../core/backendapi.pri) include(../backendbuildconfig.pri) DEFINES += BACKEND_NULL_LIBRARY QT_DEPRECATED_WARNINGS @@ -12,6 +12,9 @@ SOURCES += backendnull.cpp HEADERS += backendnull.h\ backend_null_global.h +DISTFILES += \ + backend_null.json + unix { target.path = $${PREFIX}/lib/aniplayer/backendplugins INSTALLS += target diff --git a/backendplugins/backend_null/backendnull.h b/backendplugins/backend_null/backendnull.h index b997636..f16cefb 100644 --- a/backendplugins/backend_null/backendnull.h +++ b/backendplugins/backend_null/backendnull.h @@ -5,7 +5,7 @@ #include #include "backend_null_global.h" -#include "backendpluginbase.h" +#include "aniplayer/backendpluginbase.h" class QTimer; diff --git a/core/backendapi.pri b/core/backendapi.pri new file mode 100644 index 0000000..2dba128 --- /dev/null +++ b/core/backendapi.pri @@ -0,0 +1,2 @@ +INCLUDEPATH += $$PWD/include +include(../buildconfig.pri) \ No newline at end of file diff --git a/core/backendpluginbase.cpp b/core/backendpluginbase.cpp deleted file mode 100644 index bdb08e1..0000000 --- a/core/backendpluginbase.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "backendpluginbase.h" - diff --git a/core/core.pri b/core/core.pri index 1264d97..159a17f 100644 --- a/core/core.pri +++ b/core/core.pri @@ -1,2 +1,2 @@ -INCLUDEPATH += $$PWD +INCLUDEPATH += $$PWD/include include(../buildconfig.pri) diff --git a/core/core.pro b/core/core.pro index bc605b5..c69085c 100644 --- a/core/core.pro +++ b/core/core.pro @@ -20,10 +20,10 @@ QML_IMPORT_PATH = HEADERS += \ player.h \ - backendpluginbase.h \ + include/aniplayer/backendpluginbase.h \ + include/aniplayer/playerplugininterface.h \ pluginmanager.h \ videoelement.h \ - playerplugininterface.h \ timeformatter.h \ instancemanager.h diff --git a/core/backendpluginbase.h b/core/include/aniplayer/backendpluginbase.h similarity index 100% rename from core/backendpluginbase.h rename to core/include/aniplayer/backendpluginbase.h diff --git a/core/playerplugininterface.h b/core/include/aniplayer/playerplugininterface.h similarity index 100% rename from core/playerplugininterface.h rename to core/include/aniplayer/playerplugininterface.h diff --git a/core/player.h b/core/player.h index 7eec155..7289810 100644 --- a/core/player.h +++ b/core/player.h @@ -6,7 +6,7 @@ #include #include -#include "backendpluginbase.h" +#include "aniplayer/backendpluginbase.h" #include "pluginmanager.h" class Player : public QObject, diff --git a/core/playerplugininterface.cpp b/core/playerplugininterface.cpp deleted file mode 100644 index 106c287..0000000 --- a/core/playerplugininterface.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "playerplugininterface.h" diff --git a/core/videoelement.h b/core/videoelement.h index ca3d014..1fb7d4a 100644 --- a/core/videoelement.h +++ b/core/videoelement.h @@ -4,7 +4,7 @@ #include #include "player.h" -#include "playerplugininterface.h" +#include "aniplayer/playerplugininterface.h" class VideoElement : public QQuickFramebufferObject, public VideoUpdateInterface {