webif: add option to disable webif content

This commit is contained in:
2022-11-20 17:13:02 +01:00
parent 83f6267e0a
commit b18adf0375
2 changed files with 16 additions and 1 deletions

View File

@@ -156,6 +156,17 @@ AC_ARG_WITH(default-oled-theme,
[default_oled_theme=""]) [default_oled_theme=""])
AC_DEFINE_UNQUOTED([DEFAULT_OLED_THEME], ["$default_oled_theme"], [Default theme for oled.]) AC_DEFINE_UNQUOTED([DEFAULT_OLED_THEME], ["$default_oled_theme"], [Default theme for oled.])
# webif content
AC_ARG_WITH(webif,
AS_HELP_STRING([--without-webif], [disable installation of webif content within defined public httpd path provided by yWeb @<:@default it is enabled@:>@]),
[ENABLE_WEBIF="$withval"],
[ENABLE_WEBIF="yes"])
AM_CONDITIONAL(ENABLE_WEBIF,test "$ENABLE_WEBIF" = "yes")
if test "$ENABLE_WEBIF" = "yes"; then
AC_DEFINE(ENABLE_WEBIF, 1, [Enable installation of webif content within defined public httpd path provided by yWeb.])
fi
AC_MSG_CHECKING(target) AC_MSG_CHECKING(target)
if test "$TARGET" = "native"; then if test "$TARGET" = "native"; then

View File

@@ -15,7 +15,6 @@ SUBDIRS = \
weather \ weather \
webradio \ webradio \
webtv \ webtv \
y-web \
zapit zapit
if ENABLE_LUA if ENABLE_LUA
@@ -27,3 +26,8 @@ if ENABLE_GRAPHLCD
SUBDIRS += \ SUBDIRS += \
oled oled
endif endif
if ENABLE_WEBIF
SUBDIRS += \
y-web
endif