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
15 cpp-common/bt2/borrowed-object-iterator.hpp \
16 cpp-common/bt2/borrowed-object-proxy.hpp \
17 cpp-common/bt2/borrowed-object.hpp \
18 cpp-common/bt2/clock-class.hpp \
19 cpp-common/bt2/clock-snapshot.hpp \
20 cpp-common/bt2/component-port.hpp \
21 cpp-common/bt2/exc.hpp \
22 cpp-common/bt2/field-class.hpp \
23 cpp-common/bt2/field-path.hpp \
24 cpp-common/bt2/field.hpp \
25 cpp-common/bt2/integer-range-set.hpp \
26 cpp-common/bt2/integer-range.hpp \
27 cpp-common/bt2/internal/utils.hpp \
28 cpp-common/bt2/logging.hpp \
29 cpp-common/bt2/message-array.hpp \
30 cpp-common/bt2/message-iterator.hpp \
31 cpp-common/bt2/message.hpp \
32 cpp-common/bt2/shared-object.hpp \
33 cpp-common/bt2/raw-value-proxy.hpp \
34 cpp-common/bt2/private-query-executor.hpp \
35 cpp-common/bt2/self-component-class.hpp \
36 cpp-common/bt2/self-component-port.hpp \
37 cpp-common/bt2/self-message-iterator-configuration.hpp \
38 cpp-common/bt2/self-message-iterator.hpp \
39 cpp-common/bt2/shared-object.hpp \
40 cpp-common/bt2/trace-ir.hpp \
41 cpp-common/bt2/type-traits.hpp \
42 cpp-common/bt2/value.hpp \
43 cpp-common/bt2/wrap.hpp \
44 cpp-common/bt2c/align.hpp \
45 cpp-common/bt2c/endian.hpp \
46 cpp-common/bt2c/exc.hpp \
47 cpp-common/bt2c/glib-up.hpp \
48 cpp-common/bt2c/lib-str.hpp \
49 cpp-common/bt2c/libc-up.hpp \
50 cpp-common/bt2c/read-fixed-len-int.hpp \
51 cpp-common/bt2c/safe-ops.hpp \
52 cpp-common/bt2c/std-int.hpp \
53 cpp-common/bt2c/uuid-view.hpp \
54 cpp-common/bt2c/uuid.hpp \
55 cpp-common/bt2c/vector.hpp \
56 cpp-common/bt2s/make-unique.hpp \
57 cpp-common/bt2s/optional.hpp \
58 cpp-common/bt2s/string-view.hpp \
59 cpp-common/nlohmann/json.hpp \
60 cpp-common/vendor/optional-lite/optional.hpp \
61 cpp-common/vendor/string_view-standalone/string_view.hpp
63 ## This target generates an include file that contains the git version
64 ## string of the current branch, it must be continuously updated when
65 ## we build in the git repo and shipped in dist tarballs to reflect the
66 ## status of the tree when it was generated. If the tree is clean and
67 ## the current commit is a tag starting with "v", consider this a
68 ## release version and set an empty git version.
70 version_verbose = $(version_verbose_@AM_V@)
71 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
72 version_verbose_0 = @echo " GEN " $@;
75 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
77 dist_noinst_SCRIPTS = gen-version-i.sh
79 # Ensure version.i is generated before any code is built.
80 BUILT_SOURCES = common/version.i
83 ## version.i is defined as a .PHONY target even if it's a real file,
84 ## we want the target to be re-run on every make.
86 .PHONY: common/version.i
88 CLEANFILES = common/version.i.tmp
91 ## Only clean "version.i" on dist-clean, we need to keep it on regular
92 ## clean when it's part of a dist tarball.
94 DISTCLEANFILES = common/version.i
97 # Convenience libraries
100 noinst_LTLIBRARIES = \
101 argpar/libargpar.la \
102 autodisc/libautodisc.la \
103 common/libcommon.la \
104 compat/libcompat.la \
105 ctfser/libctfser.la \
106 fd-cache/libfd-cache.la \
107 logging/liblogging.la \
108 param-parse/libparam-parse.la \
109 plugins/common/muxing/libmuxing.la \
110 plugins/common/param-validation/libparam-validation.la \
111 plugins/ctf/common/metadata/libctf-ast.la \
112 plugins/ctf/common/metadata/libctf-parser.la \
113 string-format/libstring-format.la
116 argpar_libargpar_la_SOURCES = \
120 autodisc_libautodisc_la_SOURCES = \
121 autodisc/autodisc.c \
124 common_libcommon_la_SOURCES = \
132 common/mmap-align.h \
139 common_libcommon_la_CPPFLAGS = \
141 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
143 compat_libcompat_la_SOURCES = \
161 ctfser_libctfser_la_SOURCES = \
165 fd_cache_libfd_cache_la_SOURCES = \
166 fd-cache/fd-cache.c \
169 logging_liblogging_la_SOURCES = \
170 logging/comp-logging.h \
174 param_parse_libparam_parse_la_SOURCES = \
175 param-parse/param-parse.c \
176 param-parse/param-parse.h
178 string_format_libstring_format_la_SOURCES = \
179 string-format/format-plugin-comp-cls-name.c \
180 string-format/format-plugin-comp-cls-name.h \
181 string-format/format-error.c \
182 string-format/format-error.h
184 plugins_common_muxing_libmuxing_la_SOURCES = \
185 plugins/common/muxing/muxing.c \
186 plugins/common/muxing/muxing.h
188 plugins_common_param_validation_libparam_validation_la_SOURCES = \
189 plugins/common/param-validation/param-validation.c \
190 plugins/common/param-validation/param-validation.h
192 # Set flags for the Bison based metadata parser
193 # -t : instrument the parser
194 # -d : produce a header
196 # -Wno-yacc : disable POSIX Yacc incompatibilities warnings
200 plugins_ctf_common_metadata_libctf_parser_la_SOURCES = \
201 plugins/ctf/common/metadata/lexer.lpp \
202 plugins/ctf/common/metadata/parser.ypp \
203 plugins/ctf/common/metadata/objstack.cpp
205 # scanner-symbols.h is included to prefix generated yy_* symbols with bt_.
206 plugins_ctf_common_metadata_libctf_parser_la_CPPFLAGS = \
208 -include $(srcdir)/plugins/ctf/common/metadata/scanner-symbols.hpp
210 # This library contains (mostly) generated code, silence some warnings that it
212 plugins_ctf_common_metadata_libctf_parser_la_CXXFLAGS = \
214 -Wno-unused-function \
215 -Wno-null-dereference \
216 -Wno-missing-field-initializers \
217 -Wno-unused-parameter
219 plugins_ctf_common_metadata_libctf_ast_la_SOURCES = \
220 plugins/ctf/common/metadata/visitor-generate-ir.cpp \
221 plugins/ctf/common/metadata/visitor-semantic-validator.cpp \
222 plugins/ctf/common/metadata/visitor-parent-links.cpp \
223 plugins/ctf/common/metadata/ast.hpp \
224 plugins/ctf/common/metadata/objstack.hpp \
225 plugins/ctf/common/metadata/parser.hpp \
226 plugins/ctf/common/metadata/parser-wrap.hpp \
227 plugins/ctf/common/metadata/scanner.hpp \
228 plugins/ctf/common/metadata/scanner-symbols.hpp \
229 plugins/ctf/common/metadata/decoder.cpp \
230 plugins/ctf/common/metadata/decoder.hpp \
231 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.cpp \
232 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.hpp \
233 plugins/ctf/common/metadata/logging.cpp \
234 plugins/ctf/common/metadata/logging.hpp \
235 plugins/ctf/common/metadata/ctf-meta.hpp \
236 plugins/ctf/common/metadata/ctf-meta-visitors.hpp \
237 plugins/ctf/common/metadata/ctf-meta-validate.cpp \
238 plugins/ctf/common/metadata/ctf-meta-update-meanings.cpp \
239 plugins/ctf/common/metadata/ctf-meta-update-in-ir.cpp \
240 plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.cpp \
241 plugins/ctf/common/metadata/ctf-meta-update-text-array-sequence.cpp \
242 plugins/ctf/common/metadata/ctf-meta-update-alignments.cpp \
243 plugins/ctf/common/metadata/ctf-meta-update-value-storing-indexes.cpp \
244 plugins/ctf/common/metadata/ctf-meta-update-stream-class-config.cpp \
245 plugins/ctf/common/metadata/ctf-meta-warn-meaningless-header-fields.cpp \
246 plugins/ctf/common/metadata/ctf-meta-translate.cpp \
247 plugins/ctf/common/metadata/ctf-meta-resolve.cpp \
248 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.cpp \
249 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.hpp
251 if BABELTRACE_BUILD_WITH_MINGW
252 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
256 plugins/ctf/common/metadata/parser.hpp
261 # We have bison: we can clean the generated parser files
263 plugins/ctf/common/metadata/parser.cpp \
264 plugins/ctf/common/metadata/parser.hpp \
265 plugins/ctf/common/metadata/parser.output
267 # Create target used to stop the build if we want to build the parser,
268 # but we don't have the necessary tool to do so
269 plugins/ctf/common/metadata/parser.cpp plugins/ctf/common/metadata/parser.hpp: plugins/ctf/common/metadata/parser.ypp
270 @echo "Error: Cannot build target because bison is missing."
271 @echo "Make sure bison is installed and run the configure script again."
275 plugins/ctf/common/metadata/parser.cpp \
276 plugins/ctf/common/metadata/parser.hpp
280 # We have flex: we can clean the generated lexer files
281 CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
283 # Create target used to stop the build if we want to build the lexer,
284 # but we don't have the necessary tool to do so
285 plugins/ctf/common/metadata/lexer.cpp: plugins/ctf/common/metadata/lexer.lpp
286 @echo "Error: Cannot build target because flex is missing."
287 @echo "Make sure flex is installed and run the configure script again."
290 ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
293 all-local: $(ALL_LOCAL)
295 if ENABLE_PYTHON_COMMON_DEPS
296 noinst_LTLIBRARIES += py-common/libpy-common.la
298 py_common_libpy_common_la_SOURCES = \
299 py-common/py-common.c \
300 py-common/py-common.h
302 py_common_libpy_common_la_CPPFLAGS = \
306 endif # ENABLE_PYTHON_COMMON_DEPS
309 noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
311 plugins_lttng_utils_debug_info_libdebug_info_la_SOURCES = \
312 plugins/lttng-utils/debug-info/bin-info.c \
313 plugins/lttng-utils/debug-info/bin-info.h \
314 plugins/lttng-utils/debug-info/crc32.c \
315 plugins/lttng-utils/debug-info/crc32.h \
316 plugins/lttng-utils/debug-info/debug-info.c \
317 plugins/lttng-utils/debug-info/debug-info.h \
318 plugins/lttng-utils/debug-info/dwarf.c \
319 plugins/lttng-utils/debug-info/dwarf.h \
320 plugins/lttng-utils/debug-info/trace-ir-data-copy.c \
321 plugins/lttng-utils/debug-info/trace-ir-data-copy.h \
322 plugins/lttng-utils/debug-info/trace-ir-mapping.c \
323 plugins/lttng-utils/debug-info/trace-ir-mapping.h \
324 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c \
325 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h \
326 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c \
327 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h \
328 plugins/lttng-utils/debug-info/utils.c \
329 plugins/lttng-utils/debug-info/utils.h
331 plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
332 fd-cache/libfd-cache.la
334 endif # ENABLE_DEBUG_INFO
342 ctf-writer/libbabeltrace2-ctf-writer.la \
343 lib/libbabeltrace2.la
345 lib_libbabeltrace2_la_SOURCES = \
346 lib/graph/message/discarded-items.c \
347 lib/graph/message/discarded-items.h \
348 lib/graph/message/event.c \
349 lib/graph/message/event.h \
350 lib/graph/message-iterator-class.c \
351 lib/graph/message-iterator-class.h \
352 lib/graph/message/iterator.h \
353 lib/graph/message/message.c \
354 lib/graph/message/message.h \
355 lib/graph/message/message-iterator-inactivity.c \
356 lib/graph/message/message-iterator-inactivity.h \
357 lib/graph/message/packet.c \
358 lib/graph/message/packet.h \
359 lib/graph/message/stream.c \
360 lib/graph/message/stream.h \
361 lib/graph/component.c \
362 lib/graph/component-class.c \
363 lib/graph/component-class.h \
364 lib/graph/component-class-sink-simple.c \
365 lib/graph/component-class-sink-simple.h \
366 lib/graph/component-descriptor-set.c \
367 lib/graph/component-descriptor-set.h \
368 lib/graph/component-filter.c \
369 lib/graph/component-filter.h \
370 lib/graph/component.h \
371 lib/graph/component-sink.c \
372 lib/graph/component-sink.h \
373 lib/graph/component-source.c \
374 lib/graph/component-source.h \
375 lib/graph/connection.c \
376 lib/graph/connection.h \
379 lib/graph/interrupter.c \
380 lib/graph/interrupter.h \
381 lib/graph/iterator.c \
385 lib/graph/query-executor.c \
386 lib/graph/query-executor.h \
387 lib/plugin/plugin.c \
388 lib/plugin/plugin.h \
389 lib/plugin/plugin-so.c \
390 lib/plugin/plugin-so.h \
391 lib/prio-heap/prio-heap.c \
392 lib/prio-heap/prio-heap.h \
393 lib/trace-ir/attributes.c \
394 lib/trace-ir/attributes.h \
395 lib/trace-ir/clock-class.c \
396 lib/trace-ir/clock-class.h \
397 lib/trace-ir/clock-snapshot.c \
398 lib/trace-ir/clock-snapshot.h \
399 lib/trace-ir/event.c \
400 lib/trace-ir/event-class.c \
401 lib/trace-ir/event-class.h \
402 lib/trace-ir/event.h \
403 lib/trace-ir/field.c \
404 lib/trace-ir/field-class.c \
405 lib/trace-ir/field-class.h \
406 lib/trace-ir/field.h \
407 lib/trace-ir/field-path.c \
408 lib/trace-ir/field-path.h \
409 lib/trace-ir/field-wrapper.c \
410 lib/trace-ir/field-wrapper.h \
411 lib/trace-ir/packet.c \
412 lib/trace-ir/packet.h \
413 lib/trace-ir/resolve-field-path.c \
414 lib/trace-ir/resolve-field-path.h \
415 lib/trace-ir/stream.c \
416 lib/trace-ir/stream-class.c \
417 lib/trace-ir/stream-class.h \
418 lib/trace-ir/stream.h \
419 lib/trace-ir/trace.c \
420 lib/trace-ir/trace-class.c \
421 lib/trace-ir/trace-class.h \
422 lib/trace-ir/trace.h \
423 lib/trace-ir/utils.c \
424 lib/trace-ir/utils.h \
425 lib/assert-cond-base.h \
429 lib/current-thread.c \
433 lib/integer-range-set.c \
434 lib/integer-range-set.h \
446 lib_libbabeltrace2_la_LDFLAGS = \
449 -version-info $(BABELTRACE_LIBRARY_VERSION)
451 lib_libbabeltrace2_la_CPPFLAGS = \
453 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
455 lib_libbabeltrace2_la_LIBADD = \
456 logging/liblogging.la \
457 common/libcommon.la \
460 ctf_writer_libbabeltrace2_ctf_writer_la_SOURCES = \
461 ctf-writer/assert-pre.h \
462 ctf-writer/attributes.c \
463 ctf-writer/attributes.h \
465 ctf-writer/clock-class.c \
466 ctf-writer/clock-class.h \
469 ctf-writer/event-class.c \
470 ctf-writer/event-class.h \
472 ctf-writer/field-path.c \
473 ctf-writer/field-path.h \
474 ctf-writer/fields.c \
475 ctf-writer/fields.h \
476 ctf-writer/field-types.c \
477 ctf-writer/field-types.h \
478 ctf-writer/field-wrapper.c \
479 ctf-writer/field-wrapper.h \
480 ctf-writer/functor.c \
481 ctf-writer/functor.h \
482 ctf-writer/logging.c \
483 ctf-writer/logging.h \
484 ctf-writer/object.c \
485 ctf-writer/object.h \
486 ctf-writer/object-pool.c \
487 ctf-writer/object-pool.h \
488 ctf-writer/resolve.c \
489 ctf-writer/resolve.h \
490 ctf-writer/stream.c \
491 ctf-writer/stream-class.c \
492 ctf-writer/stream-class.h \
493 ctf-writer/stream.h \
498 ctf-writer/validation.c \
499 ctf-writer/validation.h \
500 ctf-writer/values.c \
501 ctf-writer/values.h \
502 ctf-writer/visitor.c \
503 ctf-writer/visitor.h \
504 ctf-writer/writer.c \
507 ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
510 -version-info $(BABELTRACE_LIBRARY_VERSION)
512 ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
513 logging/liblogging.la \
514 common/libcommon.la \
515 ctfser/libctfser.la \
518 pkgconfigdir = $(libdir)/pkgconfig
520 babeltrace2-ctf-writer.pc \
524 # Python plugin provider
527 if ENABLE_PYTHON_PLUGINS
528 pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
529 pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
531 python_plugin_provider_babeltrace2_python_plugin_provider_la_SOURCES = \
532 python-plugin-provider/python-plugin-provider.c \
533 python-plugin-provider/python-plugin-provider.h
535 python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
538 -avoid-version -module \
541 python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
545 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD =
547 # Link the Python plugin provider library with libbabeltrace2
548 # when it's not built-in the babeltrace2 executable.
549 if !ENABLE_BUILT_IN_PLUGINS
550 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
551 logging/liblogging.la \
552 common/libcommon.la \
553 py-common/libpy-common.la \
554 lib/libbabeltrace2.la
556 endif # ENABLE_PYTHON_PLUGINS
562 plugindir = "$(BABELTRACE_PLUGINS_DIR)"
563 plugin_LTLIBRARIES = \
564 plugins/ctf/babeltrace-plugin-ctf.la \
565 plugins/text/babeltrace-plugin-text.la \
566 plugins/utils/babeltrace-plugin-utils.la
570 plugins_utils_babeltrace_plugin_utils_la_SOURCES = \
571 plugins/utils/counter/counter.c \
572 plugins/utils/counter/counter.h \
573 plugins/utils/dummy/dummy.c \
574 plugins/utils/dummy/dummy.h \
575 plugins/utils/muxer/muxer.c \
576 plugins/utils/muxer/muxer.h \
577 plugins/utils/trimmer/trimmer.c \
578 plugins/utils/trimmer/trimmer.h \
579 plugins/utils/plugin.c
581 plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
584 -avoid-version -module $(LD_NOTEXT)
586 plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
587 plugins/common/muxing/libmuxing.la
589 if !ENABLE_BUILT_IN_PLUGINS
590 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
591 lib/libbabeltrace2.la \
592 common/libcommon.la \
593 logging/liblogging.la \
594 plugins/common/param-validation/libparam-validation.la
598 plugins_ctf_babeltrace_plugin_ctf_la_SOURCES = \
599 plugins/ctf/common/bfcr/bfcr.cpp \
600 plugins/ctf/common/bfcr/bfcr.hpp \
601 plugins/ctf/common/msg-iter/msg-iter.cpp \
602 plugins/ctf/common/msg-iter/msg-iter.hpp \
603 plugins/ctf/common/print.hpp \
604 plugins/ctf/fs-sink/fs-sink.cpp \
605 plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp \
606 plugins/ctf/fs-sink/fs-sink.hpp \
607 plugins/ctf/fs-sink/fs-sink-stream.cpp \
608 plugins/ctf/fs-sink/fs-sink-stream.hpp \
609 plugins/ctf/fs-sink/fs-sink-trace.cpp \
610 plugins/ctf/fs-sink/fs-sink-trace.hpp \
611 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp \
612 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp \
613 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.cpp \
614 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp \
615 plugins/ctf/fs-src/data-stream-file.cpp \
616 plugins/ctf/fs-src/data-stream-file.hpp \
617 plugins/ctf/fs-src/file.cpp \
618 plugins/ctf/fs-src/file.hpp \
619 plugins/ctf/fs-src/fs.cpp \
620 plugins/ctf/fs-src/fs.hpp \
621 plugins/ctf/fs-src/lttng-index.hpp \
622 plugins/ctf/fs-src/metadata.cpp \
623 plugins/ctf/fs-src/metadata.hpp \
624 plugins/ctf/fs-src/query.cpp \
625 plugins/ctf/fs-src/query.hpp \
626 plugins/ctf/lttng-live/data-stream.cpp \
627 plugins/ctf/lttng-live/data-stream.hpp \
628 plugins/ctf/lttng-live/lttng-live.cpp \
629 plugins/ctf/lttng-live/lttng-live.hpp \
630 plugins/ctf/lttng-live/lttng-viewer-abi.hpp \
631 plugins/ctf/lttng-live/metadata.cpp \
632 plugins/ctf/lttng-live/metadata.hpp \
633 plugins/ctf/lttng-live/viewer-connection.cpp \
634 plugins/ctf/lttng-live/viewer-connection.hpp \
635 plugins/ctf/plugin.cpp
637 plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
640 -avoid-version -module $(LD_NOTEXT)
642 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD = \
643 plugins/ctf/common/metadata/libctf-parser.la \
644 plugins/ctf/common/metadata/libctf-ast.la \
645 plugins/common/param-validation/libparam-validation.la
647 if BABELTRACE_BUILD_WITH_MINGW
648 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
651 if !ENABLE_BUILT_IN_PLUGINS
652 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
653 lib/libbabeltrace2.la \
654 logging/liblogging.la \
655 plugins/common/muxing/libmuxing.la \
656 common/libcommon.la \
661 plugins_text_babeltrace_plugin_text_la_SOURCES = \
662 plugins/text/details/colors.h \
663 plugins/text/details/details.c \
664 plugins/text/details/details.h \
665 plugins/text/details/obj-lifetime-mgmt.c \
666 plugins/text/details/obj-lifetime-mgmt.h \
667 plugins/text/details/write.c \
668 plugins/text/details/write.h \
669 plugins/text/dmesg/dmesg.c \
670 plugins/text/dmesg/dmesg.h \
671 plugins/text/pretty/pretty.c \
672 plugins/text/pretty/pretty.h \
673 plugins/text/pretty/print.c \
674 plugins/text/plugin.c
676 plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
679 -avoid-version -module $(LD_NOTEXT)
681 plugins_text_babeltrace_plugin_text_la_LIBADD =
683 if !ENABLE_BUILT_IN_PLUGINS
684 plugins_text_babeltrace_plugin_text_la_LIBADD += \
685 lib/libbabeltrace2.la \
686 common/libcommon.la \
687 logging/liblogging.la \
688 compat/libcompat.la \
689 plugins/common/param-validation/libparam-validation.la
694 plugin_LTLIBRARIES += \
695 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
697 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
698 plugins/lttng-utils/plugin.c
700 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LDFLAGS = \
703 -avoid-version -module $(LD_NOTEXT) \
706 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
707 plugins/lttng-utils/debug-info/libdebug-info.la
709 if !ENABLE_BUILT_IN_PLUGINS
710 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
711 lib/libbabeltrace2.la \
712 common/libcommon.la \
713 logging/liblogging.la \
714 plugins/common/param-validation/libparam-validation.la
715 endif # !ENABLE_BUILT_IN_PLUGINS
716 endif # ENABLE_DEBUG_INFO
718 EXTRA_DIST = cpp-common/optional.hpp.license