Commit | Line | Data |
---|---|---|
0235b0db MJ |
1 | # SPDX-License-Identifier: MIT |
2 | ||
172e6876 | 3 | if ENABLE_PYTHON_PLUGINS |
05c03100 | 4 | AM_CPPFLAGS += $(PYTHON_INCLUDE) |
6fbd4105 | 5 | |
b14c7bf1 MJ |
6 | pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)" |
7 | pluginprovider_LTLIBRARIES = babeltrace2-python-plugin-provider.la | |
6fbd4105 | 8 | |
b14c7bf1 | 9 | babeltrace2_python_plugin_provider_la_SOURCES = \ |
578e048b MJ |
10 | python-plugin-provider.c \ |
11 | python-plugin-provider.h | |
12 | ||
b14c7bf1 | 13 | babeltrace2_python_plugin_provider_la_LDFLAGS = \ |
0b0893d4 | 14 | $(AM_LDFLAGS) \ |
c5410abe | 15 | $(LT_NO_UNDEFINED) \ |
b14c7bf1 | 16 | -avoid-version -module \ |
0b9113bf | 17 | $(PYTHON_LDFLAGS) |
3fe0bf43 | 18 | |
b14c7bf1 | 19 | babeltrace2_python_plugin_provider_la_LIBADD = |
3fe0bf43 | 20 | |
172e6876 MJ |
21 | # Link the Python plugin provider library with libbabeltrace2 |
22 | # when it's not built-in the babeltrace2 executable. | |
9ffc0257 | 23 | if !ENABLE_BUILT_IN_PLUGINS |
b14c7bf1 | 24 | babeltrace2_python_plugin_provider_la_LIBADD += \ |
578e048b MJ |
25 | $(top_builddir)/src/logging/libbabeltrace2-logging.la \ |
26 | $(top_builddir)/src/common/libbabeltrace2-common.la \ | |
870631a2 | 27 | $(top_builddir)/src/py-common/libbabeltrace2-py-common.la \ |
578e048b | 28 | $(top_builddir)/src/lib/libbabeltrace2.la |
3fe0bf43 | 29 | endif |
172e6876 | 30 | endif # ENABLE_PYTHON_PLUGINS |