Browse Source

Fix a few build issues when features are disabled.

legacy
Sam Hocevar 7 years ago
parent
commit
c7fa8939f5
5 changed files with 34 additions and 8 deletions
  1. +2
    -0
      build/autotools/m4/lol-gl.m4
  2. +4
    -1
      doc/samples/Makefile.am
  3. +2
    -0
      doc/samples/meshviewer/Makefile.am
  4. +9
    -4
      doc/tutorial/Makefile.am
  5. +17
    -3
      src/t/Makefile.am

+ 2
- 0
build/autotools/m4/lol-gl.m4 View File

@@ -15,10 +15,12 @@ dnl
# ---------------------
AC_DEFUN([LOL_AC_CHECK_OPENGL],
[
ac_cv_my_have_gl="no"
ac_cv_my_have_glew="no"
if test "${enable_gl}" != "no"; then
LOL_AC_CHECK_OPENGL_INNER()
fi
AM_CONDITIONAL(LOL_USE_GL, test "${ac_cv_my_have_gl}" != "no")
AM_CONDITIONAL(LOL_USE_GLEW, test "${ac_cv_my_have_glew}" != "no")
])



+ 4
- 1
doc/samples/Makefile.am View File

@@ -7,7 +7,10 @@ bench: benchsuite$(EXEEXT)
./benchsuite$(EXEEXT)

if BUILD_SAMPLES
noinst_PROGRAMS = bluenoise benchsuite btphystest nacl_phystest simplex
noinst_PROGRAMS = bluenoise benchsuite simplex
if LOL_USE_GL
noinst_PROGRAMS += btphystest nacl_phystest
endif
endif

bluenoise_SOURCES = bluenoise.cpp


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

@@ -2,8 +2,10 @@
include $(top_srcdir)/build/autotools/common.am

if BUILD_SAMPLES
if LOL_USE_GL
noinst_PROGRAMS = meshviewer
endif
endif

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


+ 9
- 4
doc/tutorial/Makefile.am View File

@@ -2,12 +2,17 @@
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 09_sound 11_fractal \
12_voronoi 13_shader_builder 14_lol_lua 15_lolimgui \
16_movie
noinst_PROGRAMS = $(tutorials)
endif

tutorials =
if LOL_USE_GL
tutorials += 01_triangle 02_cube 03_noise 04_texture 05_easymesh \
06_sprite 07_input 08_fbo 09_sound 11_fractal \
12_voronoi 13_shader_builder 14_lol_lua 15_lolimgui
endif
tutorials += 16_movie

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


+ 17
- 3
src/t/Makefile.am View File

@@ -7,9 +7,23 @@ noinst_PROGRAMS = $(testsuite)
TESTS = $(testsuite)
endif

# Conditionally built for now because of STLport issues
if !LOL_USE_ANDROID
testsuite = test-base test-math test-sys test-image test-entity
testsuite = test-base test-math

if LOL_USE_GL
testsuite += test-entity # FIXME: this should not really depend on GL
testsuite += test-sys
endif

if LOL_USE_GDIPLUS
testsuite += test-image
else
if LOL_USE_LIBPNG
testsuite += test-image
else
if LOL_USE_IMLIB2
testsuite += test-image
endif
endif
endif

test_base_SOURCES = test-common.cpp \


Loading…
Cancel
Save