For now the flags are: --disable-doc --disable-test --disable-samples --disable-tutorial.legacy
| @@ -91,6 +91,13 @@ AC_ARG_ENABLE(release, | |||||
| [ --enable-release build final release of the game (default no)]) | [ --enable-release build final release of the game (default no)]) | ||||
| AC_ARG_ENABLE(experimental, | AC_ARG_ENABLE(experimental, | ||||
| [ --enable-experimental experimental build (default no)]) | [ --enable-experimental experimental build (default no)]) | ||||
| AC_ARG_ENABLE(test, | |||||
| [ --enable-test build test suite (default yes)]) | |||||
| AC_ARG_ENABLE(tutorial, | |||||
| [ --enable-tutorial build tutorial applications (default yes)]) | |||||
| AC_ARG_ENABLE(samples, | |||||
| [ --enable-samples build sample applications (default yes)]) | |||||
| AC_ARG_ENABLE(doc, | AC_ARG_ENABLE(doc, | ||||
| [ --enable-doc build documentation (needs doxygen and LaTeX)]) | [ --enable-doc build documentation (needs doxygen and LaTeX)]) | ||||
| @@ -236,6 +243,12 @@ dnl Can we build neercs? | |||||
| AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no") | AM_CONDITIONAL(BUILD_NEERCS, test "${ac_cv_my_have_caca}" != "no") | ||||
| dnl Optional features | |||||
| AM_CONDITIONAL(BUILD_TEST, test "${enable_test}" != "no") | |||||
| AM_CONDITIONAL(BUILD_TUTORIAL, test "${enable_tutorial}" != "no") | |||||
| AM_CONDITIONAL(BUILD_SAMPLES, test "${enable_samples}" != "no") | |||||
| dnl Should we ship non-free data? | dnl Should we ship non-free data? | ||||
| AM_CONDITIONAL(HAVE_NONFREE, true) | AM_CONDITIONAL(HAVE_NONFREE, true) | ||||
| @@ -60,6 +60,7 @@ endif | |||||
| $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 | ||||
| uninstall-local: | uninstall-local: | ||||
| rm -f $(DESTDIR)$(datadir)/doc/libcucul-dev | |||||
| rmdir $(DESTDIR)$(datadir)/doc/lolengine-dev/html 2>/dev/null || true | |||||
| rmdir $(DESTDIR)$(datadir)/doc/lolengine-dev 2>/dev/null || true | |||||
| rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true | rmdir $(DESTDIR)$(datadir)/doc 2>/dev/null || true | ||||
| @@ -6,7 +6,9 @@ SUBDIRS = math meshviewer sandbox | |||||
| bench: benchsuite$(EXEEXT) | bench: benchsuite$(EXEEXT) | ||||
| ./benchsuite$(EXEEXT) | ./benchsuite$(EXEEXT) | ||||
| if BUILD_SAMPLES | |||||
| noinst_PROGRAMS = benchsuite btphystest nacl_phystest simplex | noinst_PROGRAMS = benchsuite btphystest nacl_phystest simplex | ||||
| endif | |||||
| benchsuite_SOURCES = benchsuite.cpp \ | benchsuite_SOURCES = benchsuite.cpp \ | ||||
| benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \ | benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \ | ||||
| @@ -1,7 +1,9 @@ | |||||
| include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
| if BUILD_SAMPLES | |||||
| noinst_PROGRAMS = pi poly | noinst_PROGRAMS = pi poly | ||||
| endif | |||||
| pi_SOURCES = pi.cpp | pi_SOURCES = pi.cpp | ||||
| pi_CPPFLAGS = $(AM_CPPFLAGS) | pi_CPPFLAGS = $(AM_CPPFLAGS) | ||||
| @@ -1,7 +1,9 @@ | |||||
| include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
| if BUILD_SAMPLES | |||||
| noinst_PROGRAMS = meshviewer | noinst_PROGRAMS = meshviewer | ||||
| endif | |||||
| meshviewer_SOURCES = meshviewer.cpp meshviewer.h \ | meshviewer_SOURCES = meshviewer.cpp meshviewer.h \ | ||||
| scenesetup.cpp scenesetup.h \ | scenesetup.cpp scenesetup.h \ | ||||
| @@ -1,7 +1,9 @@ | |||||
| include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
| if BUILD_SAMPLES | |||||
| bin_PROGRAMS = sample | bin_PROGRAMS = sample | ||||
| endif | |||||
| sample_SOURCES = sample.cpp | sample_SOURCES = sample.cpp | ||||
| sample_CPPFLAGS = $(AM_CPPFLAGS) | sample_CPPFLAGS = $(AM_CPPFLAGS) | ||||
| @@ -1,9 +1,11 @@ | |||||
| include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
| if BUILD_TUTORIAL | |||||
| noinst_PROGRAMS = 01_triangle 02_cube 03_noise 04_texture 05_easymesh \ | noinst_PROGRAMS = 01_triangle 02_cube 03_noise 04_texture 05_easymesh \ | ||||
| 06_sprite 07_input 08_fbo 11_fractal \ | 06_sprite 07_input 08_fbo 11_fractal \ | ||||
| 12_voronoi 13_shader_builder 14_lol_lua | 12_voronoi 13_shader_builder 14_lol_lua | ||||
| endif | |||||
| 01_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx | 01_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx | ||||
| 01_triangle_CPPFLAGS = $(AM_CPPFLAGS) | 01_triangle_CPPFLAGS = $(AM_CPPFLAGS) | ||||
| @@ -1,9 +1,11 @@ | |||||
| include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
| if BUILD_TEST | |||||
| noinst_PROGRAMS = $(testsuite) | noinst_PROGRAMS = $(testsuite) | ||||
| TESTS = $(testsuite) | TESTS = $(testsuite) | ||||
| endif | |||||
| # Conditionally built for now because of STLport issues | # Conditionally built for now because of STLport issues | ||||
| if !LOL_USE_ANDROID | if !LOL_USE_ANDROID | ||||