Simplify the root Makefile, group the python provider build logic in a
single Makefile.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: I580a3577e0a84f5b6e624ed2ed74a56a0b6b3960
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1353
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
fd-cache \
compat \
logging \
fd-cache \
compat \
logging \
- lib
-
-if ENABLE_PYTHON_PLUGINS
-# Only build the Python plugin provider shared object if the
-# configuration doesn't ask to make it built-in.
-SUBDIRS += python-plugin-provider
-endif
-
-SUBDIRS += \
+ lib \
+ python-plugin-provider \
plugins \
cli \
bindings \
plugins \
cli \
bindings \
+if ENABLE_PYTHON_PLUGINS
AM_CPPFLAGS += $(PYTHON_INCLUDE)
lib_LTLIBRARIES = libbabeltrace2-python-plugin-provider.la
AM_CPPFLAGS += $(PYTHON_INCLUDE)
lib_LTLIBRARIES = libbabeltrace2-python-plugin-provider.la
libbabeltrace2_python_plugin_provider_la_LIBADD =
libbabeltrace2_python_plugin_provider_la_LIBADD =
+# Link the Python plugin provider library with libbabeltrace2
+# when it's not built-in the babeltrace2 executable.
if !ENABLE_BUILT_IN_PLUGINS
libbabeltrace2_python_plugin_provider_la_LIBADD += \
$(top_builddir)/logging/libbabeltrace2-logging.la \
$(top_builddir)/common/libbabeltrace2-common.la \
$(top_builddir)/lib/libbabeltrace2.la
endif
if !ENABLE_BUILT_IN_PLUGINS
libbabeltrace2_python_plugin_provider_la_LIBADD += \
$(top_builddir)/logging/libbabeltrace2-logging.la \
$(top_builddir)/common/libbabeltrace2-common.la \
$(top_builddir)/lib/libbabeltrace2.la
endif
+endif # ENABLE_PYTHON_PLUGINS