Skip to content

Commit

Permalink
add option to disable installing examples and example assets
Browse files Browse the repository at this point in the history
This still installs just the "planes" binary - but no other supporting data.

Signed-off-by: Joshua Henderson <[email protected]>
  • Loading branch information
joshua-henderson committed Feb 13, 2020
1 parent d8addb3 commit 00ef809
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
AM_CFLAGS = $(WARN_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include

bin_PROGRAMS = planes render grab
bin_PROGRAMS = planes

if ENABLE_EXAMPLES
bin_PROGRAMS += render grab

if HAVE_DIRECTFB
bin_PROGRAMS += dfblayers
endif
endif

planes_SOURCES = planes.c
planes_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(CAIRO_CFLAGS)
planes_LDADD = $(top_builddir)/src/libplanes.la $(LIBDRM_LIBS) $(CAIRO_LIBS)
planesdir = $(prefix)/share/planes
if ENABLE_EXAMPLES
planes_DATA = $(wildcard $(top_srcdir)/configs/*.png) \
$(wildcard $(top_srcdir)/configs/*.config)
endif
planes_LDFLAGS = $(AM_LDFLAGS)

render_SOURCES = render.c
Expand Down
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ if test "x$PYTHON" = xyes; then
fi
AM_CONDITIONAL(HAVE_PYTHON, [test "x$have_python" = xyes])

AC_ARG_ENABLE([examples],
[AS_HELP_STRING([--enable-examples], [build examples [default=yes]])],
[enable_examples=$enableval], [enable_examples=yes])
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x${enable_examples}" = xyes])

AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_FUNC_ALLOCA
Expand Down

0 comments on commit 00ef809

Please sign in to comment.