Simplify EPlugin loading at startup.
- Require all EPlugin and EPluginHook subtypes be registered before loading plugins. This drastically simplifies the EPlugin/EPluginHook negotiation. - Turn most EPluginHook subtypes into GTypeModules and register their types from an e_module_load() function (does not include shell hooks). - Convert EPluginLib and the Mono and Python bindings to GTypeModules and register their types from an e_module_load() function, and kill EPluginTypeHook.
This commit is contained in:
31
modules/plugin-python/Makefile.am
Normal file
31
modules/plugin-python/Makefile.am
Normal file
@ -0,0 +1,31 @@
|
||||
AM_CPPFLAGS = \
|
||||
-DG_LOG_DOMAIN=\"evolution-plugin-python\" \
|
||||
-I$(top_srcdir) \
|
||||
$(E_UTIL_CFLAGS) \
|
||||
$(PY_INCLUDES)
|
||||
|
||||
module_LTLIBRARIES = libevolution-module-plugin-python.la
|
||||
|
||||
libevolution_module_plugin_python_la_SOURCES = \
|
||||
evolution-module-plugin-python.c \
|
||||
e-plugin-python.c \
|
||||
e-plugin-python.h
|
||||
|
||||
libevolution_module_plugin_python_la_LIBADD = \
|
||||
-lpthread -ldl -lutil -lm \
|
||||
$(top_builddir)/e-util/libeutil.la \
|
||||
$(E_UTIL_LIBS) \
|
||||
$(PY_LIBS)
|
||||
|
||||
libevolution_module_plugin_python_la_LDFLAGS = \
|
||||
-module -avoid-version $(NO_UNDEFINED)
|
||||
|
||||
example_sources = \
|
||||
example/hello_python.py \
|
||||
example/org-gnome-hello-python-ui.xml \
|
||||
example/org-gnome-hello-python.eplug.xml \
|
||||
example/Makefile.am
|
||||
|
||||
EXTRA_DIST = $(example_sources)
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
Reference in New Issue
Block a user