Put Python plugin support in a separate shared object
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 8 Mar 2017 19:00:07 +0000 (14:00 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
commit6fbd4105b92d0da8b3c5818a5b7c5b07850f4a01
tree8e2f2128b4603c9f83162d95ac9d728a878a2b62
parentd262538743e8d549c112a0d1369bb700bcfce2df
Put Python plugin support in a separate shared object

This is to make the work of packagers easier for libbabeltrace not
to depend on libpython, even if you need Python plugin support.

With this patch, python.c's constructor tries to open the new Python
plugin provider shared object. If it fails, Python plugin support is
disabled, but shared object plugins can still be loaded.

The new BUILT_IN_PYTHON_PLUGIN_SUPPORT configure variable, if set to 1,
makes the build embed the Python plugin provider into libbabeltrace
(like before this patch).

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
16 files changed:
Makefile.am
configure.ac
include/Makefile.am
include/babeltrace/babeltrace-internal.h
include/babeltrace/plugin/plugin-internal.h
include/babeltrace/plugin/plugin-python-disabled-internal.h [deleted file]
include/babeltrace/plugin/plugin-python-enabled-internal.h [deleted file]
include/babeltrace/plugin/plugin-so-internal.h
include/babeltrace/plugin/python-plugin-provider-internal.h [new file with mode: 0644]
lib/Makefile.am
lib/plugin/Makefile.am
lib/plugin/plugin-python.c [deleted file]
lib/plugin/plugin-so.c
lib/plugin/plugin.c
python-plugin-provider/Makefile.am [new file with mode: 0644]
python-plugin-provider/python-plugin-provider.c [new file with mode: 0644]
This page took 0.025482 seconds and 4 git commands to generate.