Skip to content

Commit

Permalink
merge libmythservicecontracts into mythfrontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmus-scott committed Feb 16, 2025
1 parent 15a4825 commit 424cbd5
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 148 deletions.
1 change: 0 additions & 1 deletion mythplugins/programs-libs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ DEPENDPATH *= $${INCLUDEPATH}

LIBS += -L$${SYSROOT}$${LIBDIR} $$EXTRA_LIBS -lmythbase-$$LIBVERSION
LIBS += -lmyth-$$LIBVERSION -lmythui-$$LIBVERSION -lmythupnp-$$LIBVERSION
LIBS += -lmythservicecontracts-$$LIBVERSION
LIBS += -lmythavcodec
LIBS += -lmythavutil
LIBS += -lmythavformat
Expand Down
1 change: 0 additions & 1 deletion mythtv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ set_target_properties(
mythmetadata
mythmpeg2
mythprotoserver
mythservicecontracts
mythtv
mythui
mythupnp
Expand Down
2 changes: 0 additions & 2 deletions mythtv/i18n/translate.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ SOURCES += ../libs/libmyth/audio/*.cpp
SOURCES += ../libs/libmyth/audio/*.h
SOURCES += ../libs/libmythmetadata/*.cpp
SOURCES += ../libs/libmythmetadata/*.h
SOURCES += ../libs/libmythservicecontracts/enums/*.cpp
SOURCES += ../libs/libmythservicecontracts/enums/*.h
SOURCES += ../libs/libmythtv/*.cpp
SOURCES += ../libs/libmythtv/*.h
SOURCES += ../libs/libmythtv/AirPlay/*.cpp
Expand Down
1 change: 0 additions & 1 deletion mythtv/libs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_subdirectory(libmythbase)
add_subdirectory(libmythservicecontracts)
if(TARGET mythtv_mheg)
add_subdirectory(libmythfreemheg)
endif()
Expand Down
59 changes: 0 additions & 59 deletions mythtv/libs/libmythservicecontracts/CMakeLists.txt

This file was deleted.

48 changes: 0 additions & 48 deletions mythtv/libs/libmythservicecontracts/libmythservicecontracts.pro

This file was deleted.

12 changes: 0 additions & 12 deletions mythtv/libs/libmythservicecontracts/serviceexp.h

This file was deleted.

2 changes: 0 additions & 2 deletions mythtv/libs/libs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ TEMPLATE = subdirs

# Libraries without dependencies
SUBDIRS += libmythbase
SUBDIRS += libmythservicecontracts
libmythservicecontracts.depends = libmythbase

using_mheg:SUBDIRS += libmythfreemheg
!contains( CONFIG_LIBMPEG2EXTERNAL, yes):SUBDIRS += libmythmpeg2
Expand Down
7 changes: 6 additions & 1 deletion mythtv/programs/mythfrontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ add_executable(
schedulecommon.h
scheduleeditor.cpp
scheduleeditor.h
servicecontracts/datacontracthelper.h
servicecontracts/frontendActionList.h
servicecontracts/frontendServices.h
servicecontracts/frontendStatus.h
servicecontracts/service.cpp
servicecontracts/service.h
serviceHosts/frontendServiceHost.h
serviceHosts/servicehost.cpp
serviceHosts/servicehost.h
Expand Down Expand Up @@ -170,7 +176,6 @@ target_link_libraries(
mythtv
mythbase
mythmetadata
mythservicecontracts
mythui
mythupnp
$<TARGET_NAME_IF_EXISTS:PkgConfig::LibCEC>
Expand Down
7 changes: 7 additions & 0 deletions mythtv/programs/mythfrontend/mythfrontend.pro
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ SOURCES += galleryconfig.cpp galleryviews.cpp
SOURCES += galleryslide.cpp gallerytransitions.cpp
SOURCES += galleryinfo.cpp prevreclist.cpp

HEADERS += servicecontracts/datacontracthelper.h
HEADERS += servicecontracts/frontendActionList.h
HEADERS += servicecontracts/frontendServices.h
HEADERS += servicecontracts/frontendStatus.h
SOURCES += servicecontracts/service.cpp
HEADERS += servicecontracts/service.h

HEADERS += serviceHosts/frontendServiceHost.h
SOURCES += serviceHosts/servicehost.cpp
HEADERS += serviceHosts/servicehost.h
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/serviceHosts/servicehost.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <QString>
#include <QVariant>

#include "libmythservicecontracts/service.h"
#include "servicecontracts/service.h"

#include "libmythupnp/httprequest.h"
#include "libmythupnp/httpserver.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef FRONTENDACTIONLIST_H
#define FRONTENDACTIONLIST_H

#include "libmythservicecontracts/serviceexp.h"
#include "libmythservicecontracts/datacontracthelper.h"
#include "datacontracthelper.h"

namespace DTC
{
class SERVICE_PUBLIC FrontendActionList : public QObject
class FrontendActionList : public QObject
{
Q_OBJECT
Q_CLASSINFO("version", "1.0");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#ifndef FRONTENDSERVICES_H
#define FRONTENDSERVICES_H

#include "libmythservicecontracts/service.h"
#include "service.h"

#include "libmythservicecontracts/datacontracts/frontendActionList.h"
#include "libmythservicecontracts/datacontracts/frontendStatus.h"
#include "frontendActionList.h"
#include "frontendStatus.h"

class SERVICE_PUBLIC FrontendServices : public Service
class FrontendServices : public Service
{
Q_OBJECT
Q_CLASSINFO( "version", "2.1" );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef FRONTENDSTATUS_H
#define FRONTENDSTATUS_H

#include "libmythservicecontracts/serviceexp.h"
#include "libmythservicecontracts/datacontracthelper.h"
#include "datacontracthelper.h"

namespace DTC
{
class SERVICE_PUBLIC FrontendStatus : public QObject
class FrontendStatus : public QObject
{
Q_OBJECT
Q_CLASSINFO("version", "1.1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include <QDateTime>
#include <QString>

#include "serviceexp.h"

/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
//
Expand All @@ -39,7 +37,7 @@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////

class SERVICE_PUBLIC Service : public QObject
class Service : public QObject
{
Q_OBJECT

Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythfrontend/services/frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#if CONFIG_QTSCRIPT
#include <QScriptEngine>
#endif
#include "libmythservicecontracts/services/frontendServices.h"
#include "libmythservicecontracts/service.h"
#include "servicecontracts/frontendServices.h"
#include "servicecontracts/service.h"

class Frontend : public FrontendServices
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ LIBS += ../../obj/upnpscanner.o ../../obj/moc_upnpscanner.o

# Add all the necessary libraries
LIBS += -L../../../../libs/libmythbase -lmythbase-$$LIBVERSION
LIBS += -L../../../../libs/libmythservicecontracts -lmythservicecontracts-$$LIBVERSION
LIBS += -L../../../../libs/libmythui -lmythui-$$LIBVERSION
LIBS += -L../../../../libs/libmythupnp -lmythupnp-$$LIBVERSION
LIBS += -L../../../../libs/libmyth -lmyth-$$LIBVERSION
Expand All @@ -35,7 +34,6 @@ using_mheg:QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythfreemheg
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythmetadata
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythtv
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmyth
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythservicecontracts
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythupnp
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythui
QMAKE_LFLAGS += -Wl,$$_RPATH_$(PWD)/../../../../libs/libmythbase
Expand Down
3 changes: 0 additions & 3 deletions mythtv/programs/programs-libs.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ LIBS += -L../../libs/libmythbase
LIBS += -L../../libs/libmythui
LIBS += -L../../libs/libmythupnp
LIBS += -L../../libs/libmythmetadata
LIBS += -L../../libs/libmythservicecontracts
LIBS += -L../../libs/libmythprotoserver

# Insist that /usr/local/lib come after all the libraries provided
Expand All @@ -56,7 +55,6 @@ LIBS += -lmythbase-$$LIBVERSION
LIBS += -lmythui-$$LIBVERSION
LIBS += -lmyth-$$LIBVERSION
LIBS += -lmythmetadata-$$LIBVERSION
LIBS += -lmythservicecontracts-$$LIBVERSION
LIBS += -lmythprotoserver-$$LIBVERSION

using_frontend: using_opengl: QT += opengl
Expand Down Expand Up @@ -89,7 +87,6 @@ win32 {
POST_TARGETDEPS += ../../external/FFmpeg/libavfilter/$$avLibName(avfilter)
POST_TARGETDEPS += ../../libs/libmythupnp/libmythupnp-$${MYTH_SHLIB_EXT}
POST_TARGETDEPS += ../../libs/libmythbase/libmythbase-$${MYTH_SHLIB_EXT}
POST_TARGETDEPS += ../../libs/libmythservicecontracts/libmythservicecontracts-$${MYTH_SHLIB_EXT}
POST_TARGETDEPS += ../../libs/libmythprotoserver/libmythprotoserver-$${MYTH_SHLIB_EXT}
}

Expand Down

0 comments on commit 424cbd5

Please sign in to comment.