mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
neutrino: add configure switch to disable upnp
Add a --disable-upnp switch to disable the UPNP browser for those who want to use more modern external solutions. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1830 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -95,6 +95,16 @@ if test "$enable_flac" = "yes"; then
|
|||||||
AC_DEFINE(ENABLE_FLAC,1,[include FLAC support])
|
AC_DEFINE(ENABLE_FLAC,1,[include FLAC support])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# UPNP - upnp browser (borken right now)
|
||||||
|
AC_ARG_ENABLE(upnp,
|
||||||
|
AS_HELP_STRING(--disable-upnp,disable UPNP support),
|
||||||
|
,[enable_upnp=yes])
|
||||||
|
|
||||||
|
AM_CONDITIONAL(ENABLE_UPNP,test "$enable_upnp" = "yes")
|
||||||
|
if test "$enable_upnp" = "yes"; then
|
||||||
|
AC_DEFINE(ENABLE_UPNP,1,[include UPNP support - currently broken])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS(coolstream/nevis_ir.h)
|
AC_CHECK_HEADERS(coolstream/nevis_ir.h)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@@ -8,8 +8,12 @@ SUBDIRS = \
|
|||||||
libnet \
|
libnet \
|
||||||
xmltree \
|
xmltree \
|
||||||
libtuxtxt \
|
libtuxtxt \
|
||||||
libdvbsub \
|
libdvbsub
|
||||||
|
|
||||||
|
if ENABLE_UPNP
|
||||||
|
SUBDIRS += \
|
||||||
libupnpclient
|
libupnpclient
|
||||||
|
endif
|
||||||
|
|
||||||
if BOXTYPE_TRIPLE
|
if BOXTYPE_TRIPLE
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
|
@@ -75,7 +75,6 @@ neutrino_LDADD = \
|
|||||||
$(top_builddir)/lib/libmd5sum/libtuxbox-md5sum.a \
|
$(top_builddir)/lib/libmd5sum/libtuxbox-md5sum.a \
|
||||||
$(top_builddir)/lib/libtuxtxt/libtuxtxt.a \
|
$(top_builddir)/lib/libtuxtxt/libtuxtxt.a \
|
||||||
$(top_builddir)/lib/libdvbsub/libdvbsub.a \
|
$(top_builddir)/lib/libdvbsub/libdvbsub.a \
|
||||||
$(top_builddir)/lib/libupnpclient/libtuxbox-upnpclient.a \
|
|
||||||
@CURL_LIBS@ \
|
@CURL_LIBS@ \
|
||||||
@FREETYPE_LIBS@ \
|
@FREETYPE_LIBS@ \
|
||||||
@PNG_LIBS@ \
|
@PNG_LIBS@ \
|
||||||
@@ -91,6 +90,11 @@ neutrino_LDADD = \
|
|||||||
-lOpenThreads \
|
-lOpenThreads \
|
||||||
-lrt -lpthread
|
-lrt -lpthread
|
||||||
|
|
||||||
|
if ENABLE_UPNP
|
||||||
|
neutrino_LDADD += \
|
||||||
|
$(top_builddir)/lib/libupnpclient/libtuxbox-upnpclient.a
|
||||||
|
endif
|
||||||
|
|
||||||
if BOXTYPE_COOL
|
if BOXTYPE_COOL
|
||||||
neutrino_LDADD += \
|
neutrino_LDADD += \
|
||||||
-lcoolstream-mt \
|
-lcoolstream-mt \
|
||||||
|
@@ -98,8 +98,12 @@ libneutrino_gui2_a_SOURCES = \
|
|||||||
color.cpp \
|
color.cpp \
|
||||||
hdd_menu.cpp \
|
hdd_menu.cpp \
|
||||||
infoclock.cpp \
|
infoclock.cpp \
|
||||||
motorcontrol.cpp \
|
motorcontrol.cpp
|
||||||
|
|
||||||
|
if ENABLE_UPNP
|
||||||
|
libneutrino_gui2_a_SOURCES += \
|
||||||
upnpbrowser.cpp
|
upnpbrowser.cpp
|
||||||
|
endif
|
||||||
|
|
||||||
libtimerlist_a_SOURCES = \
|
libtimerlist_a_SOURCES = \
|
||||||
timerlist.cpp
|
timerlist.cpp
|
||||||
|
@@ -39,7 +39,9 @@
|
|||||||
|
|
||||||
#include "gui/movieplayer.h"
|
#include "gui/movieplayer.h"
|
||||||
#include "gui/pictureviewer.h"
|
#include "gui/pictureviewer.h"
|
||||||
|
#if ENABLE_UPNP
|
||||||
#include "gui/upnpbrowser.h"
|
#include "gui/upnpbrowser.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <gui/widget/icons.h>
|
#include <gui/widget/icons.h>
|
||||||
|
|
||||||
@@ -116,7 +118,9 @@ void CMediaPlayerMenu::showMenu()
|
|||||||
CMenuForwarder *fw_inet = NULL;
|
CMenuForwarder *fw_inet = NULL;
|
||||||
CMenuForwarder *fw_mp = NULL;
|
CMenuForwarder *fw_mp = NULL;
|
||||||
CMenuForwarder *fw_pviewer = NULL;
|
CMenuForwarder *fw_pviewer = NULL;
|
||||||
|
#if ENABLE_UPNP
|
||||||
CMenuForwarder *fw_upnp = NULL;
|
CMenuForwarder *fw_upnp = NULL;
|
||||||
|
#endif
|
||||||
CMenuWidget *moviePlayer = NULL;
|
CMenuWidget *moviePlayer = NULL;
|
||||||
|
|
||||||
if (usage_mode != MODE_VIDEO)
|
if (usage_mode != MODE_VIDEO)
|
||||||
@@ -143,9 +147,10 @@ void CMediaPlayerMenu::showMenu()
|
|||||||
//pictureviewer
|
//pictureviewer
|
||||||
fw_pviewer = new CMenuForwarder(LOCALE_MAINMENU_PICTUREVIEWER, true, NULL, new CPictureViewerGui(), NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
fw_pviewer = new CMenuForwarder(LOCALE_MAINMENU_PICTUREVIEWER, true, NULL, new CPictureViewerGui(), NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
|
||||||
|
|
||||||
|
#if ENABLE_UPNP
|
||||||
//upnp browser
|
//upnp browser
|
||||||
fw_upnp = new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, new CUpnpBrowserGui(), NULL, CRCInput::RC_0, NEUTRINO_ICON_BUTTON_0);
|
fw_upnp = new CMenuForwarder(LOCALE_UPNPBROWSER_HEAD, true, NULL, new CUpnpBrowserGui(), NULL, CRCInput::RC_0, NEUTRINO_ICON_BUTTON_0);
|
||||||
|
#endif
|
||||||
media->addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, usage_mode == MODE_AUDIO ? CMenuWidget::BTN_TYPE_CANCEL : CMenuWidget::BTN_TYPE_BACK);
|
media->addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, usage_mode == MODE_AUDIO ? CMenuWidget::BTN_TYPE_CANCEL : CMenuWidget::BTN_TYPE_BACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,9 +180,10 @@ void CMediaPlayerMenu::showMenu()
|
|||||||
|
|
||||||
//pictureviewer
|
//pictureviewer
|
||||||
media->addItem(fw_pviewer);
|
media->addItem(fw_pviewer);
|
||||||
|
#if ENABLE_UPNP
|
||||||
//upnp browser
|
//upnp browser
|
||||||
media->addItem(fw_upnp);
|
media->addItem(fw_upnp);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
media->exec(NULL, "");
|
media->exec(NULL, "");
|
||||||
|
@@ -105,7 +105,9 @@
|
|||||||
#include "gui/sleeptimer.h"
|
#include "gui/sleeptimer.h"
|
||||||
#include "gui/timerlist.h"
|
#include "gui/timerlist.h"
|
||||||
#include "gui/update.h"
|
#include "gui/update.h"
|
||||||
|
#if ENABLE_UPNP
|
||||||
#include "gui/upnpbrowser.h"
|
#include "gui/upnpbrowser.h"
|
||||||
|
#endif
|
||||||
#include "gui/videosettings.h"
|
#include "gui/videosettings.h"
|
||||||
#include "gui/widget/colorchooser.h"
|
#include "gui/widget/colorchooser.h"
|
||||||
#include "gui/widget/hintbox.h"
|
#include "gui/widget/hintbox.h"
|
||||||
|
Reference in New Issue
Block a user