mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 16:16:20 -05:00
efb570fdae
This adds an autogen.sh, configure.ac and build/autotool files etc under clutter/cogl and makes some corresponding Makefile.am changes that make it possible to build and install Cogl as a standalone library. Some notable things about this are: A standalone installation of Cogl installs 3 pkg-config files; cogl-1.0.pc, cogl-gl-1.0.pc and cogl-2.0.pc. The second is only for compatibility with what clutter installed though I'm not sure that anything uses it so maybe we could remove it. cogl-1.0.pc is what Clutter would use if it were updated to build against a standalone cogl library. cogl-2.0.pc is what you would use if you were writing a standalone Cogl application. A standalone installation results in two libraries currently, libcogl.so and libcogl-pango.so. Notably we don't include a major number in the sonames because libcogl supports two major API versions; 1.x as used by Clutter and the experimental 2.x API for standalone applications. Parallel installation of later versions e.g. 3.x and beyond will be supportable either with new sonames or if we can maintain ABI then we'll continue to share libcogl.so. The headers are similarly not installed into a directory with a major version number since the same headers are shared to export the 1.x and 2.x APIs (The only difference is that cogl-2.0.pc ensures that -DCOGL_ENABLE_EXPERIMENTAL_2_0_API is used). Parallel installation of later versions is not precluded though since we can either continue sharing or later add a major version suffix.
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
# Special Makefile rules for English message catalogs with quotation marks.
|
|
|
|
DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
|
|
|
|
.SUFFIXES: .insert-header .po-update-en
|
|
|
|
en@quot.po-create:
|
|
$(MAKE) en@quot.po-update
|
|
en@boldquot.po-create:
|
|
$(MAKE) en@boldquot.po-update
|
|
|
|
en@quot.po-update: en@quot.po-update-en
|
|
en@boldquot.po-update: en@boldquot.po-update-en
|
|
|
|
.insert-header.po-update-en:
|
|
@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
|
|
if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
|
|
tmpdir=`pwd`; \
|
|
echo "$$lang:"; \
|
|
ll=`echo $$lang | sed -e 's/@.*//'`; \
|
|
LC_ALL=C; export LC_ALL; \
|
|
cd $(srcdir); \
|
|
if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
|
|
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
|
|
rm -f $$tmpdir/$$lang.new.po; \
|
|
else \
|
|
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
|
|
:; \
|
|
else \
|
|
echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
|
|
exit 1; \
|
|
fi; \
|
|
fi; \
|
|
else \
|
|
echo "creation of $$lang.po failed!" 1>&2; \
|
|
rm -f $$tmpdir/$$lang.new.po; \
|
|
fi
|
|
|
|
en@quot.insert-header: insert-header.sin
|
|
sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
|
|
|
|
en@boldquot.insert-header: insert-header.sin
|
|
sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
|
|
|
|
mostlyclean: mostlyclean-quot
|
|
mostlyclean-quot:
|
|
rm -f *.insert-header
|