Commit 438188bb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Add a --enable-werror configure flag

This is mostly aiming at failing our builds when a deprecated method is present
parent 5a8f54f0
......@@ -30,6 +30,11 @@ noinst_PROGRAMS = helloworld tests imem
AM_CPPFLAGS = $(vlc_CFLAGS) -Wextra -Wall
AM_LDFLAGS = $(vlc_LIBS)
if HAVE_WERROR
# This is meant to make our builds fail if a deprecated method is present
AM_CPPFLAGS += -Werror
endif
helloworld_SOURCES = examples/helloworld/main.cpp
imem_SOURCES = examples/imem/imem.cpp
tests_SOURCES = test/main.cpp
......
......@@ -19,6 +19,9 @@ AC_ARG_ENABLE(examples, AC_HELP_STRING([--enable-examples], [build examples prog
AM_CONDITIONAL([HAVE_EXAMPLES], [test "${enable_examples}" = "yes"])
AS_IF([test "${enable_examples}" = "yes"], [PKG_CHECK_MODULES(vlc, libvlc)])
AC_ARG_ENABLE(werror, AC_HELP_STRING([--enable-werror], [build examples with -Werror]))
AM_CONDITIONAL([HAVE_WERROR], [test "${enable_werror}" = "yes"])
AC_CONFIG_FILES([
Makefile
libvlcpp.pc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment