Skip to content
Commits on Source (2)
......@@ -27,9 +27,14 @@ pkgconfig_DATA = libvlcpp.pc
if HAVE_EXAMPLES
noinst_PROGRAMS = helloworld tests imem
AM_CPPFLAGS = $(vlc_CFLAGS)
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
......