configure: option to disable reflector

The option will likely not be used alone but rather implicitly by
--disable-all and it can be used to speed-up the compilation if reflector
is not needed (and maybe also if its compilation is failing).
This commit is contained in:
Martin Pulec
2023-08-08 13:55:41 +02:00
parent d17c5ea24c
commit cb8d96d210
2 changed files with 14 additions and 0 deletions

View File

@@ -52,7 +52,9 @@ SYSTEM = @system@
GUI_EXE ?= @GUI_EXE@
GUI_TARGET = @GUI_TARGET@
QT_CFLAGS = @QT_CFLAGS@
ifeq (@REFLECTOR_REQ@,yes)
REFLECTOR_TARGET ?= bin/hd-rum-transcode$(EXEEXT)
endif
TEST_TARGET = bin/run_tests$(EXEEXT)
PACKAGE_TARNAME ?= @PACKAGE_TARNAME@

View File

@@ -3245,6 +3245,18 @@ fi
ENSURE_FEATURE_PRESENT([$sdl_mixer_req], [$sdl_mixer], [SDL_mixer deps not found!])
# -----------------------------------------------------------------------------
# Reflector
# -----------------------------------------------------------------------------
AC_ARG_ENABLE(reflector,
AS_HELP_STRING([--disable-reflector], [disables reflector (default is enabled)]),
[reflector_req=$enableval],
[reflector_req=$build_default])
if test "$reflector_req" != no; then
REFLECTOR_REQ=yes
fi
AC_SUBST(REFLECTOR_REQ)
# -------------------------------------------------------------------------------------------------
# We need to add libraries then
# -------------------------------------------------------------------------------------------------