Reduce the number of Makefiles in 'src/' by one more
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 2 Nov 2023 18:49:18 +0000 (14:49 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 3 Nov 2023 18:46:56 +0000 (14:46 -0400)
The libcommon Makefile was the only one left of the convenience library
Makefiles to ensure that the version header was generated before the
other libraries were built.

By using the 'BUILT_SOURCES' variable we can ensure that 'version.i' is
generated first and merge this in 'src/Makefile'.

Change-Id: I0a6510af65674d1c8bb6a3a08d9a10b07e00fdd7
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11203
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
16 files changed:
configure.ac
src/Makefile.am
src/bindings/python/bt2/Makefile.am
src/bindings/python/bt2/setup.py.in
src/cli/Makefile.am
src/common/Makefile.am [deleted file]
src/common/gen-version-i.sh [deleted file]
src/gen-version-i.sh [new file with mode: 0755]
tests/ctf-writer/Makefile.am
tests/lib/Makefile.am
tests/lib/conds/Makefile.am
tests/lib/test-plugin-plugins/Makefile.am
tests/param-validation/Makefile.am
tests/plugins/flt.lttng-utils.debug-info/Makefile.am
tests/plugins/sink.ctf.fs/succeed/Makefile.am
tests/plugins/src.ctf.fs/succeed/Makefile.am

index ad5a8cc95aef77b6769cc4b09cf3cc87dc22531d..a15ce6e665d10c31e9bc5eb3ab77069f1150dcbc 100644 (file)
@@ -818,7 +818,6 @@ AC_CONFIG_FILES([
   src/bindings/python/bt2/Makefile
   src/bindings/python/bt2/setup.py
   src/cli/Makefile
-  src/common/Makefile
   src/Makefile
   tests/bitfield/Makefile
   tests/ctf-writer/Makefile
index cbc74e3e5b0665d268d5f37f065daf89127e83a4..78d98f7cd9f93887399da8b884c81ec46110938d 100644 (file)
@@ -1,9 +1,8 @@
 # SPDX-License-Identifier: MIT
 
-# Build 'common' first to ensure 'version.h' is generated before any
-# compilation.
+# Build the current dir containing the library and plugins before the cli and
+# bindings.
 SUBDIRS = \
-       common \
        . \
        cli
 
@@ -12,6 +11,13 @@ SUBDIRS += bindings/python/bt2
 endif
 
 noinst_HEADERS = \
+       common/align.h \
+       common/list.h \
+       common/macros.h \
+       common/mmap-align.h \
+       common/safe.h \
+       common/version.h \
+       common/version.i \
        cpp-common/bt2/clock-class.hpp \
        cpp-common/bt2/clock-snapshot.hpp \
        cpp-common/bt2/common-iter.hpp \
@@ -52,6 +58,39 @@ noinst_HEADERS = \
        cpp-common/uuid-view.hpp \
        cpp-common/vector.hpp
 
+## This target generates an include file that contains the git version
+## string of the current branch, it must be continuously updated when
+## we build in the git repo and shipped in dist tarballs to reflect the
+## status of the tree when it was generated. If the tree is clean and
+## the current commit is a tag starting with "v", consider this a
+## release version and set an empty git version.
+
+version_verbose = $(version_verbose_@AM_V@)
+version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
+version_verbose_0 = @echo "  GEN     " $@;
+
+common/version.i:
+       $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
+
+dist_noinst_SCRIPTS = gen-version-i.sh
+
+# Ensure version.i is generated before any code is built.
+BUILT_SOURCES = common/version.i
+
+##
+## version.i is defined as a .PHONY target even if it's a real file,
+## we want the target to be re-run on every make.
+##
+.PHONY: common/version.i
+
+CLEANFILES = common/version.i.tmp
+
+##
+## Only clean "version.i" on dist-clean, we need to keep it on regular
+## clean when it's part of a dist tarball.
+##
+DISTCLEANFILES = common/version.i
+
 #
 # Convenience libraries
 #
@@ -59,6 +98,7 @@ noinst_HEADERS = \
 noinst_LTLIBRARIES = \
        argpar/libargpar.la \
        autodisc/libautodisc.la \
+       common/libcommon.la \
        compat/libcompat.la \
        ctfser/libctfser.la \
        fd-cache/libfd-cache.la \
@@ -70,6 +110,7 @@ noinst_LTLIBRARIES = \
        plugins/ctf/common/metadata/libctf-parser.la \
        string-format/libstring-format.la
 
+
 argpar_libargpar_la_SOURCES = \
        argpar/argpar.c \
        argpar/argpar.h
@@ -78,6 +119,18 @@ autodisc_libautodisc_la_SOURCES = \
        autodisc/autodisc.c \
        autodisc/autodisc.h
 
+common_libcommon_la_SOURCES = \
+       common/assert.c \
+       common/assert.h \
+       common/common.c \
+       common/common.h \
+       common/uuid.c \
+       common/uuid.h
+
+common_libcommon_la_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
+
 compat_libcompat_la_SOURCES = \
        compat/bitfield.h \
        compat/compiler.h \
@@ -190,11 +243,9 @@ if BABELTRACE_BUILD_WITH_MINGW
 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
 endif
 
-BUILT_SOURCES = \
+BUILT_SOURCES += \
        plugins/ctf/common/metadata/parser.hpp
 
-# Start with empty files to clean
-CLEANFILES =
 ALL_LOCAL =
 
 if HAVE_BISON
@@ -394,7 +445,7 @@ lib_libbabeltrace2_la_CPPFLAGS = \
 
 lib_libbabeltrace2_la_LIBADD = \
        logging/liblogging.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        compat/libcompat.la
 
 ctf_writer_libbabeltrace2_ctf_writer_la_SOURCES = \
@@ -451,7 +502,7 @@ ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
 
 ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
        logging/liblogging.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        ctfser/libctfser.la \
        compat/libcompat.la
 
@@ -489,7 +540,7 @@ python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD =
 if !ENABLE_BUILT_IN_PLUGINS
 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
        logging/liblogging.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        py-common/libpy-common.la \
        lib/libbabeltrace2.la
 endif
@@ -529,7 +580,7 @@ plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
 if !ENABLE_BUILT_IN_PLUGINS
 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
        lib/libbabeltrace2.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        logging/liblogging.la \
        plugins/common/param-validation/libparam-validation.la
 endif
@@ -593,7 +644,7 @@ plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
        lib/libbabeltrace2.la \
        logging/liblogging.la \
        plugins/common/muxing/libmuxing.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        ctfser/libctfser.la
 endif
 
@@ -623,7 +674,7 @@ plugins_text_babeltrace_plugin_text_la_LIBADD =
 if !ENABLE_BUILT_IN_PLUGINS
 plugins_text_babeltrace_plugin_text_la_LIBADD += \
        lib/libbabeltrace2.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        logging/liblogging.la \
        compat/libcompat.la \
        plugins/common/param-validation/libparam-validation.la
@@ -649,7 +700,7 @@ plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
 if !ENABLE_BUILT_IN_PLUGINS
 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
        lib/libbabeltrace2.la \
-       common/libbabeltrace2-common.la \
+       common/libcommon.la \
        logging/liblogging.la \
        plugins/common/param-validation/libparam-validation.la
 endif # !ENABLE_BUILT_IN_PLUGINS
index edbf95b40ae4e460d16e0823c879a74dd2d61a2d..570c551338edded63788ccb548b91f79b4b5b5ef 100644 (file)
@@ -96,7 +96,7 @@ STATIC_BINDINGS_DEPS =                                        \
 STATIC_LIBRARIES_DEPS = \
        $(top_builddir)/src/autodisc/libautodisc.la \
        $(top_builddir)/src/logging/liblogging.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/py-common/libpy-common.la \
        $(top_builddir)/src/string-format/libstring-format.la
 
index 0947521e6241bafa049c8f1c741bfbd0293d12ec..d7eca061a1725101c170d42ba4388038f26bff82 100644 (file)
@@ -121,7 +121,7 @@ def main():
         extra_objects=[
             "@top_builddir@/src/autodisc/.libs/libautodisc.a",
             "@top_builddir@/src/logging/.libs/liblogging.a",
-            "@top_builddir@/src/common/.libs/libbabeltrace2-common.a",
+            "@top_builddir@/src/common/.libs/libcommon.a",
             "@top_builddir@/src/py-common/.libs/libpy-common.a",
             "@top_builddir@/src/string-format/.libs/libstring-format.a",
         ],
index ce4f246cac95439c7751346c0bc51fb396a238b7..d72ea16e9043a07c8a6fd9402e47da3dc409213b 100644 (file)
@@ -62,7 +62,7 @@ babeltrace2_bin_LDADD = \
        $(top_builddir)/src/string-format/libstring-format.la \
        $(top_builddir)/src/lib/libbabeltrace2.la \
        $(top_builddir)/src/compat/libcompat.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la \
        $(top_builddir)/src/ctfser/libctfser.la
 
diff --git a/src/common/Makefile.am b/src/common/Makefile.am
deleted file mode 100644 (file)
index 3657054..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# SPDX-License-Identifier: MIT
-
-AM_CPPFLAGS += -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
-
-noinst_LTLIBRARIES = libbabeltrace2-common.la
-
-libbabeltrace2_common_la_SOURCES = \
-       assert.c \
-       assert.h \
-       common.c \
-       common.h \
-       uuid.c \
-       uuid.h
-
-noinst_HEADERS = \
-       align.h \
-       list.h \
-       macros.h \
-       mmap-align.h \
-       safe.h
-
-## This target generates an include file that contains the git version
-## string of the current branch, it must be continuously updated when
-## we build in the git repo and shipped in dist tarballs to reflect the
-## status of the tree when it was generated. If the tree is clean and
-## the current commit is tag a starting with "v", consider this a
-## release version and set an empty git version.
-
-version_verbose = $(version_verbose_@AM_V@)
-version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
-version_verbose_0 = @echo "  GEN     " $@;
-
-version.i:
-       $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
-
-dist_noinst_SCRIPTS = gen-version-i.sh
-
-##
-## version.i is defined as a .PHONY target even if it's a real file,
-## we want the target to be re-run on every make.
-##
-.PHONY: version.i
-
-CLEANFILES = version.i.tmp
-
-##
-## Only clean "version.i" on dist-clean, we need to keep it on regular
-## clean when it's part of a dist tarball.
-##
-DISTCLEANFILES = version.i
-
-noinst_HEADERS += version.h version.i
diff --git a/src/common/gen-version-i.sh b/src/common/gen-version-i.sh
deleted file mode 100755 (executable)
index a53593c..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/usr/bin/env sh
-#
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Copyright (C) 2023 EfficiOS, Inc.
-
-# This file generates an include file that contains the git version
-# string of the current branch, it must be continuously updated when
-# we build in the git repo and shipped in dist tarballs to reflect the
-# status of the tree when it was generated. If the tree is clean and
-# the current commit is a tag starting with "v", consider this a
-# release version and set an empty git version.
-
-set -o nounset
-set -o errexit
-
-if test "${TOP_SRCDIR:-}" = ""; then
-       echo "$0: TOP_SRCDIR is not set" >&2
-       exit 1
-fi
-
-GREP=${GREP:-grep}
-SED=${SED:-sed}
-
-# Delete any stale "version.i.tmp" file.
-rm -f version.i.tmp
-
-if test ! -f version.i && test -f "$TOP_SRCDIR/include/version.i"; then
-       cp "$TOP_SRCDIR/include/version.i" version.i
-fi
-
-# If "bootstrap" and ".git" exists in the top source directory and the git
-# executable is available, get the current git version string in the form:
-#
-#  "latest_tag"(-"number_of_commits_on_top")(-g"latest_commit_hash")(-dirty)
-#
-# And store it in "version.i.tmp", if the current commit is tagged, the tag
-# starts with "v" and the tree is clean, consider this a release version and
-# overwrite the git version with an empty string in "version.i.tmp".
-#
-# Use an explicit hash abbreviation length, to avoid local `core.abbrev`
-# configurations leading to different results.
-if test -r "$TOP_SRCDIR/bootstrap" && test -r "$TOP_SRCDIR/.git" &&
-               (command -v git > /dev/null 2>&1); then
-       GIT_VERSION_STR="$(cd "$TOP_SRCDIR" && git describe --always --tags --dirty --abbrev=12)"
-       GIT_CURRENT_TAG="$(cd "$TOP_SRCDIR" && (git describe --tags --exact-match --match="v[0-9]*" HEAD || true) 2> /dev/null)"
-       echo "#define BT_VERSION_GIT \"$GIT_VERSION_STR\"" > version.i.tmp
-
-       if ! $GREP -- "-dirty" version.i.tmp > /dev/null &&
-                       test "x$GIT_CURRENT_TAG" != "x"; then
-               echo "#define BT_VERSION_GIT \"\"" > version.i.tmp
-       fi
-fi
-
-# If we don't have a "version.i.tmp" nor a "version.i", generate an empty
-# string as a failover. If a "version.i" is present, for example when building
-# from a distribution tarball, get the git_version using grep.
-if test ! -f version.i.tmp; then
-       if test -f version.i; then
-               $GREP "^#define \bBT_VERSION_GIT\b.*" version.i > version.i.tmp
-       else
-               echo '#define BT_VERSION_GIT ""' > version.i.tmp
-       fi
-fi
-
-{
-       # Fetch the BT_VERSION_EXTRA_NAME define from "version/extra_version_name" and output it
-       # to "version.i.tmp".
-       echo "#define BT_VERSION_EXTRA_NAME \"$($SED -n '1p' "$TOP_SRCDIR/version/extra_version_name" 2> /dev/null)\""
-
-       # Fetch the BT_VERSION_EXTRA_DESCRIPTION define from "version/extra_version_description",
-       # sanitize and format it with a sed script to replace all non-alpha-numeric values
-       # with "-" and join all lines by replacing "\n" with litteral string c-style "\n" and
-       # output it to "version.i.tmp".
-       echo "#define BT_VERSION_EXTRA_DESCRIPTION \"$($SED -E ':a ; N ; $!ba ; s/[^a-zA-Z0-9 \n\t\.,]/-/g ; s/\r{0,1}\n/\\n/g' "$TOP_SRCDIR/version/extra_version_description" 2> /dev/null)\""
-
-       # Repeat the same logic for the "version/extra_patches" directory.
-       # Data fetched from "version/extra_patches" must be sanitized and
-       # formatted.
-       # The data is fetched using "find" with an ignore pattern for the README.adoc file.
-       # The sanitize step uses sed with a script to replace all
-       # non-alpha-numeric values, except " " (space), to "-".
-       # The formatting step uses sed with a script to join all lines
-       # by replacing "\n" with litteral string c-style "\n".
-       # shellcheck disable=SC2012
-       echo "#define BT_VERSION_EXTRA_PATCHES \"$(ls -1 "$TOP_SRCDIR/version/extra_patches" | $GREP -v '^README.adoc' | $SED -E ':a ; N ; $!ba ; s/[^a-zA-Z0-9 \n\t\.]/-/g ; s/\r{0,1}\n/\\n/g' 2> /dev/null)\""
-} >> version.i.tmp
-
-# If we don't have a "version.i" or we have both files (version.i, version.i.tmp)
-# and they are different, copy "version.i.tmp" over "version.i".
-# This way the dependent targets are only rebuilt when the git version
-# string or either one of extra version string change.
-if test ! -f version.i ||
-               test x"$(cat version.i.tmp)" != x"$(cat version.i)"; then
-       mv -f version.i.tmp version.i
-fi
-
-rm -f version.i.tmp
diff --git a/src/gen-version-i.sh b/src/gen-version-i.sh
new file mode 100755 (executable)
index 0000000..0bb981f
--- /dev/null
@@ -0,0 +1,98 @@
+#!/usr/bin/env sh
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Copyright (C) 2023 EfficiOS, Inc.
+
+# This file generates an include file that contains the git version
+# string of the current branch, it must be continuously updated when
+# we build in the git repo and shipped in dist tarballs to reflect the
+# status of the tree when it was generated. If the tree is clean and
+# the current commit is a tag starting with "v", consider this a
+# release version and set an empty git version.
+
+set -o nounset
+set -o errexit
+
+if test "${TOP_SRCDIR:-}" = ""; then
+       echo "$0: TOP_SRCDIR is not set" >&2
+       exit 1
+fi
+
+GREP=${GREP:-grep}
+SED=${SED:-sed}
+
+# Delete any stale "version.i.tmp" file.
+rm -f common/version.i.tmp
+
+if test ! -f common/version.i && test -f "$TOP_SRCDIR/include/version.i"; then
+       cp "$TOP_SRCDIR/include/version.i" common/version.i
+fi
+
+# If "bootstrap" and ".git" exists in the top source directory and the git
+# executable is available, get the current git version string in the form:
+#
+#  "latest_tag"(-"number_of_commits_on_top")(-g"latest_commit_hash")(-dirty)
+#
+# And store it in "version.i.tmp", if the current commit is tagged, the tag
+# starts with "v" and the tree is clean, consider this a release version and
+# overwrite the git version with an empty string in "version.i.tmp".
+#
+# Use an explicit hash abbreviation length, to avoid local `core.abbrev`
+# configurations leading to different results.
+if test -r "$TOP_SRCDIR/bootstrap" && test -r "$TOP_SRCDIR/.git" &&
+               (command -v git > /dev/null 2>&1); then
+       GIT_VERSION_STR="$(cd "$TOP_SRCDIR" && git describe --always --tags --dirty --abbrev=12)"
+       GIT_CURRENT_TAG="$(cd "$TOP_SRCDIR" && (git describe --tags --exact-match --match="v[0-9]*" HEAD || true) 2> /dev/null)"
+       echo "#define BT_VERSION_GIT \"$GIT_VERSION_STR\"" > common/version.i.tmp
+
+       if ! $GREP -- "-dirty" common/version.i.tmp > /dev/null &&
+                       test "x$GIT_CURRENT_TAG" != "x"; then
+               echo "#define BT_VERSION_GIT \"\"" > common/version.i.tmp
+       fi
+fi
+
+# If we don't have a "version.i.tmp" nor a "version.i", generate an empty
+# string as a failover. If a "version.i" is present, for example when building
+# from a distribution tarball, get the git_version using grep.
+if test ! -f common/version.i.tmp; then
+       if test -f common/version.i; then
+               $GREP "^#define \bBT_VERSION_GIT\b.*" common/version.i > common/version.i.tmp
+       else
+               echo '#define BT_VERSION_GIT ""' > common/version.i.tmp
+       fi
+fi
+
+{
+       # Fetch the BT_VERSION_EXTRA_NAME define from "version/extra_version_name" and output it
+       # to "version.i.tmp".
+       echo "#define BT_VERSION_EXTRA_NAME \"$($SED -n '1p' "$TOP_SRCDIR/version/extra_version_name" 2> /dev/null)\""
+
+       # Fetch the BT_VERSION_EXTRA_DESCRIPTION define from "version/extra_version_description",
+       # sanitize and format it with a sed script to replace all non-alpha-numeric values
+       # with "-" and join all lines by replacing "\n" with litteral string c-style "\n" and
+       # output it to "version.i.tmp".
+       echo "#define BT_VERSION_EXTRA_DESCRIPTION \"$($SED -E ':a ; N ; $!ba ; s/[^a-zA-Z0-9 \n\t\.,]/-/g ; s/\r{0,1}\n/\\n/g' "$TOP_SRCDIR/version/extra_version_description" 2> /dev/null)\""
+
+       # Repeat the same logic for the "version/extra_patches" directory.
+       # Data fetched from "version/extra_patches" must be sanitized and
+       # formatted.
+       # The data is fetched using "find" with an ignore pattern for the README.adoc file.
+       # The sanitize step uses sed with a script to replace all
+       # non-alpha-numeric values, except " " (space), to "-".
+       # The formatting step uses sed with a script to join all lines
+       # by replacing "\n" with litteral string c-style "\n".
+       # shellcheck disable=SC2012
+       echo "#define BT_VERSION_EXTRA_PATCHES \"$(ls -1 "$TOP_SRCDIR/version/extra_patches" | $GREP -v '^README.adoc' | $SED -E ':a ; N ; $!ba ; s/[^a-zA-Z0-9 \n\t\.]/-/g ; s/\r{0,1}\n/\\n/g' 2> /dev/null)\""
+} >> common/version.i.tmp
+
+# If we don't have a "version.i" or we have both files (version.i, version.i.tmp)
+# and they are different, copy "version.i.tmp" over "version.i".
+# This way the dependent targets are only rebuilt when the git version
+# string or either one of extra version string change.
+if test ! -f common/version.i ||
+               test x"$(cat common/version.i.tmp)" != x"$(cat common/version.i)"; then
+       mv -f common/version.i.tmp common/version.i
+fi
+
+rm -f common/version.i.tmp
index 807f54db57797afafb6ab89f64e8fabd165c5b6c..4bd97d2612952cb87e1c6113d7a315e5c0a743e2 100644 (file)
@@ -9,7 +9,7 @@ ctf_writer_LDADD = \
        $(top_builddir)/tests/utils/tap/libtap.la \
        $(top_builddir)/tests/utils/libtestcommon.la \
        $(top_builddir)/src/ctf-writer/libbabeltrace2-ctf-writer.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la
 
 
index f2c70351290852f7bb0949e6fd9ab890b001219a..643b7e000e4543f80e8a85ef0ddc3396afd2d830 100644 (file)
@@ -8,7 +8,7 @@ COMMON_TEST_LDADD = \
        $(top_builddir)/tests/utils/tap/libtap.la \
        $(top_builddir)/tests/utils/libtestcommon.la \
        $(top_builddir)/tests/lib/utils/liblib-utils.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la
 
 test_bt_values_LDADD = $(COMMON_TEST_LDADD) \
index 2527a32c9e721d2467a50d2ea703ef96037d226b..b380b0096c4b57b87fa91738119825fc6872bc39 100644 (file)
@@ -8,7 +8,7 @@ conds_triggers_SOURCES = \
 
 conds_triggers_LDADD = \
        $(top_builddir)/tests/lib/utils/liblib-utils.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la \
        $(top_builddir)/src/lib/libbabeltrace2.la
 
index 1b52cafbd4fef7efc35f4fc8681f828481fe10c8..7c1ae9d6d0b972884a8e25dfe20db19a8b7caa07 100644 (file)
@@ -10,7 +10,7 @@ plugin_minimal_la_LDFLAGS = \
        -rpath / -avoid-version -module $(LD_NOTEXT)
 plugin_minimal_la_LIBADD = \
        $(top_builddir)/src/lib/libbabeltrace2.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la
 
 # source/filter/sink plugin
@@ -21,5 +21,5 @@ plugin_sfs_la_LDFLAGS = \
        -rpath / -avoid-version -module $(LD_NOTEXT)
 plugin_sfs_la_LIBADD = \
        $(top_builddir)/src/lib/libbabeltrace2.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la
index 6a1db56d720fca47621d35ff3c5845d02a1dc51b..14cf3d63006726988cda803bc71aadecea06ae33 100644 (file)
@@ -8,6 +8,6 @@ test_param_validation_LDADD = \
        $(top_builddir)/src/param-parse/libparam-parse.la \
        $(top_builddir)/src/plugins/common/param-validation/libparam-validation.la \
        $(top_builddir)/src/lib/libbabeltrace2.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la \
        $(top_builddir)/tests/utils/tap/libtap.la
index 42687f3b198c45533a1c43a32c47ec86a19f986e..664a99b50970c801531e6689ba0710782721b67a 100644 (file)
@@ -28,7 +28,7 @@ test_dwarf_LDADD = \
        $(top_builddir)/src/plugins/lttng-utils/debug-info/libdebug-info.la \
        $(top_builddir)/src/fd-cache/libfd-cache.la \
        $(top_builddir)/src/logging/liblogging.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(ELFUTILS_LIBS) \
        $(LIBTAP)
 test_dwarf_SOURCES = test-dwarf.c
@@ -37,7 +37,7 @@ test_bin_info_LDADD = \
        $(top_builddir)/src/plugins/lttng-utils/debug-info/libdebug-info.la \
        $(top_builddir)/src/fd-cache/libfd-cache.la \
        $(top_builddir)/src/logging/liblogging.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/lib/libbabeltrace2.la \
        $(ELFUTILS_LIBS) \
        $(LIBTAP)
index d1b90390a92d7c6e9dce2d6ce66567aa9afa9bd0..b4332093fb32b32a3a47cf94dc5ed80776d1be6f 100644 (file)
@@ -5,7 +5,7 @@ dist_check_SCRIPTS = test-succeed.sh
 # CTF trace generators
 GEN_TRACE_LDADD = \
        $(top_builddir)/src/ctf-writer/libbabeltrace2-ctf-writer.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la
 
 gen_trace_float_SOURCES = gen-trace-float.c
index fa91418f8437fbd1862ab1d15cd87019cc431dae..f424a93d389c9c084a4e0f93d35b34b41080db93 100644 (file)
@@ -5,7 +5,7 @@ dist_check_SCRIPTS = test-succeed.sh
 # CTF trace generators
 GEN_TRACE_LDADD = \
        $(top_builddir)/src/ctf-writer/libbabeltrace2-ctf-writer.la \
-       $(top_builddir)/src/common/libbabeltrace2-common.la \
+       $(top_builddir)/src/common/libcommon.la \
        $(top_builddir)/src/logging/liblogging.la
 
 gen_trace_simple_SOURCES = gen-trace-simple.c
This page took 0.03545 seconds and 4 git commands to generate.