mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 00:50:42 -05:00
4ebc55f2b3
In order to minimize the amount of breakage, while at the same time making it easier to make backward incompatible changes needed to continue turning libmutter into a capable Wayland compositor, make the libmutter and friends (libmutter-clutter, libmutter-cogl*) parallel installable by adding a version number to the name. This changes various filenames, for example what previously was libmutter.so is now libmutter-0.so (assuming the version for now is 0), and libmutter-clutter-1.0.so is now libmutter-clutter-0.so. The pkg-config filenames and GObject introspection has been renamed to reflect this as well. This enables a downstream compositor rely on a specific version of the libmutter API, while gracefully handling API/ABI changes by having to update to the new version at their own pace. https://bugzilla.gnome.org/show_bug.cgi?id=777317
94 lines
3.0 KiB
Makefile
94 lines
3.0 KiB
Makefile
NULL =
|
|
|
|
CLEANFILES =
|
|
DISTCLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
source_c = \
|
|
cogl-pango-display-list.c \
|
|
cogl-pango-fontmap.c \
|
|
cogl-pango-render.c \
|
|
cogl-pango-glyph-cache.c \
|
|
cogl-pango-pipeline-cache.c \
|
|
$(NULL)
|
|
|
|
source_h = cogl-pango.h
|
|
|
|
source_h_priv = \
|
|
cogl-pango-display-list.h \
|
|
cogl-pango-private.h \
|
|
cogl-pango-glyph-cache.h \
|
|
cogl-pango-pipeline-cache.h \
|
|
$(NULL)
|
|
|
|
mutterlibdir = $(libdir)/mutter
|
|
mutterlib_LTLIBRARIES = libmutter-cogl-pango-@LIBMUTTER_API_VERSION@.la
|
|
|
|
libmutter_cogl_pango_@LIBMUTTER_API_VERSION@_la_SOURCES = $(source_c) $(source_h) $(source_h_priv)
|
|
libmutter_cogl_pango_@LIBMUTTER_API_VERSION@_la_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_PANGO_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
libmutter_cogl_pango_@LIBMUTTER_API_VERSION@_la_LIBADD = $(top_builddir)/cogl/libmutter-cogl-$(LIBMUTTER_API_VERSION).la
|
|
libmutter_cogl_pango_@LIBMUTTER_API_VERSION@_la_LIBADD += $(COGL_DEP_LIBS) $(COGL_PANGO_DEP_LIBS) $(COGL_EXTRA_LDFLAGS)
|
|
libmutter_cogl_pango_@LIBMUTTER_API_VERSION@_la_LDFLAGS = \
|
|
-export-dynamic \
|
|
-rpath $(mutterlibdir) \
|
|
-export-symbols-regex "^cogl_pango_.*" \
|
|
-no-undefined \
|
|
-avoid-version
|
|
|
|
AM_CPPFLAGS = \
|
|
-DCOGL_COMPILATION \
|
|
-DG_LOG_DOMAIN=\"CoglPango\" \
|
|
-I$(top_srcdir)/cogl \
|
|
-I$(top_builddir)/cogl \
|
|
-I$(top_srcdir)/cogl/winsys \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir)
|
|
|
|
cogl_base_includedir = $(includedir)/mutter
|
|
cogl_pangoheadersdir = $(cogl_base_includedir)/cogl/cogl-pango
|
|
cogl_pangoheaders_HEADERS = $(source_h)
|
|
|
|
pc_files = mutter-cogl-pango-$(LIBMUTTER_API_VERSION).pc
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = $(pc_files)
|
|
|
|
DISTCLEANFILES += $(pc_files)
|
|
|
|
EXTRA_DIST += cogl-pango.symbols
|
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
|
|
|
INTROSPECTION_GIRS =
|
|
|
|
if HAVE_INTROSPECTION
|
|
INTROSPECTION_COMPILER_ARGS=--includedir=$(top_builddir)/cogl
|
|
|
|
CoglPango-@LIBMUTTER_API_VERSION@.gir: libmutter-cogl-pango-$(LIBMUTTER_API_VERSION).la Makefile
|
|
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_NAMESPACE = CoglPango
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_VERSION = @LIBMUTTER_API_VERSION@
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_LIBS = $(top_builddir)/cogl/libmutter-cogl-$(LIBMUTTER_API_VERSION).la libmutter-cogl-pango-$(LIBMUTTER_API_VERSION).la
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_FILES = $(source_h) $(source_c)
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_CFLAGS = $(AM_CPPFLAGS) $(COGL_DEP_CFLAGS) $(COGL_PANGO_DEP_CFLAGS)
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_INCLUDES = Pango-1.0 PangoCairo-1.0
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_EXPORT_PACKAGES = mutter-cogl-pango-@LIBMUTTER_API_VERSION@
|
|
CoglPango_@LIBMUTTER_API_VERSION@_gir_SCANNERFLAGS = \
|
|
--warn-all \
|
|
--identifier-prefix=CoglPango \
|
|
--symbol-prefix=cogl_pango \
|
|
--c-include='cogl-pango/cogl-pango.h' \
|
|
--include-uninstalled=$(top_builddir)/cogl/Cogl-@LIBMUTTER_API_VERSION@.gir
|
|
|
|
INTROSPECTION_GIRS += CoglPango-@LIBMUTTER_API_VERSION@.gir
|
|
|
|
girdir = $(mutterlibdir)
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
|
|
|
typelibdir = $(mutterlibdir)
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
|
endif
|