mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
CTestMenu: add configure option --enable-testmenu
This commit is contained in:
@@ -127,6 +127,12 @@ AC_ARG_ENABLE(pip,
|
|||||||
[AC_DEFINE(ENABLE_PIP,1,[enable picture in picture support])])
|
[AC_DEFINE(ENABLE_PIP,1,[enable picture in picture support])])
|
||||||
|
|
||||||
|
|
||||||
|
AM_CONDITIONAL(ENABLE_TEST_MENU,test "$enable_testmenu" = "yes")
|
||||||
|
if test "$enable_testmenu" = "yes"; then
|
||||||
|
AC_DEFINE(ENABLE_TEST_MENU,1,[include test menu in neutrino main menu - not recommended for general users!])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$BOXTYPE" = "coolstream"; then
|
if test "$BOXTYPE" = "coolstream"; then
|
||||||
if test -e ${srcdir}/lib/libcoolstream/nevis_ir.h; then
|
if test -e ${srcdir}/lib/libcoolstream/nevis_ir.h; then
|
||||||
AC_DEFINE(HAVE_COOLSTREAM_NEVIS_IR_H,1,[Define to 1 if you have the <nevis_ir.h> header file.])
|
AC_DEFINE(HAVE_COOLSTREAM_NEVIS_IR_H,1,[Define to 1 if you have the <nevis_ir.h> header file.])
|
||||||
|
@@ -95,7 +95,6 @@ libneutrino_gui_a_SOURCES = \
|
|||||||
start_wizard.cpp \
|
start_wizard.cpp \
|
||||||
streaminfo2.cpp \
|
streaminfo2.cpp \
|
||||||
subchannel_select.cpp \
|
subchannel_select.cpp \
|
||||||
test_menu.cpp \
|
|
||||||
themes.cpp \
|
themes.cpp \
|
||||||
timeosd.cpp \
|
timeosd.cpp \
|
||||||
update.cpp \
|
update.cpp \
|
||||||
@@ -109,6 +108,11 @@ libneutrino_gui_a_SOURCES = \
|
|||||||
volumebar.cpp \
|
volumebar.cpp \
|
||||||
zapit_setup.cpp
|
zapit_setup.cpp
|
||||||
|
|
||||||
|
if ENABLE_TEST_MENU
|
||||||
|
libneutrino_gui_a_SOURCES += \
|
||||||
|
test_menu.cpp
|
||||||
|
endif
|
||||||
|
|
||||||
libneutrino_gui2_a_SOURCES = \
|
libneutrino_gui2_a_SOURCES = \
|
||||||
cam_menu.cpp \
|
cam_menu.cpp \
|
||||||
color.cpp \
|
color.cpp \
|
||||||
|
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
extern int cs_test_card(int unit, char * str);
|
extern int cs_test_card(int unit, char * str);
|
||||||
|
|
||||||
#ifdef TEST_MENU
|
|
||||||
CTestMenu::CTestMenu()
|
CTestMenu::CTestMenu()
|
||||||
{
|
{
|
||||||
width = w_max (50, 10);
|
width = w_max (50, 10);
|
||||||
@@ -737,4 +737,3 @@ void CTestMenu::showHWTests(CMenuWidget *widget)
|
|||||||
}
|
}
|
||||||
CFEManager::getInstance()->linkFrontends(true);
|
CFEManager::getInstance()->linkFrontends(true);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
@@ -71,7 +71,9 @@
|
|||||||
#include "gui/sleeptimer.h"
|
#include "gui/sleeptimer.h"
|
||||||
#include "gui/update_menue.h"
|
#include "gui/update_menue.h"
|
||||||
#include "gui/streaminfo2.h"
|
#include "gui/streaminfo2.h"
|
||||||
|
#ifdef ENABLE_TEST_MENU
|
||||||
#include "gui/test_menu.h"
|
#include "gui/test_menu.h"
|
||||||
|
#endif
|
||||||
#include "gui/update.h"
|
#include "gui/update.h"
|
||||||
#include "gui/vfd_setup.h"
|
#include "gui/vfd_setup.h"
|
||||||
#include "driver/record.h"
|
#include "driver/record.h"
|
||||||
@@ -280,7 +282,7 @@ void CNeutrinoApp::InitMenuMain()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST_MENU
|
#ifdef ENABLE_TEST_MENU
|
||||||
personalize.addItem(MENU_MAIN, new CMenuForwarderNonLocalized("Test menu", true, NULL, new CTestMenu()), NULL, false, CPersonalizeGui::PERSONALIZE_SHOW_NO);
|
personalize.addItem(MENU_MAIN, new CMenuForwarderNonLocalized("Test menu", true, NULL, new CTestMenu()), NULL, false, CPersonalizeGui::PERSONALIZE_SHOW_NO);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user