mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
4a3a3e1cf3
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
23 lines
464 B
Makefile
23 lines
464 B
Makefile
SUBDIRS = common $(CLUTTER_COGL)
|
|
|
|
BUILT_SOURCES = cogl.h
|
|
|
|
EXTRA_DIST = cogl.h.in cogl.pc.in
|
|
|
|
DIST_SUBDIRS = common gl gles
|
|
|
|
pc_files = \
|
|
cogl-$(CLUTTER_COGL)-$(CLUTTER_API_VERSION).pc \
|
|
cogl-$(CLUTTER_API_VERSION).pc
|
|
|
|
cogl-$(CLUTTER_API_VERSION).pc: cogl.pc
|
|
$(QUIET_GEN)cp -f $< $(@F)
|
|
|
|
cogl-$(CLUTTER_COGL)-$(CLUTTER_API_VERSION).pc: cogl.pc
|
|
$(QUIET_GEN)cp -f $< $(@F)
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = $(pc_files)
|
|
|
|
CLEANFILES = $(pc_files)
|