From fe70101856332663f600df144b39d2638b3d0570 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Wed, 11 Jun 2014 12:36:26 +0200 Subject: Introduce HAVE_FEATURE_GLTF to enable/disable gltf related code When it is a release build then enable it only on Windows and Linux. Change-Id: I7c462aeb75e6ab60eeaa0fa42ca7853a6369b742 --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 298aa3c5f4ae..5c78dff5ee72 100644 --- a/configure.ac +++ b/configure.ac @@ -10512,12 +10512,18 @@ AC_SUBST(ENABLE_OPENCL) dnl =================================================================== dnl Check whether to enable glTF support dnl =================================================================== +AC_MSG_CHECKING([whether to enable glTF support]) +if test "$ENABLE_RELEASE_BUILD" = "TRUE"; then + if test $_os == iOS -o $_os == Android -o $_os = Darwin; then + enable_gltf=no + fi +fi ENABLE_GLTF= -AC_MSG_CHECKING([whether to enable glTF support]) if test "x$enable_gltf" != "xno"; then ENABLE_GLTF=TRUE AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_FEATURE_GLTF,1) BUILD_TYPE="$BUILD_TYPE LIBGLTF" if test "$test_freetype" = "no"; then BUILD_TYPE="$BUILD_TYPE FREETYPE" -- cgit