cairo/build
Benjamin Otte f7fc8569a7 build: Fix C++ issues with automake
This is an attempt to fix the broken situation we've been in where
automake links libcairo.la with c++ because it might potentially maybe
include C++ files.

Those potential files only exist in Chris' throwaway backends (skia, qt)
and the BeOS backend, so for 99.99% of cases, these backends are not
needed and linking with c++ is overkill. Also, no one wants to have
libcairo.so link to libstdc++.

This patch fixes that in mutliple steps:
1) Add build infrastructure to distinguish between C and C++ backends.
   This is done by allowing to specify backend_sources as well as
   backend_cxx_sources variables in Makefile.sources.
2) Optionally build a libcairo_cxx.la noinst library
   This intermediate library is built for C++ backends only and therefor
   linked using c++. It is then linked into the final libcairo.la. This
   does not require c++, so the linking of libcairo.la is done with cc.

This also works around various weirdnesses that the current build system
exposes, where it assumes cisms when in fact using c++ semantics, like
not detecting c++ properly or:
https://bugzilla.redhat.com/show_bug.cgi?id=606523
2010-07-09 12:38:37 +02:00
..
.gitignore configure: remove shave 2010-07-05 00:35:39 +02:00
aclocal.cairo.m4 atomic: Add MacOSX atomic implementation 2010-04-29 10:52:48 +02:00
aclocal.compare.m4 [configure] Replace awk comparator with an aclocal version 2009-01-02 15:44:52 +00:00
aclocal.enable.m4 [build] Fix typo 2009-08-24 23:57:21 -04:00
aclocal.float.m4 Move m4 macros into build/aclocal.*.m4 files 2008-09-11 04:17:43 -04:00
aclocal.gtk-doc.m4 Move m4 macros into build/aclocal.*.m4 files 2008-09-11 04:17:43 -04:00
aclocal.makefile.m4 Generate build/Makefile.win32.features 2008-09-22 22:24:38 -04:00
aclocal.pkg.m4 Update FSF address 2010-04-27 11:13:38 +02:00
ax-pthread.m4 build: Fix pthread detection 2010-05-13 15:17:27 +02:00
configure.ac.analysis [build] Refine the -Wno-attribute test to check our use cases. 2009-09-02 06:35:14 +03:00
configure.ac.features build: Fix C++ issues with automake 2010-07-09 12:38:37 +02:00
configure.ac.noversion [test] Build test suite into single binary. 2008-10-31 12:30:11 +00:00
configure.ac.system build: Fix pthread detection 2010-05-13 15:17:27 +02:00
configure.ac.tools [boilerplate/test] Convert make-*-constructors to shell 2009-08-06 10:11:32 +01:00
configure.ac.version [test] Build test suite into single binary. 2008-10-31 12:30:11 +00:00
configure.ac.warnings gcc-4.5 warnings and optimisation flags. 2010-05-12 20:54:49 +01:00
Makefile.am.analysis [perf] Include trace comparison in html output 2009-07-20 22:20:01 +01:00
Makefile.am.changelog [RELEASING] Update Makefile for git-1.6 2008-12-14 16:41:01 +00:00
Makefile.am.common [Makefile.am.common] Remove gcc precompiled headers in "make clean" 2008-09-19 18:42:54 -04:00
Makefile.am.gtk-doc [doc] Workaround read-only tree during make distcheck 2009-06-12 11:15:16 +01:00
Makefile.am.releasing Makefile: Fix two typos preventing doc-publish from working 2009-06-12 12:08:22 -07:00
Makefile.win32.common [win32] Fix building with libpng and zlib 2009-04-07 14:50:25 -04:00
Makefile.win32.features build: Add wgl to Makefile.sources and regenerate features. 2010-06-14 16:05:14 +01:00
Makefile.win32.features-h boilerplate: Add a describe vfunc 2010-07-03 02:55:52 +02:00