Skip to content

Commit

Permalink
configure: option to disable reflector
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
MartinPulec committed Aug 8, 2023
1 parent 48498fc commit 2b6b41c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ SYSTEM = @system@
GUI_EXE ?= @GUI_EXE@
GUI_TARGET = @GUI_TARGET@
QT_CFLAGS = @QT_CFLAGS@
REFLECTOR_TARGET ?= bin/hd-rum-transcode$(EXEEXT)
ifeq ($(origin REFLECTOR_TARGET), undefined)
REFLECTOR_TARGET = @REFLECTOR_TARGET@$(EXEEXT)
endif
TEST_TARGET = bin/run_tests$(EXEEXT)

PACKAGE_TARNAME ?= @PACKAGE_TARNAME@
Expand Down
13 changes: 13 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,19 @@ 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])
REFLECTOR_TARGET=
if test "$reflector_req" != no; then
REFLECTOR_TARGET=bin/hd-rum-transcode
fi
AC_SUBST(REFLECTOR_TARGET)

# -------------------------------------------------------------------------------------------------
# We need to add libraries then
# -------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 2b6b41c

Please sign in to comment.