1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
# SPDX-License-Identifier: GPL-2.0-only
# Build the local dir first, llibtestutils.la is used by testapps
SUBDIRS = . testapp
EXTRA_DIST = \
lttngtest/environment.py \
lttngtest/__init__.py \
lttngtest/logger.py \
lttngtest/lttngctl.py \
lttngtest/lttng.py \
lttngtest/tap_generator.py \
extract_ctf_2_prop.py \
parse-callstack.py \
tap-driver.sh \
tap/tap.sh \
utils.sh \
warn_processes.sh
noinst_HEADERS = \
xml-utils/common.hpp
noinst_LTLIBRARIES = \
bt2_plugins/lttngtest.la \
libtestutils.la \
tap/libtap.la
noinst_PROGRAMS = \
tap/clock \
xml-utils/extract_xml \
xml-utils/pretty_xml \
xml-utils/validate_xml
libtestutils_la_SOURCES = \
utils.cpp \
utils.h
## tap
tap_clock_SOURCES = tap/clock.cpp
tap_clock_LDADD = \
libtestutils.la \
$(top_builddir)/src/vendor/fmt/libfmt.la
tap_libtap_la_SOURCES = tap/tap.c tap/tap.h
tap_libtap_la_LIBADD = libtestutils.la
## xml-utils
xml_utils_validate_xml_SOURCES = xml-utils/validate_xml.cpp
xml_utils_validate_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
xml_utils_validate_xml_LDADD = $(libxml2_LIBS)
xml_utils_extract_xml_SOURCES = xml-utils/extract_xml.cpp
xml_utils_extract_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
xml_utils_extract_xml_LDADD = $(libxml2_LIBS)
xml_utils_pretty_xml_SOURCES = xml-utils/pretty_xml.cpp
xml_utils_pretty_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
xml_utils_pretty_xml_LDADD = $(libxml2_LIBS)
## bt2_plugins
bt2_plugins_lttngtest_la_SOURCES = \
bt2_plugins/event_name/event_name.cpp \
bt2_plugins/event_name/event_name.hpp \
bt2_plugins/field_stats/field_stats.cpp \
bt2_plugins/field_stats/field_stats.hpp \
bt2_plugins/fmt.hpp \
bt2_plugins/lttngtest-plugin.cpp \
bt2_plugins/utils.hpp
# lttng-tools uses -fvisibility=hidden by default, but to
# produce a loadable plugin some of the symbols must not be
# hidden. Override the `-fvisibility` for this shared object.
bt2_plugins_lttngtest_la_CXXFLAGS = \
$(AM_CXXFLAGS) \
-fvisibility=default
bt2_plugins_lttngtest_la_CPPFLAGS = \
$(babeltrace2_CFLAGS) \
$(AM_CPPFLAGS)
bt2_plugins_lttngtest_la_LDFLAGS = \
$(AM_LDFLAGS) \
-rpath / -avoid-version -module
bt2_plugins_lttngtest_la_LIBADD = \
$(top_builddir)/src/vendor/fmt/libfmt.la
# Copy test scripts to the builddir for OOT builds
all-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
for script in $(EXTRA_DIST); do \
if [ x"$$(dirname $$script)" != x"." ]; then \
mkdir -p $(builddir)/$$(dirname $$script); \
fi; \
cp -f $(srcdir)/$$script $(builddir)/$$script; \
done; \
fi
clean-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
for script in $(EXTRA_DIST); do \
rm -f $(builddir)/$$script; \
done; \
fi
|