Don't build Cogl.gir against installed Clutter library
Don't build Cogl.gir against installed Clutter library

Passing:

 --library=clutter-@CLUTTER_FLAVOUR@-@CLUTTER_API_VERSION@

to g-ir-scanner, when building Cogl was causing g-ir-scanner to
link the introspection program against the installed clutter library,
if it existed or fail otherwise. Instead copy the handling from
the json/ directory where we link against the convenience library
to scan, and do the generation of the typelib later in the
main clutter/directory.

Fixes bug:

  http://bugzilla.openedhand.com/show_bug.cgi?id=1594

Signed-off-by: Emmanuele Bassi <049ee2061f71220e5aaf33f5be422fc2a2b06a44@linux.intel.com>

spatulasnout/cogl,djdeath/cogl-android,spatulasnout/cogl,gcampax/cogl,djdeath/cogl,Distrotech/cogl,Distrotech/cogl,djdeath/cogl,collects/cogl,djdeath/cogl-android,Distrotech/cogl,gcampax/cogl,collects/cogl,djdeath/cogl-android,gcampax/cogl,gcampax/cogl,djdeath/cogl,Distrotech/cogl