[Bug 747917] cerbero: simplify build of static recipes

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Aug 7 07:24:56 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=747917

--- Comment #6 from Matthew Waters <ystreet00 at gmail.com> ---
(In reply to Sebastian Dröge (slomo) from comment #5)
> It should be possible to create a m4 macro or include Makefile for these
> static_lib / shared_lib parts of the Makefile.am. Things like gtk-doc and
> gconf have automake m4 macros IIRC that do complicated things, which might
> be used here. For include Makefiles, the ones from common/glib-mkenums.mk
> might be a good starting point, or the GI ones.

That's exactly what this attempts to do however the only substitution available
in automake is at configure time via @VAR@ as mentioned above.

> So that in the end in your Makefile.am you only have to provide the plugin
> name, CFLAGS, CXXFLAGS, LIBS, etc and the source files, and then the
> autogeneration stuff does everything needed.

Precisely what's attempted.

> That would of course require to change all the plugin Makefile.am, but I
> don't think we'll get around that.
> 
> It shouldn't be required to do anything in autogen.sh

Unfortunately I don't think that is possible.  To reiterate:
1. To generate the automake snippets for the shared/static libraries, we need
to substitute some library name.
2. automake only substitutes at configure time (Makefile.in -> Makefile)
3. automake include files must exist.  No includes to nonexistent files.
4. Only possible to include other Makefile.am like files.
5. Need automake to link the libtool  convenience libraries and to avoid
writing custom compilation rules.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list