Add pkg-config file for COGL
authorEmmanuele Bassi <ebassi@linux.intel.com>
Sat, 28 Feb 2009 17:54:27 +0000 (17:54 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 10 Mar 2009 12:38:02 +0000 (12:38 +0000)
commit4a3a3e1cf344b992b2f978e5f2676cb0957b504a
treead2e406f9e7b3c214a7b42b0203134000f08fb00
parentb030756dca23594e612fcfc3aac1ba3115f5893c
Add pkg-config file for COGL

COGL should ship its own pkg-config file, obviously still pointing
to Clutter's compiler flags and linking options, for COGL-specific
variables that might be queried at configure time.

For instance, it's easier (and less verbose) to do:

  PKG_CHECK_EXISTS([cogl-gl-1.0],
                   [has_gl_backend=yes],
                   [has_gl_backend=no])

Than doing:

  AC_MSG_CHECKING([for GL support in COGL])
  cogl_backend=`$PKG_CONFIG --variable=cogl clutter-0.9`
  if test x$cogl_backend = xgl; then
    has_gl_backend=yes
    AC_MSG_RESULT([found])
  else
    has_gl_backend=no
    AC_MSG_RESULT([not found])
  fi
.gitignore
clutter/cogl/Makefile.am
clutter/cogl/cogl.pc.in [new file with mode: 0644]
configure.ac