Skip to content

Commit 00ef809

Browse files
add option to disable installing examples and example assets
This still installs just the "planes" binary - but no other supporting data. Signed-off-by: Joshua Henderson <[email protected]>
1 parent d8addb3 commit 00ef809

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

apps/Makefile.am

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
AM_CFLAGS = $(WARN_CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/include
22

3-
bin_PROGRAMS = planes render grab
3+
bin_PROGRAMS = planes
4+
5+
if ENABLE_EXAMPLES
6+
bin_PROGRAMS += render grab
47

58
if HAVE_DIRECTFB
69
bin_PROGRAMS += dfblayers
710
endif
11+
endif
812

913
planes_SOURCES = planes.c
1014
planes_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(CAIRO_CFLAGS)
1115
planes_LDADD = $(top_builddir)/src/libplanes.la $(LIBDRM_LIBS) $(CAIRO_LIBS)
1216
planesdir = $(prefix)/share/planes
17+
if ENABLE_EXAMPLES
1318
planes_DATA = $(wildcard $(top_srcdir)/configs/*.png) \
1419
$(wildcard $(top_srcdir)/configs/*.config)
20+
endif
1521
planes_LDFLAGS = $(AM_LDFLAGS)
1622

1723
render_SOURCES = render.c

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ if test "x$PYTHON" = xyes; then
137137
fi
138138
AM_CONDITIONAL(HAVE_PYTHON, [test "x$have_python" = xyes])
139139

140+
AC_ARG_ENABLE([examples],
141+
[AS_HELP_STRING([--enable-examples], [build examples [default=yes]])],
142+
[enable_examples=$enableval], [enable_examples=yes])
143+
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x${enable_examples}" = xyes])
144+
140145
AC_USE_SYSTEM_EXTENSIONS
141146
AC_SYS_LARGEFILE
142147
AC_FUNC_ALLOCA

0 commit comments

Comments
 (0)