Sfoglia il codice sorgente

build: add flags to disable unwanted builds

For now the flags are: --disable-doc --disable-test
--disable-samples --disable-tutorial.
legacy
Sam Hocevar 8 anni fa
parent
commit
14eafb48f5
8 ha cambiato i file con 27 aggiunte e 1 eliminazioni
  1. +13
    -0
      configure.ac
  2. +2
    -1
      doc/Makefile.am
  3. +2
    -0
      doc/samples/Makefile.am
  4. +2
    -0
      doc/samples/math/Makefile.am
  5. +2
    -0
      doc/samples/meshviewer/Makefile.am
  6. +2
    -0
      doc/samples/sandbox/Makefile.am
  7. +2
    -0
      doc/tutorial/Makefile.am
  8. +2
    -0
      src/t/Makefile.am

+ 13
- 0
configure.ac Vedi File

@@ -91,6 +91,13 @@ AC_ARG_ENABLE(release,
[ --enable-release build final release of the game (default no)])
AC_ARG_ENABLE(experimental,
[ --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,
[ --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")


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?
AM_CONDITIONAL(HAVE_NONFREE, true)



+ 2
- 1
doc/Makefile.am Vedi File

@@ -60,6 +60,7 @@ endif
$(mkinstalldirs) $(DESTDIR)$(mandir)/man1

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


+ 2
- 0
doc/samples/Makefile.am Vedi File

@@ -6,7 +6,9 @@ SUBDIRS = math meshviewer sandbox
bench: benchsuite$(EXEEXT)
./benchsuite$(EXEEXT)

if BUILD_SAMPLES
noinst_PROGRAMS = benchsuite btphystest nacl_phystest simplex
endif

benchsuite_SOURCES = benchsuite.cpp \
benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \


+ 2
- 0
doc/samples/math/Makefile.am Vedi File

@@ -1,7 +1,9 @@

include $(top_srcdir)/build/autotools/common.am

if BUILD_SAMPLES
noinst_PROGRAMS = pi poly
endif

pi_SOURCES = pi.cpp
pi_CPPFLAGS = $(AM_CPPFLAGS)


+ 2
- 0
doc/samples/meshviewer/Makefile.am Vedi File

@@ -1,7 +1,9 @@

include $(top_srcdir)/build/autotools/common.am

if BUILD_SAMPLES
noinst_PROGRAMS = meshviewer
endif

meshviewer_SOURCES = meshviewer.cpp meshviewer.h \
scenesetup.cpp scenesetup.h \


+ 2
- 0
doc/samples/sandbox/Makefile.am Vedi File

@@ -1,7 +1,9 @@

include $(top_srcdir)/build/autotools/common.am

if BUILD_SAMPLES
bin_PROGRAMS = sample
endif

sample_SOURCES = sample.cpp
sample_CPPFLAGS = $(AM_CPPFLAGS)


+ 2
- 0
doc/tutorial/Makefile.am Vedi File

@@ -1,9 +1,11 @@

include $(top_srcdir)/build/autotools/common.am

if BUILD_TUTORIAL
noinst_PROGRAMS = 01_triangle 02_cube 03_noise 04_texture 05_easymesh \
06_sprite 07_input 08_fbo 11_fractal \
12_voronoi 13_shader_builder 14_lol_lua
endif

01_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx
01_triangle_CPPFLAGS = $(AM_CPPFLAGS)


+ 2
- 0
src/t/Makefile.am Vedi File

@@ -1,9 +1,11 @@

include $(top_srcdir)/build/autotools/common.am

if BUILD_TEST
noinst_PROGRAMS = $(testsuite)

TESTS = $(testsuite)
endif

# Conditionally built for now because of STLport issues
if !LOL_USE_ANDROID


Caricamento…
Annulla
Salva