1 # SPDX-FileCopyrightText: 2019-2023 EfficiOS, Inc.
2 # SPDX-License-Identifier: MIT
4 # Build the current dir containing the library and plugins before the cli and
10 if ENABLE_PYTHON_BINDINGS
11 SUBDIRS += bindings/python/bt2
14 ## This target generates an include file that contains the git version
15 ## string of the current branch, it must be continuously updated when
16 ## we build in the git repo and shipped in dist tarballs to reflect the
17 ## status of the tree when it was generated. If the tree is clean and
18 ## the current commit is a tag starting with "v", consider this a
19 ## release version and set an empty git version.
21 version_verbose = $(version_verbose_@AM_V@)
22 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
23 version_verbose_0 = @echo " GEN " $@;
26 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
28 dist_noinst_SCRIPTS = gen-version-i.sh
30 # Ensure version.i is generated before any code is built.
31 BUILT_SOURCES = common/version.i
34 ## version.i is defined as a .PHONY target even if it's a real file,
35 ## we want the target to be re-run on every make.
37 .PHONY: common/version.i
39 CLEANFILES = common/version.i.tmp
42 ## Only clean "version.i" on dist-clean, we need to keep it on regular
43 ## clean when it's part of a dist tarball.
45 DISTCLEANFILES = common/version.i
48 # Convenience libraries
51 noinst_LTLIBRARIES = \
53 autodisc/libautodisc.la \
54 clock-correlation-validator/libclock-correlation-validator.la \
57 cpp-common/libcpp-common.la \
58 cpp-common/vendor/fmt/libfmt.la \
60 fd-cache/libfd-cache.la \
61 logging/liblogging.la \
62 param-parse/libparam-parse.la \
63 plugins/common/muxing/libmuxing.la \
64 plugins/common/param-validation/libparam-validation.la \
65 plugins/ctf/common/metadata/libctf-ast.la \
66 plugins/ctf/common/metadata/libctf-parser.la \
67 string-format/libstring-format.la
70 argpar_libargpar_la_SOURCES = \
74 autodisc_libautodisc_la_SOURCES = \
78 clock_correlation_validator_libclock_correlation_validator_la_SOURCES = \
79 clock-correlation-validator/clock-correlation-validator.cpp \
80 clock-correlation-validator/clock-correlation-validator.h \
81 clock-correlation-validator/clock-correlation-validator.hpp
83 common_libcommon_la_SOURCES = \
98 common_libcommon_la_CPPFLAGS = \
100 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
102 compat_libcompat_la_SOURCES = \
120 cpp_common_libcpp_common_la_SOURCES = \
121 cpp-common/bt2/borrowed-object-iterator.hpp \
122 cpp-common/bt2/borrowed-object-proxy.hpp \
123 cpp-common/bt2/borrowed-object.hpp \
124 cpp-common/bt2/clock-class.hpp \
125 cpp-common/bt2/clock-snapshot.hpp \
126 cpp-common/bt2/component-class-dev.hpp \
127 cpp-common/bt2/component-class.hpp \
128 cpp-common/bt2/component-port.hpp \
129 cpp-common/bt2/graph.hpp \
130 cpp-common/bt2/error.hpp \
131 cpp-common/bt2/exc.hpp \
132 cpp-common/bt2/field-class.hpp \
133 cpp-common/bt2/field-path.hpp \
134 cpp-common/bt2/field.hpp \
135 cpp-common/bt2/integer-range-set.hpp \
136 cpp-common/bt2/integer-range.hpp \
137 cpp-common/bt2/internal/comp-cls-bridge.hpp \
138 cpp-common/bt2/internal/utils.hpp \
139 cpp-common/bt2/logging.hpp \
140 cpp-common/bt2/message-array.hpp \
141 cpp-common/bt2/message-iterator.hpp \
142 cpp-common/bt2/message.hpp \
143 cpp-common/bt2/optional-borrowed-object.hpp \
144 cpp-common/bt2/plugin-dev.hpp \
145 cpp-common/bt2/plugin-load.hpp \
146 cpp-common/bt2/plugin-set.hpp \
147 cpp-common/bt2/plugin.hpp \
148 cpp-common/bt2/private-query-executor.hpp \
149 cpp-common/bt2/query-executor.hpp \
150 cpp-common/bt2/raw-value-proxy.hpp \
151 cpp-common/bt2/self-component-class.hpp \
152 cpp-common/bt2/self-component-port.hpp \
153 cpp-common/bt2/self-message-iterator-configuration.hpp \
154 cpp-common/bt2/self-message-iterator.hpp \
155 cpp-common/bt2/shared-object.hpp \
156 cpp-common/bt2/trace-ir.hpp \
157 cpp-common/bt2/type-traits.hpp \
158 cpp-common/bt2/value.hpp \
159 cpp-common/bt2/wrap.hpp \
160 cpp-common/bt2c/align.hpp \
161 cpp-common/bt2c/c-string-view.hpp \
162 cpp-common/bt2c/call.hpp \
163 cpp-common/bt2c/contains.hpp \
164 cpp-common/bt2c/dummy.cpp \
165 cpp-common/bt2c/endian.hpp \
166 cpp-common/bt2c/exc.hpp \
167 cpp-common/bt2c/fmt.hpp \
168 cpp-common/bt2c/glib-up.hpp \
169 cpp-common/bt2c/libc-up.hpp \
170 cpp-common/bt2c/logging.hpp \
171 cpp-common/bt2c/prio-heap.hpp \
172 cpp-common/bt2c/read-fixed-len-int.hpp \
173 cpp-common/bt2c/safe-ops.hpp \
174 cpp-common/bt2c/span.hpp \
175 cpp-common/bt2c/std-int.hpp \
176 cpp-common/bt2c/type-traits.hpp \
177 cpp-common/bt2c/uuid.hpp \
178 cpp-common/bt2c/vector.hpp \
179 cpp-common/bt2s/make-unique.hpp \
180 cpp-common/bt2s/optional.hpp \
181 cpp-common/bt2s/span.hpp \
182 cpp-common/bt2s/string-view.hpp \
183 cpp-common/vendor/nlohmann/json.hpp \
184 cpp-common/vendor/optional-lite/optional.hpp \
185 cpp-common/vendor/span-lite/span.hpp \
186 cpp-common/vendor/string-view-lite/string_view.hpp \
187 cpp-common/vendor/wise-enum/optional.h \
188 cpp-common/vendor/wise-enum/optional_common.h \
189 cpp-common/vendor/wise-enum/wise_enum.h \
190 cpp-common/vendor/wise-enum/wise_enum_detail.h \
191 cpp-common/vendor/wise-enum/wise_enum_generated.h
193 cpp_common_vendor_fmt_libfmt_la_SOURCES = \
194 cpp-common/vendor/fmt/args.h \
195 cpp-common/vendor/fmt/chrono.h \
196 cpp-common/vendor/fmt/color.h \
197 cpp-common/vendor/fmt/compile.h \
198 cpp-common/vendor/fmt/core.h \
199 cpp-common/vendor/fmt/format-inl.h \
200 cpp-common/vendor/fmt/format.cc \
201 cpp-common/vendor/fmt/format.h \
202 cpp-common/vendor/fmt/os.cc \
203 cpp-common/vendor/fmt/os.h \
204 cpp-common/vendor/fmt/ostream.h \
205 cpp-common/vendor/fmt/printf.h \
206 cpp-common/vendor/fmt/ranges.h \
207 cpp-common/vendor/fmt/std.h \
208 cpp-common/vendor/fmt/xchar.h
210 cpp_common_vendor_fmt_libfmt_la_CXXFLAGS = \
211 $(AM_CXXFLAGS) -Wno-missing-noreturn
213 ctfser_libctfser_la_SOURCES = \
217 fd_cache_libfd_cache_la_SOURCES = \
218 fd-cache/fd-cache.c \
221 logging_liblogging_la_SOURCES = \
222 logging/comp-logging.h \
227 param_parse_libparam_parse_la_SOURCES = \
228 param-parse/param-parse.c \
229 param-parse/param-parse.h
231 string_format_libstring_format_la_SOURCES = \
232 string-format/format-plugin-comp-cls-name.c \
233 string-format/format-plugin-comp-cls-name.h \
234 string-format/format-error.c \
235 string-format/format-error.h
237 plugins_common_muxing_libmuxing_la_SOURCES = \
238 plugins/common/muxing/muxing.c \
239 plugins/common/muxing/muxing.h
241 plugins_common_param_validation_libparam_validation_la_SOURCES = \
242 plugins/common/param-validation/param-validation.c \
243 plugins/common/param-validation/param-validation.h
245 # Set flags for the Bison based metadata parser
246 # -t : instrument the parser
247 # -d : produce a header
249 # -Wno-yacc : disable POSIX Yacc incompatibilities warnings
253 plugins_ctf_common_metadata_libctf_parser_la_SOURCES = \
254 plugins/ctf/common/src/metadata/tsdl/lexer.lpp \
255 plugins/ctf/common/src/metadata/tsdl/parser.ypp \
256 plugins/ctf/common/src/metadata/tsdl/objstack.cpp
258 # scanner-symbols.h is included to prefix generated yy_* symbols with bt_.
259 plugins_ctf_common_metadata_libctf_parser_la_CPPFLAGS = \
261 -include $(srcdir)/plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp
263 # This library contains (mostly) generated code, silence some warnings that it
265 plugins_ctf_common_metadata_libctf_parser_la_CXXFLAGS = \
267 -Wno-unused-function \
268 -Wno-null-dereference \
269 -Wno-missing-field-initializers \
270 -Wno-unused-parameter
272 plugins_ctf_common_metadata_libctf_ast_la_SOURCES = \
273 plugins/ctf/common/src/metadata/tsdl/visitor-generate-ir.cpp \
274 plugins/ctf/common/src/metadata/tsdl/visitor-semantic-validator.cpp \
275 plugins/ctf/common/src/metadata/tsdl/visitor-parent-links.cpp \
276 plugins/ctf/common/src/metadata/tsdl/ast.hpp \
277 plugins/ctf/common/src/metadata/tsdl/objstack.hpp \
278 plugins/ctf/common/src/metadata/tsdl/parser.hpp \
279 plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp \
280 plugins/ctf/common/src/metadata/tsdl/scanner.hpp \
281 plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp \
282 plugins/ctf/common/src/metadata/tsdl/decoder.cpp \
283 plugins/ctf/common/src/metadata/tsdl/decoder.hpp \
284 plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.cpp \
285 plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.hpp \
286 plugins/ctf/common/src/metadata/tsdl/logging.hpp \
287 plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp \
288 plugins/ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp \
289 plugins/ctf/common/src/metadata/tsdl/ctf-meta-validate.cpp \
290 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-meanings.cpp \
291 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-in-ir.cpp \
292 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-default-clock-classes.cpp \
293 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-text-array-sequence.cpp \
294 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-alignments.cpp \
295 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-value-storing-indexes.cpp \
296 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-stream-class-config.cpp \
297 plugins/ctf/common/src/metadata/tsdl/ctf-meta-warn-meaningless-header-fields.cpp \
298 plugins/ctf/common/src/metadata/tsdl/ctf-meta-translate.cpp \
299 plugins/ctf/common/src/metadata/tsdl/ctf-meta-resolve.cpp \
300 plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.cpp \
301 plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp
303 if BABELTRACE_BUILD_WITH_MINGW
304 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
308 plugins/ctf/common/src/metadata/tsdl/parser.hpp
313 # We have bison: we can clean the generated parser files
315 plugins/ctf/common/src/metadata/tsdl/parser.cpp \
316 plugins/ctf/common/src/metadata/tsdl/parser.hpp \
317 plugins/ctf/common/src/metadata/tsdl/parser.output
319 # Create target used to stop the build if we want to build the parser,
320 # but we don't have the necessary tool to do so
321 plugins/ctf/common/metadata/parser.cpp plugins/ctf/common/metadata/parser.hpp: plugins/ctf/common/metadata/parser.ypp
322 @echo "Error: Cannot build target because bison is missing."
323 @echo "Make sure bison is installed and run the configure script again."
327 plugins/ctf/common/metadata/parser.cpp \
328 plugins/ctf/common/metadata/parser.hpp
332 # We have flex: we can clean the generated lexer files
333 CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
335 # Create target used to stop the build if we want to build the lexer,
336 # but we don't have the necessary tool to do so
337 plugins/ctf/common/metadata/lexer.cpp: plugins/ctf/common/metadata/lexer.lpp
338 @echo "Error: Cannot build target because flex is missing."
339 @echo "Make sure flex is installed and run the configure script again."
342 ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
345 all-local: $(ALL_LOCAL)
347 if ENABLE_PYTHON_COMMON_DEPS
348 noinst_LTLIBRARIES += py-common/libpy-common.la
350 py_common_libpy_common_la_SOURCES = \
351 py-common/py-common.c \
352 py-common/py-common.h
354 py_common_libpy_common_la_CPPFLAGS = \
358 endif # ENABLE_PYTHON_COMMON_DEPS
361 noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
363 plugins_lttng_utils_debug_info_libdebug_info_la_SOURCES = \
364 plugins/lttng-utils/debug-info/bin-info.c \
365 plugins/lttng-utils/debug-info/bin-info.h \
366 plugins/lttng-utils/debug-info/crc32.c \
367 plugins/lttng-utils/debug-info/crc32.h \
368 plugins/lttng-utils/debug-info/debug-info.c \
369 plugins/lttng-utils/debug-info/debug-info.h \
370 plugins/lttng-utils/debug-info/dwarf.c \
371 plugins/lttng-utils/debug-info/dwarf.h \
372 plugins/lttng-utils/debug-info/trace-ir-data-copy.c \
373 plugins/lttng-utils/debug-info/trace-ir-data-copy.h \
374 plugins/lttng-utils/debug-info/trace-ir-mapping.c \
375 plugins/lttng-utils/debug-info/trace-ir-mapping.h \
376 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c \
377 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h \
378 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c \
379 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h \
380 plugins/lttng-utils/debug-info/utils.c \
381 plugins/lttng-utils/debug-info/utils.h
383 plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
384 fd-cache/libfd-cache.la
386 endif # ENABLE_DEBUG_INFO
394 ctf-writer/libbabeltrace2-ctf-writer.la \
395 lib/libbabeltrace2.la
397 lib_libbabeltrace2_la_SOURCES = \
398 lib/graph/message/discarded-items.c \
399 lib/graph/message/discarded-items.h \
400 lib/graph/message/event.c \
401 lib/graph/message/event.h \
402 lib/graph/message-iterator-class.c \
403 lib/graph/message-iterator-class.h \
404 lib/graph/message/message.c \
405 lib/graph/message/message.h \
406 lib/graph/message/message-iterator-inactivity.c \
407 lib/graph/message/message-iterator-inactivity.h \
408 lib/graph/message/packet.c \
409 lib/graph/message/packet.h \
410 lib/graph/message/stream.c \
411 lib/graph/message/stream.h \
412 lib/graph/component.c \
413 lib/graph/component-class.c \
414 lib/graph/component-class.h \
415 lib/graph/component-class-sink-simple.c \
416 lib/graph/component-class-sink-simple.h \
417 lib/graph/component-descriptor-set.c \
418 lib/graph/component-descriptor-set.h \
419 lib/graph/component-filter.c \
420 lib/graph/component-filter.h \
421 lib/graph/component.h \
422 lib/graph/component-sink.c \
423 lib/graph/component-sink.h \
424 lib/graph/component-source.c \
425 lib/graph/component-source.h \
426 lib/graph/connection.c \
427 lib/graph/connection.h \
430 lib/graph/interrupter.c \
431 lib/graph/interrupter.h \
432 lib/graph/iterator.c \
433 lib/graph/iterator.h \
437 lib/graph/query-executor.c \
438 lib/graph/query-executor.h \
439 lib/plugin/plugin.c \
440 lib/plugin/plugin.h \
441 lib/plugin/plugin-so.c \
442 lib/plugin/plugin-so.h \
443 lib/trace-ir/attributes.c \
444 lib/trace-ir/attributes.h \
445 lib/trace-ir/clock-class.c \
446 lib/trace-ir/clock-class.h \
447 lib/trace-ir/clock-snapshot.c \
448 lib/trace-ir/clock-snapshot.h \
449 lib/trace-ir/event.c \
450 lib/trace-ir/event-class.c \
451 lib/trace-ir/event-class.h \
452 lib/trace-ir/event.h \
453 lib/trace-ir/field.c \
454 lib/trace-ir/field-class.c \
455 lib/trace-ir/field-class.h \
456 lib/trace-ir/field.h \
457 lib/trace-ir/field-path.c \
458 lib/trace-ir/field-path.h \
459 lib/trace-ir/field-wrapper.c \
460 lib/trace-ir/field-wrapper.h \
461 lib/trace-ir/packet.c \
462 lib/trace-ir/packet.h \
463 lib/trace-ir/resolve-field-path.c \
464 lib/trace-ir/resolve-field-path.h \
465 lib/trace-ir/stream.c \
466 lib/trace-ir/stream-class.c \
467 lib/trace-ir/stream-class.h \
468 lib/trace-ir/stream.h \
469 lib/trace-ir/trace.c \
470 lib/trace-ir/trace-class.c \
471 lib/trace-ir/trace-class.h \
472 lib/trace-ir/trace.h \
473 lib/trace-ir/utils.c \
474 lib/trace-ir/utils.h \
475 lib/assert-cond-base.h \
479 lib/current-thread.c \
483 lib/integer-range-set.c \
484 lib/integer-range-set.h \
496 lib_libbabeltrace2_la_LDFLAGS = \
499 -version-info $(BABELTRACE_LIBRARY_VERSION)
501 lib_libbabeltrace2_la_CPPFLAGS = \
503 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
505 lib_libbabeltrace2_la_LIBADD = \
506 logging/liblogging.la \
507 common/libcommon.la \
508 compat/libcompat.la \
509 clock-correlation-validator/libclock-correlation-validator.la
511 nodist_EXTRA_lib_libbabeltrace2_la_SOURCES = dummy.cpp
513 ctf_writer_libbabeltrace2_ctf_writer_la_SOURCES = \
514 ctf-writer/assert-pre.h \
515 ctf-writer/attributes.c \
516 ctf-writer/attributes.h \
518 ctf-writer/clock-class.c \
519 ctf-writer/clock-class.h \
522 ctf-writer/event-class.c \
523 ctf-writer/event-class.h \
525 ctf-writer/field-path.c \
526 ctf-writer/field-path.h \
527 ctf-writer/fields.c \
528 ctf-writer/fields.h \
529 ctf-writer/field-types.c \
530 ctf-writer/field-types.h \
531 ctf-writer/field-wrapper.c \
532 ctf-writer/field-wrapper.h \
533 ctf-writer/functor.c \
534 ctf-writer/functor.h \
535 ctf-writer/logging.c \
536 ctf-writer/logging.h \
537 ctf-writer/object.c \
538 ctf-writer/object.h \
539 ctf-writer/object-pool.c \
540 ctf-writer/object-pool.h \
541 ctf-writer/resolve.c \
542 ctf-writer/resolve.h \
543 ctf-writer/stream.c \
544 ctf-writer/stream-class.c \
545 ctf-writer/stream-class.h \
546 ctf-writer/stream.h \
551 ctf-writer/validation.c \
552 ctf-writer/validation.h \
553 ctf-writer/values.c \
554 ctf-writer/values.h \
555 ctf-writer/visitor.c \
556 ctf-writer/visitor.h \
557 ctf-writer/writer.c \
560 ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
563 -version-info $(BABELTRACE_LIBRARY_VERSION)
565 ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
566 logging/liblogging.la \
567 common/libcommon.la \
568 ctfser/libctfser.la \
571 pkgconfigdir = $(libdir)/pkgconfig
573 babeltrace2-ctf-writer.pc \
577 # Python plugin provider
580 if ENABLE_PYTHON_PLUGINS
581 pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
582 pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
584 python_plugin_provider_babeltrace2_python_plugin_provider_la_SOURCES = \
585 python-plugin-provider/python-plugin-provider.c \
586 python-plugin-provider/python-plugin-provider.h
588 python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
591 -avoid-version -module \
594 python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
598 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD =
600 # Link the Python plugin provider library with libbabeltrace2
601 # when it's not built-in the babeltrace2 executable.
602 if !ENABLE_BUILT_IN_PLUGINS
603 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
604 logging/liblogging.la \
605 common/libcommon.la \
606 py-common/libpy-common.la \
607 lib/libbabeltrace2.la
609 endif # ENABLE_PYTHON_PLUGINS
615 plugindir = "$(BABELTRACE_PLUGINS_DIR)"
616 plugin_LTLIBRARIES = \
617 plugins/ctf/babeltrace-plugin-ctf.la \
618 plugins/text/babeltrace-plugin-text.la \
619 plugins/utils/babeltrace-plugin-utils.la
623 plugins_utils_babeltrace_plugin_utils_la_SOURCES = \
624 plugins/utils/counter/counter.c \
625 plugins/utils/counter/counter.h \
626 plugins/utils/dummy/dummy.c \
627 plugins/utils/dummy/dummy.h \
628 plugins/utils/muxer/comp.cpp \
629 plugins/utils/muxer/comp.hpp \
630 plugins/utils/muxer/msg-iter.cpp \
631 plugins/utils/muxer/msg-iter.hpp \
632 plugins/utils/muxer/upstream-msg-iter.cpp \
633 plugins/utils/muxer/upstream-msg-iter.hpp \
634 plugins/utils/trimmer/trimmer.c \
635 plugins/utils/trimmer/trimmer.h \
636 plugins/utils/plugin.cpp
638 plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
641 -avoid-version -module $(LD_NOTEXT)
643 plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
644 plugins/common/muxing/libmuxing.la
646 if !ENABLE_BUILT_IN_PLUGINS
647 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
648 lib/libbabeltrace2.la \
649 common/libcommon.la \
650 cpp-common/vendor/fmt/libfmt.la \
651 logging/liblogging.la \
652 plugins/common/param-validation/libparam-validation.la \
653 clock-correlation-validator/libclock-correlation-validator.la
657 plugins_ctf_babeltrace_plugin_ctf_la_SOURCES = \
658 plugins/ctf/common/src/bfcr/bfcr.cpp \
659 plugins/ctf/common/src/bfcr/bfcr.hpp \
660 plugins/ctf/common/src/msg-iter/msg-iter.cpp \
661 plugins/ctf/common/src/msg-iter/msg-iter.hpp \
662 plugins/ctf/fs-sink/fs-sink.cpp \
663 plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp \
664 plugins/ctf/fs-sink/fs-sink.hpp \
665 plugins/ctf/fs-sink/fs-sink-stream.cpp \
666 plugins/ctf/fs-sink/fs-sink-stream.hpp \
667 plugins/ctf/fs-sink/fs-sink-trace.cpp \
668 plugins/ctf/fs-sink/fs-sink-trace.hpp \
669 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp \
670 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp \
671 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.cpp \
672 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp \
673 plugins/ctf/fs-src/data-stream-file.cpp \
674 plugins/ctf/fs-src/data-stream-file.hpp \
675 plugins/ctf/fs-src/file.cpp \
676 plugins/ctf/fs-src/file.hpp \
677 plugins/ctf/fs-src/fs.cpp \
678 plugins/ctf/fs-src/fs.hpp \
679 plugins/ctf/fs-src/lttng-index.hpp \
680 plugins/ctf/fs-src/metadata.cpp \
681 plugins/ctf/fs-src/metadata.hpp \
682 plugins/ctf/fs-src/query.cpp \
683 plugins/ctf/fs-src/query.hpp \
684 plugins/ctf/lttng-live/data-stream.cpp \
685 plugins/ctf/lttng-live/data-stream.hpp \
686 plugins/ctf/lttng-live/lttng-live.cpp \
687 plugins/ctf/lttng-live/lttng-live.hpp \
688 plugins/ctf/lttng-live/lttng-viewer-abi.hpp \
689 plugins/ctf/lttng-live/metadata.cpp \
690 plugins/ctf/lttng-live/metadata.hpp \
691 plugins/ctf/lttng-live/viewer-connection.cpp \
692 plugins/ctf/lttng-live/viewer-connection.hpp \
693 plugins/ctf/plugin.cpp
695 plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
698 -avoid-version -module $(LD_NOTEXT)
700 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD = \
701 plugins/ctf/common/metadata/libctf-parser.la \
702 plugins/ctf/common/metadata/libctf-ast.la \
703 plugins/common/param-validation/libparam-validation.la
705 if BABELTRACE_BUILD_WITH_MINGW
706 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
709 if !ENABLE_BUILT_IN_PLUGINS
710 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
711 lib/libbabeltrace2.la \
712 logging/liblogging.la \
713 plugins/common/muxing/libmuxing.la \
714 common/libcommon.la \
715 ctfser/libctfser.la \
716 cpp-common/vendor/fmt/libfmt.la
720 plugins_text_babeltrace_plugin_text_la_SOURCES = \
721 plugins/text/details/colors.h \
722 plugins/text/details/details.c \
723 plugins/text/details/details.h \
724 plugins/text/details/obj-lifetime-mgmt.c \
725 plugins/text/details/obj-lifetime-mgmt.h \
726 plugins/text/details/write.c \
727 plugins/text/details/write.h \
728 plugins/text/dmesg/dmesg.c \
729 plugins/text/dmesg/dmesg.h \
730 plugins/text/pretty/pretty.c \
731 plugins/text/pretty/pretty.h \
732 plugins/text/pretty/print.c \
733 plugins/text/plugin.c
735 plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
738 -avoid-version -module $(LD_NOTEXT)
740 plugins_text_babeltrace_plugin_text_la_LIBADD =
742 if !ENABLE_BUILT_IN_PLUGINS
743 plugins_text_babeltrace_plugin_text_la_LIBADD += \
744 lib/libbabeltrace2.la \
745 common/libcommon.la \
746 logging/liblogging.la \
747 compat/libcompat.la \
748 plugins/common/param-validation/libparam-validation.la
753 plugin_LTLIBRARIES += \
754 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
756 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
757 plugins/lttng-utils/plugin.c
759 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LDFLAGS = \
762 -avoid-version -module $(LD_NOTEXT) \
765 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
766 plugins/lttng-utils/debug-info/libdebug-info.la
768 if !ENABLE_BUILT_IN_PLUGINS
769 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
770 lib/libbabeltrace2.la \
771 common/libcommon.la \
772 logging/liblogging.la \
773 plugins/common/param-validation/libparam-validation.la
774 endif # !ENABLE_BUILT_IN_PLUGINS
775 endif # ENABLE_DEBUG_INFO
778 cpp-common/vendor/optional-lite/optional.hpp.license \
779 cpp-common/vendor/span-lite/span.hpp.license \
780 cpp-common/vendor/string-view-lite/string_view.hpp.license