gst: Add better support for static plugins
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 24 Oct 2012 09:58:35 +0000 (11:58 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Apr 2013 13:52:18 +0000 (15:52 +0200)
commit18a7a1d06295fe602672a5ce143c88260ea93930
tree82dd83e3c81e9ec09a5bcd2c7e2818acf46fc603
parent142a55042f556367b50d4ca1aca8c3b633db0343
gst: Add better support for static plugins

API: GST_PLUGIN_STATIC_DECLARE()
API: GST_PLUGIN_STATIC_REGISTER()

Based on a patch by Håvard Graff <havard.graff@tandberg.com>.

This now allows GST_PLUGIN_DEFINE() to create a static plugin if
GST_PLUGIN_BUILD_STATIC is defined. The resulting plugin can be
statically linked or dynamically linked during compilation but
can't be dynamically loaded during runtime.

Also adds GST_PLUGIN_STATIC_DECLARE() and GST_PLUGIN_STATIC_REGISTER(),
which allows to register a static linked plugin easily.
It is still required to manually register every single statically linked
plugin from inside the application as this can't be automated in a portable
way.

A new configure parameter --enable-static-plugins was added that allows
to build all plugins we build here as static plugins.

Fixes bug #667305.
configure.ac
gst/gstplugin.h
plugins/elements/Makefile.am