[cogl/wip/cogl-1.12: 6/9] Don't build cogl-gles2-gears if configured with --disable-cogl-gles2



commit 0e5f303c1940e5255c570eb28f30b9e5cb215664
Author: Neil Roberts <neil linux intel com>
Date:   Fri May 18 11:02:49 2012 +0100

    Don't build cogl-gles2-gears if configured with --disable-cogl-gles2
    
    The cogl-gles2-gears example will fail to build unless
    --enable-cogl-gles2 is enabled in the configure script because it
    depends on libcogl-gles2. This patch makes it only conditionally build
    the example depending on the BUILD_COGL_GLES2 automake conditional.
    
    Reviewed-by: Robert Bragg <robert linux intel com>

 examples/Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 7bb4b9a..893ff7a 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -24,7 +24,7 @@ cogl_info_SOURCES = cogl-info.c
 cogl_info_LDADD = $(common_ldadd)
 
 if USE_GLIB
-programs += cogl-hello cogl-msaa  cogl-gles2-context cogl-gles2-gears
+programs += cogl-hello cogl-msaa cogl-gles2-context
 examples_datadir = $(pkgdatadir)/examples-data
 examples_data_DATA =
 
@@ -64,9 +64,12 @@ endif
 cogl_gles2_context_SOURCES = cogl-gles2-context.c
 cogl_gles2_context_LDADD = $(common_ldadd)
 
+if BUILD_COGL_GLES2
+programs += cogl-gles2-gears
 cogl_gles2_gears_SOURCES = cogl-gles2-gears.c
 cogl_gles2_gears_CFLAGS = -I$(top_srcdir)/cogl-gles2 $(AM_CFLAGS)
 cogl_gles2_gears_LDADD = $(common_ldadd) $(top_builddir)/cogl-gles2/libcogl-gles2.la
+endif
 
 endif #USE_GLIB
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]