[cairo-commit] boilerplate/Makefile.win32.features build/Makefile.win32.features-h configure.ac src/Makefile.win32.features util/cairo.modules

Chris Wilson ickle at kemper.freedesktop.org
Mon Sep 14 02:10:59 PDT 2009


 boilerplate/Makefile.win32.features |    8 --------
 build/Makefile.win32.features-h     |    1 -
 configure.ac                        |    5 +++--
 src/Makefile.win32.features         |    8 --------
 util/cairo.modules                  |    1 +
 5 files changed, 4 insertions(+), 19 deletions(-)

New commits:
commit 9c2790ccc48392bfe039626ebb383070aa18fe56
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Sep 14 10:08:57 2009 +0100

    [build] Add a default message for when GLEW isn't built
    
    And it appears I touched the build system again and autoregenerated the
    feature headers.

diff --git a/boilerplate/Makefile.win32.features b/boilerplate/Makefile.win32.features
index 5f8018c..3e922ef 100644
--- a/boilerplate/Makefile.win32.features
+++ b/boilerplate/Makefile.win32.features
@@ -169,14 +169,6 @@ enabled_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)
 endif
 
-supported_cairo_boilerplate_headers += $(cairo_boilerplate_glew_headers)
-all_cairo_boilerplate_headers += $(cairo_boilerplate_glew_headers)
-all_cairo_boilerplate_private += $(cairo_boilerplate_glew_private)
-all_cairo_boilerplate_sources += $(cairo_boilerplate_glew_sources)
-enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glew_headers)
-enabled_cairo_boilerplate_private += $(cairo_boilerplate_glew_private)
-enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glew_sources)
-
 unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
 all_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
 all_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
diff --git a/build/Makefile.win32.features-h b/build/Makefile.win32.features-h
index e49f6b0..8585498 100644
--- a/build/Makefile.win32.features-h
+++ b/build/Makefile.win32.features-h
@@ -50,7 +50,6 @@ endif
 ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)
 	@echo "#define CAIRO_HAS_PNG_FUNCTIONS 1" >> src/cairo-features.h
 endif
-	@echo "#define CAIRO_HAS_GLEW_FUNCTIONS 1" >> src/cairo-features.h
 ifeq ($(CAIRO_HAS_GL_SURFACE),1)
 	@echo "#define CAIRO_HAS_GL_SURFACE 1" >> src/cairo-features.h
 endif
diff --git a/configure.ac b/configure.ac
index ba4a49d..b4b1cc3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -240,6 +240,7 @@ CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [
 ])
 
 dnl ===========================================================================
+use_glew="no (not required by any backend)"
 CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [
   gl_REQUIRES="gl"
   PKG_CHECK_MODULES(gl, $gl_REQUIRES,, [
@@ -255,10 +256,10 @@ CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [
 	       [AC_CHECK_HEADER(GL/glew.h, [have_glew="yes"], [])])
   if test "x$have_glew" = "xyes"; then
     gl_NONPKGCONFIG_LIBS="-lGLEW $gl_NONPKGCONFIG_LIBS"
-    use_glew="system library"
+    use_glew="yes (system library)"
   else
     CAIRO_ENABLE_FUNCTIONS(glew, GLEW, always)
-    use_glew="private copy"
+    use_glew="yes (private copy)"
     CAIRO_CFLAGS="$CAIRO_CFLAGS -I\$(top_srcdir)/src/glew"
   fi
   need_glx_functions=yes
diff --git a/src/Makefile.win32.features b/src/Makefile.win32.features
index ef72524..4e55642 100644
--- a/src/Makefile.win32.features
+++ b/src/Makefile.win32.features
@@ -231,14 +231,6 @@ ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)
 enabled_cairo_pkgconf += cairo-png.pc
 endif
 
-supported_cairo_headers += $(cairo_glew_headers)
-all_cairo_headers += $(cairo_glew_headers)
-all_cairo_private += $(cairo_glew_private)
-all_cairo_sources += $(cairo_glew_sources)
-enabled_cairo_headers += $(cairo_glew_headers)
-enabled_cairo_private += $(cairo_glew_private)
-enabled_cairo_sources += $(cairo_glew_sources)
-
 unsupported_cairo_headers += $(cairo_gl_headers)
 all_cairo_headers += $(cairo_gl_headers)
 all_cairo_private += $(cairo_gl_private)
diff --git a/util/cairo.modules b/util/cairo.modules
index b83114d..d41ea1b 100644
--- a/util/cairo.modules
+++ b/util/cairo.modules
@@ -18,6 +18,7 @@
     <dependencies>
       <dep package="pixman"/>
       <dep package="fontconfig"/>
+      <dep package="libGL"/>
       <dep package="glitz"/>
     </dependencies>
     <after>


More information about the cairo-commit mailing list