[cogl/wip/standalone: 6/11] config: Don't read a config file at startup when using --disable-glib



commit 70f2e5c68f96d28c46754df79f766a7c0bdd4bcf
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sat Sep 15 15:55:16 2012 +0100

    config: Don't read a config file at startup when using --disable-glib
    
    GKeyFile is a bit too much to import in a standalone build for my taste
    as it depends on the encoding part of glib.

 cogl/cogl-config.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-config.c b/cogl/cogl-config.c
index a000dd9..5731783 100644
--- a/cogl/cogl-config.c
+++ b/cogl/cogl-config.c
@@ -38,6 +38,16 @@ char *_cogl_config_renderer;
 char *_cogl_config_disable_gl_extensions;
 char *_cogl_config_override_gl_version;
 
+#ifndef COGL_HAS_GLIB_SUPPORT
+
+void
+_cogl_config_read (void)
+{
+
+}
+
+#else /* COGL_HAS_GLIB_SUPPORT */
+
 /* Array of config options that just set a global string */
 static const struct
 {
@@ -127,3 +137,5 @@ _cogl_config_read (void)
 
   g_key_file_free (key_file);
 }
+
+#endif /* COGL_HAS_GLIB_SUPPORT */



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