[Bug 747917] cerbero: simplify build of static recipes
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Aug 3 03:29:25 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=747917
--- Comment #4 from Matthew Waters <ystreet00 at gmail.com> ---
Created attachment 308659
--> https://bugzilla.gnome.org/attachment.cgi?id=308659&action=edit
common: generate static/shared plugins
That's seems to be a hard problem with autotools without reinventing a lot of
things.
Need to build some part of the plugins twice with/without
-DGST_PLUGIN_BUILD_STATIC (specifically the GST_PLUGIN_DEFINE declaration) in
order to create the necessary gst_plugin_{name}_register (static) and
gst_plugin_desc (shared) definitions so that the plugins can be loaded and
registered properly in both environments.
Attempted Solution:
libtool conveniencs libraries for plugins that are linked to the two separate
shared and static libraries.
automake doesn't do shell substitution in variable definitions. Only autoconf
provided substitution is provided through @VAR@ which is not finegrained enough
or involves running a configure in each. plugin. directory. which if gettext's
build system is anything to go by, is dog slow. More so on windows.
Attempted Solution:
Generate some Makefile.am that can be included by plugin Makefile.am's to
generate the necessary static and shared libraries.
automake runs before configure is run so we need to generate these Makefile's
before automake in order to perform the include. Currently done in
gst-autogen.sh.
Then we need some way of signalling the plugin library so the generated
Makefile.am can build the correct libraries. Currently uses a plugin_name file
in each plugin directory.
--
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