@@ -15,10 +15,12 @@ dnl | |||||
# --------------------- | # --------------------- | ||||
AC_DEFUN([LOL_AC_CHECK_OPENGL], | AC_DEFUN([LOL_AC_CHECK_OPENGL], | ||||
[ | [ | ||||
ac_cv_my_have_gl="no" | |||||
ac_cv_my_have_glew="no" | ac_cv_my_have_glew="no" | ||||
if test "${enable_gl}" != "no"; then | if test "${enable_gl}" != "no"; then | ||||
LOL_AC_CHECK_OPENGL_INNER() | LOL_AC_CHECK_OPENGL_INNER() | ||||
fi | 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") | AM_CONDITIONAL(LOL_USE_GLEW, test "${ac_cv_my_have_glew}" != "no") | ||||
]) | ]) | ||||
@@ -7,7 +7,10 @@ bench: benchsuite$(EXEEXT) | |||||
./benchsuite$(EXEEXT) | ./benchsuite$(EXEEXT) | ||||
if BUILD_SAMPLES | 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 | endif | ||||
bluenoise_SOURCES = bluenoise.cpp | bluenoise_SOURCES = bluenoise.cpp | ||||
@@ -2,8 +2,10 @@ | |||||
include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
if BUILD_SAMPLES | if BUILD_SAMPLES | ||||
if LOL_USE_GL | |||||
noinst_PROGRAMS = meshviewer | noinst_PROGRAMS = meshviewer | ||||
endif | endif | ||||
endif | |||||
meshviewer_SOURCES = meshviewer.cpp meshviewer.h \ | meshviewer_SOURCES = meshviewer.cpp meshviewer.h \ | ||||
scenesetup.cpp scenesetup.h \ | scenesetup.cpp scenesetup.h \ | ||||
@@ -2,12 +2,17 @@ | |||||
include $(top_srcdir)/build/autotools/common.am | include $(top_srcdir)/build/autotools/common.am | ||||
if BUILD_TUTORIAL | 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 | 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_SOURCES = 01_triangle.cpp 01_triangle.lolfx | ||||
01_triangle_CPPFLAGS = $(AM_CPPFLAGS) | 01_triangle_CPPFLAGS = $(AM_CPPFLAGS) | ||||
01_triangle_DEPENDENCIES = @LOL_DEPS@ | 01_triangle_DEPENDENCIES = @LOL_DEPS@ | ||||
@@ -7,9 +7,23 @@ noinst_PROGRAMS = $(testsuite) | |||||
TESTS = $(testsuite) | TESTS = $(testsuite) | ||||
endif | 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 | endif | ||||
test_base_SOURCES = test-common.cpp \ | test_base_SOURCES = test-common.cpp \ | ||||