2009-05-29 11:31:47 +00:00
|
|
|
NULL =
|
|
|
|
|
|
|
|
V = @
|
|
|
|
Q = $(V:1=)
|
|
|
|
QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
|
|
|
|
|
2008-04-25 13:37:36 +00:00
|
|
|
SUBDIRS = common $(CLUTTER_COGL)
|
2007-03-26 23:18:39 +00:00
|
|
|
|
2009-02-12 12:42:58 +00:00
|
|
|
BUILT_SOURCES = cogl.h
|
|
|
|
|
2009-02-28 17:54:27 +00:00
|
|
|
EXTRA_DIST = cogl.h.in cogl.pc.in
|
2007-03-27 21:09:11 +00:00
|
|
|
|
2008-04-28 16:57:44 +00:00
|
|
|
DIST_SUBDIRS = common gl gles
|
2009-02-28 17:54:27 +00:00
|
|
|
|
|
|
|
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)
|
2009-05-06 10:18:31 +00:00
|
|
|
|
|
|
|
AM_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
|
|
|
2009-05-29 11:31:47 +00:00
|
|
|
# COGL installed headers
|
2009-05-06 10:18:31 +00:00
|
|
|
cogl_headers = \
|
2009-05-29 11:31:47 +00:00
|
|
|
$(top_srcdir)/clutter/cogl/cogl-bitmap.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-color.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-debug.h \
|
2009-05-29 16:10:27 +00:00
|
|
|
$(top_srcdir)/clutter/cogl/cogl-deprecated.h \
|
2009-05-29 11:31:47 +00:00
|
|
|
$(top_srcdir)/clutter/cogl/cogl-fixed.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-material.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-matrix.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-offscreen.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-path.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-shader.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-texture.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-types.h \
|
|
|
|
$(top_srcdir)/clutter/cogl/cogl-vertex-buffer.h \
|
|
|
|
$(top_builddir)/clutter/cogl/cogl-defines-@CLUTTER_COGL@.h \
|
|
|
|
$(top_builddir)/clutter/cogl/cogl-enum-types.h \
|
|
|
|
$(top_builddir)/clutter/cogl/cogl.h \
|
|
|
|
$(NULL)
|
2009-05-06 10:18:31 +00:00
|
|
|
|
2009-05-29 16:50:58 +00:00
|
|
|
# this is copied in from common/ to make cogl.h work, but we
|
|
|
|
# need to clean it up ourselves once we're done
|
|
|
|
DISTCLEANFILES = cogl-enum-types.h
|
|
|
|
|
2009-05-13 22:14:24 +00:00
|
|
|
# HACK - gobject-introspection can't scan a library in another directory
|
|
|
|
# so we create a libclutter-cogl.la that's just identical to the one
|
|
|
|
# in the subdir
|
|
|
|
noinst_LTLIBRARIES = libclutter-cogl.la
|
2009-05-29 11:50:48 +00:00
|
|
|
libclutter_cogl_la_LIBADD = $(CLUTTER_COGL)/libclutter-cogl-$(CLUTTER_COGL).la
|
2009-05-13 22:14:24 +00:00
|
|
|
libclutter_cogl_la_SOURCES = $(cogl_headers)
|
|
|
|
|
2009-05-29 11:31:47 +00:00
|
|
|
coglincludedir = $(includedir)/clutter-@CLUTTER_API_VERSION@/cogl
|
|
|
|
coglinclude_HEADERS = $(cogl_headers)
|
|
|
|
|
2009-05-14 09:02:06 +00:00
|
|
|
if HAVE_INTROSPECTION
|
2009-05-29 11:50:48 +00:00
|
|
|
Cogl-@CLUTTER_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-cogl.la
|
2009-05-06 10:18:31 +00:00
|
|
|
$(QUIET_GEN)$(INTROSPECTION_SCANNER) -v \
|
|
|
|
--namespace Cogl --nsversion=@CLUTTER_API_VERSION@ \
|
|
|
|
-I$(top_srcdir)/clutter/cogl \
|
|
|
|
-I$(top_srcdir)/clutter/cogl/common \
|
|
|
|
-I$(top_srcdir)/clutter/cogl/@CLUTTER_COGL@ \
|
|
|
|
-I$(top_builddir)/clutter \
|
|
|
|
-DCLUTTER_COMPILATION \
|
|
|
|
--include=GL-1.0 \
|
|
|
|
--include=GObject-2.0 \
|
2009-05-13 22:14:24 +00:00
|
|
|
--library=clutter-cogl \
|
2009-05-06 10:18:31 +00:00
|
|
|
--libtool="$(top_builddir)/doltlibtool" \
|
|
|
|
--pkg gobject-2.0 \
|
|
|
|
--output $@ \
|
|
|
|
$(cogl_headers)
|
|
|
|
|
|
|
|
BUILT_GIRSOURCES = Cogl-@CLUTTER_API_VERSION@.gir
|
|
|
|
|
2009-05-13 22:14:24 +00:00
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(BUILT_GIRSOURCES)
|
2009-05-06 10:18:31 +00:00
|
|
|
|
2009-05-13 22:14:24 +00:00
|
|
|
CLEANFILES += $(BUILT_GIRSOURCES)
|
2009-05-06 10:18:31 +00:00
|
|
|
endif
|