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/exc.hpp \
21 cpp-common/bt2/field-class.hpp \
22 cpp-common/bt2/field.hpp \
23 cpp-common/bt2/field-path.hpp \
24 cpp-common/bt2/integer-range.hpp \
25 cpp-common/bt2/integer-range-set.hpp \
26 cpp-common/bt2/internal/utils.hpp \
27 cpp-common/bt2/logging.hpp \
28 cpp-common/bt2/message.hpp \
29 cpp-common/bt2/shared-object.hpp \
30 cpp-common/bt2/raw-value-proxy.hpp \
31 cpp-common/bt2/trace-ir.hpp \
32 cpp-common/bt2/type-traits.hpp \
33 cpp-common/bt2/value.hpp \
34 cpp-common/align.hpp \
35 cpp-common/cfg-error-reporting.hpp \
36 cpp-common/cfg-error-reporting-throw.hpp \
37 cpp-common/cfg-logging-error-reporting.hpp \
38 cpp-common/cfg-logging-error-reporting-throw.hpp \
39 cpp-common/cfg-logging.hpp \
40 cpp-common/endian.hpp \
42 cpp-common/glib-up.hpp \
43 cpp-common/libc-up.hpp \
44 cpp-common/lib-str.hpp \
45 cpp-common/log-cfg.hpp \
46 cpp-common/make-unique.hpp \
47 cpp-common/nlohmann/json.hpp \
48 cpp-common/optional.hpp \
49 cpp-common/read-fixed-len-int.hpp \
50 cpp-common/safe-ops.hpp \
51 cpp-common/std-int.hpp \
52 cpp-common/string_view.hpp \
54 cpp-common/uuid-view.hpp \
57 ## This target generates an include file that contains the git version
58 ## string of the current branch, it must be continuously updated when
59 ## we build in the git repo and shipped in dist tarballs to reflect the
60 ## status of the tree when it was generated. If the tree is clean and
61 ## the current commit is a tag starting with "v", consider this a
62 ## release version and set an empty git version.
64 version_verbose = $(version_verbose_@AM_V@)
65 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
66 version_verbose_0 = @echo " GEN " $@;
69 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
71 dist_noinst_SCRIPTS = gen-version-i.sh
73 # Ensure version.i is generated before any code is built.
74 BUILT_SOURCES = common/version.i
77 ## version.i is defined as a .PHONY target even if it's a real file,
78 ## we want the target to be re-run on every make.
80 .PHONY: common/version.i
82 CLEANFILES = common/version.i.tmp
85 ## Only clean "version.i" on dist-clean, we need to keep it on regular
86 ## clean when it's part of a dist tarball.
88 DISTCLEANFILES = common/version.i
91 # Convenience libraries
94 noinst_LTLIBRARIES = \
96 autodisc/libautodisc.la \
100 fd-cache/libfd-cache.la \
101 logging/liblogging.la \
102 param-parse/libparam-parse.la \
103 plugins/common/muxing/libmuxing.la \
104 plugins/common/param-validation/libparam-validation.la \
105 plugins/ctf/common/metadata/libctf-ast.la \
106 plugins/ctf/common/metadata/libctf-parser.la \
107 string-format/libstring-format.la
110 argpar_libargpar_la_SOURCES = \
114 autodisc_libautodisc_la_SOURCES = \
115 autodisc/autodisc.c \
118 common_libcommon_la_SOURCES = \
126 common/mmap-align.h \
133 common_libcommon_la_CPPFLAGS = \
135 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
137 compat_libcompat_la_SOURCES = \
155 ctfser_libctfser_la_SOURCES = \
159 fd_cache_libfd_cache_la_SOURCES = \
160 fd-cache/fd-cache.c \
163 logging_liblogging_la_SOURCES = \
164 logging/comp-logging.h \
168 param_parse_libparam_parse_la_SOURCES = \
169 param-parse/param-parse.c \
170 param-parse/param-parse.h
172 string_format_libstring_format_la_SOURCES = \
173 string-format/format-plugin-comp-cls-name.c \
174 string-format/format-plugin-comp-cls-name.h \
175 string-format/format-error.c \
176 string-format/format-error.h
178 plugins_common_muxing_libmuxing_la_SOURCES = \
179 plugins/common/muxing/muxing.c \
180 plugins/common/muxing/muxing.h
182 plugins_common_param_validation_libparam_validation_la_SOURCES = \
183 plugins/common/param-validation/param-validation.c \
184 plugins/common/param-validation/param-validation.h
186 # Set flags for the Bison based metadata parser
187 # -t : instrument the parser
188 # -d : produce a header
190 # -Wno-yacc : disable POSIX Yacc incompatibilities warnings
194 plugins_ctf_common_metadata_libctf_parser_la_SOURCES = \
195 plugins/ctf/common/metadata/lexer.lpp \
196 plugins/ctf/common/metadata/parser.ypp \
197 plugins/ctf/common/metadata/objstack.cpp
199 # scanner-symbols.h is included to prefix generated yy_* symbols with bt_.
200 plugins_ctf_common_metadata_libctf_parser_la_CPPFLAGS = \
202 -include $(srcdir)/plugins/ctf/common/metadata/scanner-symbols.hpp
204 # This library contains (mostly) generated code, silence some warnings that it
206 plugins_ctf_common_metadata_libctf_parser_la_CXXFLAGS = \
208 -Wno-unused-function \
209 -Wno-null-dereference \
210 -Wno-missing-field-initializers \
211 -Wno-unused-parameter
213 plugins_ctf_common_metadata_libctf_ast_la_SOURCES = \
214 plugins/ctf/common/metadata/visitor-generate-ir.cpp \
215 plugins/ctf/common/metadata/visitor-semantic-validator.cpp \
216 plugins/ctf/common/metadata/visitor-parent-links.cpp \
217 plugins/ctf/common/metadata/ast.hpp \
218 plugins/ctf/common/metadata/objstack.hpp \
219 plugins/ctf/common/metadata/parser.hpp \
220 plugins/ctf/common/metadata/parser-wrap.hpp \
221 plugins/ctf/common/metadata/scanner.hpp \
222 plugins/ctf/common/metadata/scanner-symbols.hpp \
223 plugins/ctf/common/metadata/decoder.cpp \
224 plugins/ctf/common/metadata/decoder.hpp \
225 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.cpp \
226 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.hpp \
227 plugins/ctf/common/metadata/logging.cpp \
228 plugins/ctf/common/metadata/logging.hpp \
229 plugins/ctf/common/metadata/ctf-meta.hpp \
230 plugins/ctf/common/metadata/ctf-meta-visitors.hpp \
231 plugins/ctf/common/metadata/ctf-meta-validate.cpp \
232 plugins/ctf/common/metadata/ctf-meta-update-meanings.cpp \
233 plugins/ctf/common/metadata/ctf-meta-update-in-ir.cpp \
234 plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.cpp \
235 plugins/ctf/common/metadata/ctf-meta-update-text-array-sequence.cpp \
236 plugins/ctf/common/metadata/ctf-meta-update-alignments.cpp \
237 plugins/ctf/common/metadata/ctf-meta-update-value-storing-indexes.cpp \
238 plugins/ctf/common/metadata/ctf-meta-update-stream-class-config.cpp \
239 plugins/ctf/common/metadata/ctf-meta-warn-meaningless-header-fields.cpp \
240 plugins/ctf/common/metadata/ctf-meta-translate.cpp \
241 plugins/ctf/common/metadata/ctf-meta-resolve.cpp \
242 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.cpp \
243 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.hpp
245 if BABELTRACE_BUILD_WITH_MINGW
246 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
250 plugins/ctf/common/metadata/parser.hpp
255 # We have bison: we can clean the generated parser files
257 plugins/ctf/common/metadata/parser.cpp \
258 plugins/ctf/common/metadata/parser.hpp \
259 plugins/ctf/common/metadata/parser.output
261 # Create target used to stop the build if we want to build the parser,
262 # but we don't have the necessary tool to do so
263 plugins/ctf/common/metadata/parser.cpp plugins/ctf/common/metadata/parser.hpp: plugins/ctf/common/metadata/parser.ypp
264 @echo "Error: Cannot build target because bison is missing."
265 @echo "Make sure bison is installed and run the configure script again."
269 plugins/ctf/common/metadata/parser.cpp \
270 plugins/ctf/common/metadata/parser.hpp
274 # We have flex: we can clean the generated lexer files
275 CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
277 # Create target used to stop the build if we want to build the lexer,
278 # but we don't have the necessary tool to do so
279 plugins/ctf/common/metadata/lexer.cpp: plugins/ctf/common/metadata/lexer.lpp
280 @echo "Error: Cannot build target because flex is missing."
281 @echo "Make sure flex is installed and run the configure script again."
284 ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
287 all-local: $(ALL_LOCAL)
289 if ENABLE_PYTHON_COMMON_DEPS
290 noinst_LTLIBRARIES += py-common/libpy-common.la
292 py_common_libpy_common_la_SOURCES = \
293 py-common/py-common.c \
294 py-common/py-common.h
296 py_common_libpy_common_la_CPPFLAGS = \
300 endif # ENABLE_PYTHON_COMMON_DEPS
303 noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
305 plugins_lttng_utils_debug_info_libdebug_info_la_SOURCES = \
306 plugins/lttng-utils/debug-info/bin-info.c \
307 plugins/lttng-utils/debug-info/bin-info.h \
308 plugins/lttng-utils/debug-info/crc32.c \
309 plugins/lttng-utils/debug-info/crc32.h \
310 plugins/lttng-utils/debug-info/debug-info.c \
311 plugins/lttng-utils/debug-info/debug-info.h \
312 plugins/lttng-utils/debug-info/dwarf.c \
313 plugins/lttng-utils/debug-info/dwarf.h \
314 plugins/lttng-utils/debug-info/trace-ir-data-copy.c \
315 plugins/lttng-utils/debug-info/trace-ir-data-copy.h \
316 plugins/lttng-utils/debug-info/trace-ir-mapping.c \
317 plugins/lttng-utils/debug-info/trace-ir-mapping.h \
318 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c \
319 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h \
320 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c \
321 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h \
322 plugins/lttng-utils/debug-info/utils.c \
323 plugins/lttng-utils/debug-info/utils.h
325 plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
326 fd-cache/libfd-cache.la
328 endif # ENABLE_DEBUG_INFO
336 ctf-writer/libbabeltrace2-ctf-writer.la \
337 lib/libbabeltrace2.la
339 lib_libbabeltrace2_la_SOURCES = \
340 lib/graph/message/discarded-items.c \
341 lib/graph/message/discarded-items.h \
342 lib/graph/message/event.c \
343 lib/graph/message/event.h \
344 lib/graph/message-iterator-class.c \
345 lib/graph/message-iterator-class.h \
346 lib/graph/message/iterator.h \
347 lib/graph/message/message.c \
348 lib/graph/message/message.h \
349 lib/graph/message/message-iterator-inactivity.c \
350 lib/graph/message/message-iterator-inactivity.h \
351 lib/graph/message/packet.c \
352 lib/graph/message/packet.h \
353 lib/graph/message/stream.c \
354 lib/graph/message/stream.h \
355 lib/graph/component.c \
356 lib/graph/component-class.c \
357 lib/graph/component-class.h \
358 lib/graph/component-class-sink-simple.c \
359 lib/graph/component-class-sink-simple.h \
360 lib/graph/component-descriptor-set.c \
361 lib/graph/component-descriptor-set.h \
362 lib/graph/component-filter.c \
363 lib/graph/component-filter.h \
364 lib/graph/component.h \
365 lib/graph/component-sink.c \
366 lib/graph/component-sink.h \
367 lib/graph/component-source.c \
368 lib/graph/component-source.h \
369 lib/graph/connection.c \
370 lib/graph/connection.h \
373 lib/graph/interrupter.c \
374 lib/graph/interrupter.h \
375 lib/graph/iterator.c \
379 lib/graph/query-executor.c \
380 lib/graph/query-executor.h \
381 lib/plugin/plugin.c \
382 lib/plugin/plugin.h \
383 lib/plugin/plugin-so.c \
384 lib/plugin/plugin-so.h \
385 lib/prio-heap/prio-heap.c \
386 lib/prio-heap/prio-heap.h \
387 lib/trace-ir/attributes.c \
388 lib/trace-ir/attributes.h \
389 lib/trace-ir/clock-class.c \
390 lib/trace-ir/clock-class.h \
391 lib/trace-ir/clock-snapshot.c \
392 lib/trace-ir/clock-snapshot.h \
393 lib/trace-ir/event.c \
394 lib/trace-ir/event-class.c \
395 lib/trace-ir/event-class.h \
396 lib/trace-ir/event.h \
397 lib/trace-ir/field.c \
398 lib/trace-ir/field-class.c \
399 lib/trace-ir/field-class.h \
400 lib/trace-ir/field.h \
401 lib/trace-ir/field-path.c \
402 lib/trace-ir/field-path.h \
403 lib/trace-ir/field-wrapper.c \
404 lib/trace-ir/field-wrapper.h \
405 lib/trace-ir/packet.c \
406 lib/trace-ir/packet.h \
407 lib/trace-ir/resolve-field-path.c \
408 lib/trace-ir/resolve-field-path.h \
409 lib/trace-ir/stream.c \
410 lib/trace-ir/stream-class.c \
411 lib/trace-ir/stream-class.h \
412 lib/trace-ir/stream.h \
413 lib/trace-ir/trace.c \
414 lib/trace-ir/trace-class.c \
415 lib/trace-ir/trace-class.h \
416 lib/trace-ir/trace.h \
417 lib/trace-ir/utils.c \
418 lib/trace-ir/utils.h \
419 lib/assert-cond-base.h \
423 lib/current-thread.c \
427 lib/integer-range-set.c \
428 lib/integer-range-set.h \
440 lib_libbabeltrace2_la_LDFLAGS = \
443 -version-info $(BABELTRACE_LIBRARY_VERSION)
445 lib_libbabeltrace2_la_CPPFLAGS = \
447 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
449 lib_libbabeltrace2_la_LIBADD = \
450 logging/liblogging.la \
451 common/libcommon.la \
454 ctf_writer_libbabeltrace2_ctf_writer_la_SOURCES = \
455 ctf-writer/assert-pre.h \
456 ctf-writer/attributes.c \
457 ctf-writer/attributes.h \
459 ctf-writer/clock-class.c \
460 ctf-writer/clock-class.h \
463 ctf-writer/event-class.c \
464 ctf-writer/event-class.h \
466 ctf-writer/field-path.c \
467 ctf-writer/field-path.h \
468 ctf-writer/fields.c \
469 ctf-writer/fields.h \
470 ctf-writer/field-types.c \
471 ctf-writer/field-types.h \
472 ctf-writer/field-wrapper.c \
473 ctf-writer/field-wrapper.h \
474 ctf-writer/functor.c \
475 ctf-writer/functor.h \
476 ctf-writer/logging.c \
477 ctf-writer/logging.h \
478 ctf-writer/object.c \
479 ctf-writer/object.h \
480 ctf-writer/object-pool.c \
481 ctf-writer/object-pool.h \
482 ctf-writer/resolve.c \
483 ctf-writer/resolve.h \
484 ctf-writer/stream.c \
485 ctf-writer/stream-class.c \
486 ctf-writer/stream-class.h \
487 ctf-writer/stream.h \
492 ctf-writer/validation.c \
493 ctf-writer/validation.h \
494 ctf-writer/values.c \
495 ctf-writer/values.h \
496 ctf-writer/visitor.c \
497 ctf-writer/visitor.h \
498 ctf-writer/writer.c \
501 ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
504 -version-info $(BABELTRACE_LIBRARY_VERSION)
506 ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
507 logging/liblogging.la \
508 common/libcommon.la \
509 ctfser/libctfser.la \
512 pkgconfigdir = $(libdir)/pkgconfig
514 babeltrace2-ctf-writer.pc \
518 # Python plugin provider
521 if ENABLE_PYTHON_PLUGINS
522 pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
523 pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
525 python_plugin_provider_babeltrace2_python_plugin_provider_la_SOURCES = \
526 python-plugin-provider/python-plugin-provider.c \
527 python-plugin-provider/python-plugin-provider.h
529 python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
532 -avoid-version -module \
535 python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
539 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD =
541 # Link the Python plugin provider library with libbabeltrace2
542 # when it's not built-in the babeltrace2 executable.
543 if !ENABLE_BUILT_IN_PLUGINS
544 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
545 logging/liblogging.la \
546 common/libcommon.la \
547 py-common/libpy-common.la \
548 lib/libbabeltrace2.la
550 endif # ENABLE_PYTHON_PLUGINS
556 plugindir = "$(BABELTRACE_PLUGINS_DIR)"
557 plugin_LTLIBRARIES = \
558 plugins/ctf/babeltrace-plugin-ctf.la \
559 plugins/text/babeltrace-plugin-text.la \
560 plugins/utils/babeltrace-plugin-utils.la
564 plugins_utils_babeltrace_plugin_utils_la_SOURCES = \
565 plugins/utils/counter/counter.c \
566 plugins/utils/counter/counter.h \
567 plugins/utils/dummy/dummy.c \
568 plugins/utils/dummy/dummy.h \
569 plugins/utils/muxer/muxer.c \
570 plugins/utils/muxer/muxer.h \
571 plugins/utils/trimmer/trimmer.c \
572 plugins/utils/trimmer/trimmer.h \
573 plugins/utils/plugin.c
575 plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
578 -avoid-version -module $(LD_NOTEXT)
580 plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
581 plugins/common/muxing/libmuxing.la
583 if !ENABLE_BUILT_IN_PLUGINS
584 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
585 lib/libbabeltrace2.la \
586 common/libcommon.la \
587 logging/liblogging.la \
588 plugins/common/param-validation/libparam-validation.la
592 plugins_ctf_babeltrace_plugin_ctf_la_SOURCES = \
593 plugins/ctf/common/bfcr/bfcr.cpp \
594 plugins/ctf/common/bfcr/bfcr.hpp \
595 plugins/ctf/common/msg-iter/msg-iter.cpp \
596 plugins/ctf/common/msg-iter/msg-iter.hpp \
597 plugins/ctf/common/print.hpp \
598 plugins/ctf/fs-sink/fs-sink.cpp \
599 plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp \
600 plugins/ctf/fs-sink/fs-sink.hpp \
601 plugins/ctf/fs-sink/fs-sink-stream.cpp \
602 plugins/ctf/fs-sink/fs-sink-stream.hpp \
603 plugins/ctf/fs-sink/fs-sink-trace.cpp \
604 plugins/ctf/fs-sink/fs-sink-trace.hpp \
605 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp \
606 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp \
607 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.cpp \
608 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp \
609 plugins/ctf/fs-src/data-stream-file.cpp \
610 plugins/ctf/fs-src/data-stream-file.hpp \
611 plugins/ctf/fs-src/file.cpp \
612 plugins/ctf/fs-src/file.hpp \
613 plugins/ctf/fs-src/fs.cpp \
614 plugins/ctf/fs-src/fs.hpp \
615 plugins/ctf/fs-src/lttng-index.hpp \
616 plugins/ctf/fs-src/metadata.cpp \
617 plugins/ctf/fs-src/metadata.hpp \
618 plugins/ctf/fs-src/query.cpp \
619 plugins/ctf/fs-src/query.hpp \
620 plugins/ctf/lttng-live/data-stream.cpp \
621 plugins/ctf/lttng-live/data-stream.hpp \
622 plugins/ctf/lttng-live/lttng-live.cpp \
623 plugins/ctf/lttng-live/lttng-live.hpp \
624 plugins/ctf/lttng-live/lttng-viewer-abi.hpp \
625 plugins/ctf/lttng-live/metadata.cpp \
626 plugins/ctf/lttng-live/metadata.hpp \
627 plugins/ctf/lttng-live/viewer-connection.cpp \
628 plugins/ctf/lttng-live/viewer-connection.hpp \
629 plugins/ctf/plugin.cpp
631 plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
634 -avoid-version -module $(LD_NOTEXT)
636 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD = \
637 plugins/ctf/common/metadata/libctf-parser.la \
638 plugins/ctf/common/metadata/libctf-ast.la \
639 plugins/common/param-validation/libparam-validation.la
641 if BABELTRACE_BUILD_WITH_MINGW
642 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
645 if !ENABLE_BUILT_IN_PLUGINS
646 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
647 lib/libbabeltrace2.la \
648 logging/liblogging.la \
649 plugins/common/muxing/libmuxing.la \
650 common/libcommon.la \
655 plugins_text_babeltrace_plugin_text_la_SOURCES = \
656 plugins/text/details/colors.h \
657 plugins/text/details/details.c \
658 plugins/text/details/details.h \
659 plugins/text/details/obj-lifetime-mgmt.c \
660 plugins/text/details/obj-lifetime-mgmt.h \
661 plugins/text/details/write.c \
662 plugins/text/details/write.h \
663 plugins/text/dmesg/dmesg.c \
664 plugins/text/dmesg/dmesg.h \
665 plugins/text/pretty/pretty.c \
666 plugins/text/pretty/pretty.h \
667 plugins/text/pretty/print.c \
668 plugins/text/plugin.c
670 plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
673 -avoid-version -module $(LD_NOTEXT)
675 plugins_text_babeltrace_plugin_text_la_LIBADD =
677 if !ENABLE_BUILT_IN_PLUGINS
678 plugins_text_babeltrace_plugin_text_la_LIBADD += \
679 lib/libbabeltrace2.la \
680 common/libcommon.la \
681 logging/liblogging.la \
682 compat/libcompat.la \
683 plugins/common/param-validation/libparam-validation.la
688 plugin_LTLIBRARIES += \
689 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
691 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
692 plugins/lttng-utils/plugin.c
694 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LDFLAGS = \
697 -avoid-version -module $(LD_NOTEXT) \
700 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
701 plugins/lttng-utils/debug-info/libdebug-info.la
703 if !ENABLE_BUILT_IN_PLUGINS
704 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
705 lib/libbabeltrace2.la \
706 common/libcommon.la \
707 logging/liblogging.la \
708 plugins/common/param-validation/libparam-validation.la
709 endif # !ENABLE_BUILT_IN_PLUGINS
710 endif # ENABLE_DEBUG_INFO
712 EXTRA_DIST = cpp-common/optional.hpp.license