mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01: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
32 lines
771 B
Makefile
32 lines
771 B
Makefile
# preamble
|
|
|
|
NULL =
|
|
|
|
mutterlibdir = $(libdir)/mutter
|
|
mutterlib_LTLIBRARIES = libmutter-cogl-gles2-@LIBMUTTER_API_VERSION@.la
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir)
|
|
|
|
AM_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
|
|
libmutter_cogl_gles2_@LIBMUTTER_API_VERSION@_la_SOURCES = cogl-gles2-api.c
|
|
libmutter_cogl_gles2_@LIBMUTTER_API_VERSION@_la_LDFLAGS = \
|
|
-no-undefined \
|
|
-rpath $(mutterlibdir) \
|
|
-avoid-version \
|
|
-export-dynamic \
|
|
-export-symbols-regex "^gl*"
|
|
|
|
coglgles2includedir = $(includedir)/mutter/cogl/cogl-gles2/GLES2
|
|
coglgles2include_HEADERS = \
|
|
GLES2/gl2.h \
|
|
GLES2/gl2ext.h \
|
|
GLES2/gl2platform.h
|
|
|
|
pc_files = mutter-cogl-gles2-$(LIBMUTTER_API_VERSION).pc
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = $(pc_files)
|