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.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 9af04f0d8813b7f6f7117e1cc2a38ae2b8d04cdd)
This commit is contained in:
Damien Lespiau 2012-09-15 15:55:16 +01:00 committed by Robert Bragg
parent a229a06fb8
commit 4a229cf708

View File

@ -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 */