1 # SPDX-License-Identifier: MIT
3 if ENABLE_PYTHON_PLUGINS
4 AM_CPPFLAGS += $(PYTHON_INCLUDE)
6 pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
7 pluginprovider_LTLIBRARIES = babeltrace2-python-plugin-provider.la
9 babeltrace2_python_plugin_provider_la_SOURCES = \
10 python-plugin-provider.c \
11 python-plugin-provider.h
13 babeltrace2_python_plugin_provider_la_LDFLAGS = \
16 -avoid-version -module \
19 babeltrace2_python_plugin_provider_la_LIBADD =
21 # Link the Python plugin provider library with libbabeltrace2
22 # when it's not built-in the babeltrace2 executable.
23 if !ENABLE_BUILT_IN_PLUGINS
24 babeltrace2_python_plugin_provider_la_LIBADD += \
25 $(top_builddir)/src/logging/libbabeltrace2-logging.la \
26 $(top_builddir)/src/common/libbabeltrace2-common.la \
27 $(top_builddir)/src/py-common/libbabeltrace2-py-common.la \
28 $(top_builddir)/src/lib/libbabeltrace2.la
30 endif # ENABLE_PYTHON_PLUGINS