cpp-common/bt2c: add `format_as` function for `bt2::MessageType`
[babeltrace.git] / src / Makefile.am
1 # SPDX-FileCopyrightText: 2019-2023 EfficiOS, Inc.
2 # SPDX-License-Identifier: MIT
3
4 # Build the current dir containing the library and plugins before the cli and
5 # bindings.
6 SUBDIRS = \
7 . \
8 cli
9
10 if ENABLE_PYTHON_BINDINGS
11 SUBDIRS += bindings/python/bt2
12 endif
13
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.
20
21 version_verbose = $(version_verbose_@AM_V@)
22 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
23 version_verbose_0 = @echo " GEN " $@;
24
25 common/version.i:
26 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
27
28 dist_noinst_SCRIPTS = gen-version-i.sh
29
30 # Ensure version.i is generated before any code is built.
31 BUILT_SOURCES = common/version.i
32
33 ##
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.
36 ##
37 .PHONY: common/version.i
38
39 CLEANFILES = common/version.i.tmp
40
41 ##
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.
44 ##
45 DISTCLEANFILES = common/version.i
46
47 #
48 # Convenience libraries
49 #
50
51 noinst_LTLIBRARIES = \
52 argpar/libargpar.la \
53 autodisc/libautodisc.la \
54 common/libcommon.la \
55 compat/libcompat.la \
56 cpp-common/libcpp-common.la \
57 cpp-common/vendor/fmt/libfmt.la \
58 ctfser/libctfser.la \
59 fd-cache/libfd-cache.la \
60 logging/liblogging.la \
61 param-parse/libparam-parse.la \
62 plugins/common/muxing/libmuxing.la \
63 plugins/common/param-validation/libparam-validation.la \
64 plugins/ctf/common/metadata/libctf-ast.la \
65 plugins/ctf/common/metadata/libctf-parser.la \
66 string-format/libstring-format.la
67
68
69 argpar_libargpar_la_SOURCES = \
70 argpar/argpar.c \
71 argpar/argpar.h
72
73 autodisc_libautodisc_la_SOURCES = \
74 autodisc/autodisc.c \
75 autodisc/autodisc.h
76
77 common_libcommon_la_SOURCES = \
78 common/align.h \
79 common/assert.c \
80 common/assert.h \
81 common/common.c \
82 common/common.h \
83 common/list.h \
84 common/macros.h \
85 common/mmap-align.h \
86 common/safe.h \
87 common/uuid.c \
88 common/uuid.h \
89 common/version.h \
90 common/version.i
91
92 common_libcommon_la_CPPFLAGS = \
93 $(AM_CPPFLAGS) \
94 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
95
96 compat_libcompat_la_SOURCES = \
97 compat/bitfield.h \
98 compat/compiler.h \
99 compat/endian.h \
100 compat/fcntl.h \
101 compat/glib.h \
102 compat/limits.h \
103 compat/memstream.h \
104 compat/mman.c \
105 compat/mman.h \
106 compat/socket.h \
107 compat/stdio.h \
108 compat/stdlib.h \
109 compat/string.h \
110 compat/time.h \
111 compat/unistd.h \
112 compat/utc.h
113
114 cpp_common_libcpp_common_la_SOURCES = \
115 cpp-common/bt2/borrowed-object-iterator.hpp \
116 cpp-common/bt2/borrowed-object-proxy.hpp \
117 cpp-common/bt2/borrowed-object.hpp \
118 cpp-common/bt2/clock-class.hpp \
119 cpp-common/bt2/clock-snapshot.hpp \
120 cpp-common/bt2/component-port.hpp \
121 cpp-common/bt2/exc.hpp \
122 cpp-common/bt2/field-class.hpp \
123 cpp-common/bt2/field-path.hpp \
124 cpp-common/bt2/field.hpp \
125 cpp-common/bt2/integer-range-set.hpp \
126 cpp-common/bt2/integer-range.hpp \
127 cpp-common/bt2/internal/utils.hpp \
128 cpp-common/bt2/logging.hpp \
129 cpp-common/bt2/message-array.hpp \
130 cpp-common/bt2/message-iterator.hpp \
131 cpp-common/bt2/message.hpp \
132 cpp-common/bt2/optional-borrowed-object.hpp \
133 cpp-common/bt2/plugin-dev.hpp \
134 cpp-common/bt2/plugin.hpp \
135 cpp-common/bt2/private-query-executor.hpp \
136 cpp-common/bt2/raw-value-proxy.hpp \
137 cpp-common/bt2/self-component-class.hpp \
138 cpp-common/bt2/self-component-port.hpp \
139 cpp-common/bt2/self-message-iterator-configuration.hpp \
140 cpp-common/bt2/self-message-iterator.hpp \
141 cpp-common/bt2/shared-object.hpp \
142 cpp-common/bt2/trace-ir.hpp \
143 cpp-common/bt2/type-traits.hpp \
144 cpp-common/bt2/value.hpp \
145 cpp-common/bt2/wrap.hpp \
146 cpp-common/bt2c/align.hpp \
147 cpp-common/bt2c/c-string-view.hpp \
148 cpp-common/bt2c/call.hpp \
149 cpp-common/bt2c/dummy.cpp \
150 cpp-common/bt2c/endian.hpp \
151 cpp-common/bt2c/exc.hpp \
152 cpp-common/bt2c/fmt.hpp \
153 cpp-common/bt2c/glib-up.hpp \
154 cpp-common/bt2c/libc-up.hpp \
155 cpp-common/bt2c/logging.hpp \
156 cpp-common/bt2c/prio-heap.hpp \
157 cpp-common/bt2c/read-fixed-len-int.hpp \
158 cpp-common/bt2c/safe-ops.hpp \
159 cpp-common/bt2c/std-int.hpp \
160 cpp-common/bt2c/type-traits.hpp \
161 cpp-common/bt2c/uuid.hpp \
162 cpp-common/bt2c/vector.hpp \
163 cpp-common/bt2s/make-unique.hpp \
164 cpp-common/bt2s/optional.hpp \
165 cpp-common/bt2s/span.hpp \
166 cpp-common/bt2s/string-view.hpp \
167 cpp-common/vendor/nlohmann/json.hpp \
168 cpp-common/vendor/optional-lite/optional.hpp \
169 cpp-common/vendor/span-lite/span.hpp \
170 cpp-common/vendor/string_view-standalone/string_view.hpp
171
172 cpp_common_vendor_fmt_libfmt_la_SOURCES = \
173 cpp-common/vendor/fmt/args.h \
174 cpp-common/vendor/fmt/chrono.h \
175 cpp-common/vendor/fmt/color.h \
176 cpp-common/vendor/fmt/compile.h \
177 cpp-common/vendor/fmt/core.h \
178 cpp-common/vendor/fmt/format-inl.h \
179 cpp-common/vendor/fmt/format.cc \
180 cpp-common/vendor/fmt/format.h \
181 cpp-common/vendor/fmt/os.cc \
182 cpp-common/vendor/fmt/os.h \
183 cpp-common/vendor/fmt/ostream.h \
184 cpp-common/vendor/fmt/printf.h \
185 cpp-common/vendor/fmt/ranges.h \
186 cpp-common/vendor/fmt/std.h \
187 cpp-common/vendor/fmt/xchar.h
188
189 ctfser_libctfser_la_SOURCES = \
190 ctfser/ctfser.c \
191 ctfser/ctfser.h
192
193 fd_cache_libfd_cache_la_SOURCES = \
194 fd-cache/fd-cache.c \
195 fd-cache/fd-cache.h
196
197 logging_liblogging_la_SOURCES = \
198 logging/comp-logging.h \
199 logging/log-api.c \
200 logging/log-api.h \
201 logging/log.h
202
203 param_parse_libparam_parse_la_SOURCES = \
204 param-parse/param-parse.c \
205 param-parse/param-parse.h
206
207 string_format_libstring_format_la_SOURCES = \
208 string-format/format-plugin-comp-cls-name.c \
209 string-format/format-plugin-comp-cls-name.h \
210 string-format/format-error.c \
211 string-format/format-error.h
212
213 plugins_common_muxing_libmuxing_la_SOURCES = \
214 plugins/common/muxing/muxing.c \
215 plugins/common/muxing/muxing.h
216
217 plugins_common_param_validation_libparam_validation_la_SOURCES = \
218 plugins/common/param-validation/param-validation.c \
219 plugins/common/param-validation/param-validation.h
220
221 # Set flags for the Bison based metadata parser
222 # -t : instrument the parser
223 # -d : produce a header
224 # -v : verbose
225 # -Wno-yacc : disable POSIX Yacc incompatibilities warnings
226 AM_YFLAGS = \
227 -t -d -v -Wno-yacc
228
229 plugins_ctf_common_metadata_libctf_parser_la_SOURCES = \
230 plugins/ctf/common/metadata/lexer.lpp \
231 plugins/ctf/common/metadata/parser.ypp \
232 plugins/ctf/common/metadata/objstack.cpp
233
234 # scanner-symbols.h is included to prefix generated yy_* symbols with bt_.
235 plugins_ctf_common_metadata_libctf_parser_la_CPPFLAGS = \
236 $(AM_CPPFLAGS) \
237 -include $(srcdir)/plugins/ctf/common/metadata/scanner-symbols.hpp
238
239 # This library contains (mostly) generated code, silence some warnings that it
240 # produces.
241 plugins_ctf_common_metadata_libctf_parser_la_CXXFLAGS = \
242 $(AM_CXXFLAGS) \
243 -Wno-unused-function \
244 -Wno-null-dereference \
245 -Wno-missing-field-initializers \
246 -Wno-unused-parameter
247
248 plugins_ctf_common_metadata_libctf_ast_la_SOURCES = \
249 plugins/ctf/common/metadata/visitor-generate-ir.cpp \
250 plugins/ctf/common/metadata/visitor-semantic-validator.cpp \
251 plugins/ctf/common/metadata/visitor-parent-links.cpp \
252 plugins/ctf/common/metadata/ast.hpp \
253 plugins/ctf/common/metadata/objstack.hpp \
254 plugins/ctf/common/metadata/parser.hpp \
255 plugins/ctf/common/metadata/parser-wrap.hpp \
256 plugins/ctf/common/metadata/scanner.hpp \
257 plugins/ctf/common/metadata/scanner-symbols.hpp \
258 plugins/ctf/common/metadata/decoder.cpp \
259 plugins/ctf/common/metadata/decoder.hpp \
260 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.cpp \
261 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.hpp \
262 plugins/ctf/common/metadata/logging.cpp \
263 plugins/ctf/common/metadata/logging.hpp \
264 plugins/ctf/common/metadata/ctf-meta.hpp \
265 plugins/ctf/common/metadata/ctf-meta-visitors.hpp \
266 plugins/ctf/common/metadata/ctf-meta-validate.cpp \
267 plugins/ctf/common/metadata/ctf-meta-update-meanings.cpp \
268 plugins/ctf/common/metadata/ctf-meta-update-in-ir.cpp \
269 plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.cpp \
270 plugins/ctf/common/metadata/ctf-meta-update-text-array-sequence.cpp \
271 plugins/ctf/common/metadata/ctf-meta-update-alignments.cpp \
272 plugins/ctf/common/metadata/ctf-meta-update-value-storing-indexes.cpp \
273 plugins/ctf/common/metadata/ctf-meta-update-stream-class-config.cpp \
274 plugins/ctf/common/metadata/ctf-meta-warn-meaningless-header-fields.cpp \
275 plugins/ctf/common/metadata/ctf-meta-translate.cpp \
276 plugins/ctf/common/metadata/ctf-meta-resolve.cpp \
277 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.cpp \
278 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.hpp
279
280 if BABELTRACE_BUILD_WITH_MINGW
281 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
282 endif
283
284 BUILT_SOURCES += \
285 plugins/ctf/common/metadata/parser.hpp
286
287 ALL_LOCAL =
288
289 if HAVE_BISON
290 # We have bison: we can clean the generated parser files
291 CLEANFILES += \
292 plugins/ctf/common/metadata/parser.cpp \
293 plugins/ctf/common/metadata/parser.hpp \
294 plugins/ctf/common/metadata/parser.output
295 else # HAVE_BISON
296 # Create target used to stop the build if we want to build the parser,
297 # but we don't have the necessary tool to do so
298 plugins/ctf/common/metadata/parser.cpp plugins/ctf/common/metadata/parser.hpp: plugins/ctf/common/metadata/parser.ypp
299 @echo "Error: Cannot build target because bison is missing."
300 @echo "Make sure bison is installed and run the configure script again."
301 @false
302
303 ALL_LOCAL += \
304 plugins/ctf/common/metadata/parser.cpp \
305 plugins/ctf/common/metadata/parser.hpp
306 endif # HAVE_BISON
307
308 if HAVE_FLEX
309 # We have flex: we can clean the generated lexer files
310 CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
311 else # HAVE_FLEX
312 # Create target used to stop the build if we want to build the lexer,
313 # but we don't have the necessary tool to do so
314 plugins/ctf/common/metadata/lexer.cpp: plugins/ctf/common/metadata/lexer.lpp
315 @echo "Error: Cannot build target because flex is missing."
316 @echo "Make sure flex is installed and run the configure script again."
317 @false
318
319 ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
320 endif # HAVE_FLEX
321
322 all-local: $(ALL_LOCAL)
323
324 if ENABLE_PYTHON_COMMON_DEPS
325 noinst_LTLIBRARIES += py-common/libpy-common.la
326
327 py_common_libpy_common_la_SOURCES = \
328 py-common/py-common.c \
329 py-common/py-common.h
330
331 py_common_libpy_common_la_CPPFLAGS = \
332 $(AM_CPPFLAGS) \
333 $(PYTHON_INCLUDE)
334
335 endif # ENABLE_PYTHON_COMMON_DEPS
336
337 if ENABLE_DEBUG_INFO
338 noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
339
340 plugins_lttng_utils_debug_info_libdebug_info_la_SOURCES = \
341 plugins/lttng-utils/debug-info/bin-info.c \
342 plugins/lttng-utils/debug-info/bin-info.h \
343 plugins/lttng-utils/debug-info/crc32.c \
344 plugins/lttng-utils/debug-info/crc32.h \
345 plugins/lttng-utils/debug-info/debug-info.c \
346 plugins/lttng-utils/debug-info/debug-info.h \
347 plugins/lttng-utils/debug-info/dwarf.c \
348 plugins/lttng-utils/debug-info/dwarf.h \
349 plugins/lttng-utils/debug-info/trace-ir-data-copy.c \
350 plugins/lttng-utils/debug-info/trace-ir-data-copy.h \
351 plugins/lttng-utils/debug-info/trace-ir-mapping.c \
352 plugins/lttng-utils/debug-info/trace-ir-mapping.h \
353 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c \
354 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h \
355 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c \
356 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h \
357 plugins/lttng-utils/debug-info/utils.c \
358 plugins/lttng-utils/debug-info/utils.h
359
360 plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
361 fd-cache/libfd-cache.la
362
363 endif # ENABLE_DEBUG_INFO
364
365
366 #
367 # Public libraries
368 #
369
370 lib_LTLIBRARIES = \
371 ctf-writer/libbabeltrace2-ctf-writer.la \
372 lib/libbabeltrace2.la
373
374 lib_libbabeltrace2_la_SOURCES = \
375 lib/graph/message/discarded-items.c \
376 lib/graph/message/discarded-items.h \
377 lib/graph/message/event.c \
378 lib/graph/message/event.h \
379 lib/graph/message-iterator-class.c \
380 lib/graph/message-iterator-class.h \
381 lib/graph/message/message.c \
382 lib/graph/message/message.h \
383 lib/graph/message/message-iterator-inactivity.c \
384 lib/graph/message/message-iterator-inactivity.h \
385 lib/graph/message/packet.c \
386 lib/graph/message/packet.h \
387 lib/graph/message/stream.c \
388 lib/graph/message/stream.h \
389 lib/graph/component.c \
390 lib/graph/component-class.c \
391 lib/graph/component-class.h \
392 lib/graph/component-class-sink-simple.c \
393 lib/graph/component-class-sink-simple.h \
394 lib/graph/component-descriptor-set.c \
395 lib/graph/component-descriptor-set.h \
396 lib/graph/component-filter.c \
397 lib/graph/component-filter.h \
398 lib/graph/component.h \
399 lib/graph/component-sink.c \
400 lib/graph/component-sink.h \
401 lib/graph/component-source.c \
402 lib/graph/component-source.h \
403 lib/graph/connection.c \
404 lib/graph/connection.h \
405 lib/graph/graph.c \
406 lib/graph/graph.h \
407 lib/graph/interrupter.c \
408 lib/graph/interrupter.h \
409 lib/graph/iterator.c \
410 lib/graph/iterator.h \
411 lib/graph/mip.c \
412 lib/graph/port.c \
413 lib/graph/port.h \
414 lib/graph/query-executor.c \
415 lib/graph/query-executor.h \
416 lib/plugin/plugin.c \
417 lib/plugin/plugin.h \
418 lib/plugin/plugin-so.c \
419 lib/plugin/plugin-so.h \
420 lib/trace-ir/attributes.c \
421 lib/trace-ir/attributes.h \
422 lib/trace-ir/clock-class.c \
423 lib/trace-ir/clock-class.h \
424 lib/trace-ir/clock-snapshot.c \
425 lib/trace-ir/clock-snapshot.h \
426 lib/trace-ir/event.c \
427 lib/trace-ir/event-class.c \
428 lib/trace-ir/event-class.h \
429 lib/trace-ir/event.h \
430 lib/trace-ir/field.c \
431 lib/trace-ir/field-class.c \
432 lib/trace-ir/field-class.h \
433 lib/trace-ir/field.h \
434 lib/trace-ir/field-path.c \
435 lib/trace-ir/field-path.h \
436 lib/trace-ir/field-wrapper.c \
437 lib/trace-ir/field-wrapper.h \
438 lib/trace-ir/packet.c \
439 lib/trace-ir/packet.h \
440 lib/trace-ir/resolve-field-path.c \
441 lib/trace-ir/resolve-field-path.h \
442 lib/trace-ir/stream.c \
443 lib/trace-ir/stream-class.c \
444 lib/trace-ir/stream-class.h \
445 lib/trace-ir/stream.h \
446 lib/trace-ir/trace.c \
447 lib/trace-ir/trace-class.c \
448 lib/trace-ir/trace-class.h \
449 lib/trace-ir/trace.h \
450 lib/trace-ir/utils.c \
451 lib/trace-ir/utils.h \
452 lib/assert-cond-base.h \
453 lib/assert-cond.h \
454 lib/assert-cond.c \
455 lib/babeltrace2.c \
456 lib/current-thread.c \
457 lib/error.c \
458 lib/error.h \
459 lib/func-status.h \
460 lib/integer-range-set.c \
461 lib/integer-range-set.h \
462 lib/lib-logging.c \
463 lib/logging.c \
464 lib/logging.h \
465 lib/object-pool.c \
466 lib/object-pool.h \
467 lib/object.h \
468 lib/property.h \
469 lib/util.c \
470 lib/value.c \
471 lib/value.h
472
473 lib_libbabeltrace2_la_LDFLAGS = \
474 $(AM_LDFLAGS) \
475 $(LT_NO_UNDEFINED) \
476 -version-info $(BABELTRACE_LIBRARY_VERSION)
477
478 lib_libbabeltrace2_la_CPPFLAGS = \
479 $(AM_CPPFLAGS) \
480 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
481
482 lib_libbabeltrace2_la_LIBADD = \
483 logging/liblogging.la \
484 common/libcommon.la \
485 compat/libcompat.la
486
487 ctf_writer_libbabeltrace2_ctf_writer_la_SOURCES = \
488 ctf-writer/assert-pre.h \
489 ctf-writer/attributes.c \
490 ctf-writer/attributes.h \
491 ctf-writer/clock.c \
492 ctf-writer/clock-class.c \
493 ctf-writer/clock-class.h \
494 ctf-writer/clock.h \
495 ctf-writer/event.c \
496 ctf-writer/event-class.c \
497 ctf-writer/event-class.h \
498 ctf-writer/event.h \
499 ctf-writer/field-path.c \
500 ctf-writer/field-path.h \
501 ctf-writer/fields.c \
502 ctf-writer/fields.h \
503 ctf-writer/field-types.c \
504 ctf-writer/field-types.h \
505 ctf-writer/field-wrapper.c \
506 ctf-writer/field-wrapper.h \
507 ctf-writer/functor.c \
508 ctf-writer/functor.h \
509 ctf-writer/logging.c \
510 ctf-writer/logging.h \
511 ctf-writer/object.c \
512 ctf-writer/object.h \
513 ctf-writer/object-pool.c \
514 ctf-writer/object-pool.h \
515 ctf-writer/resolve.c \
516 ctf-writer/resolve.h \
517 ctf-writer/stream.c \
518 ctf-writer/stream-class.c \
519 ctf-writer/stream-class.h \
520 ctf-writer/stream.h \
521 ctf-writer/trace.c \
522 ctf-writer/trace.h \
523 ctf-writer/utils.c \
524 ctf-writer/utils.h \
525 ctf-writer/validation.c \
526 ctf-writer/validation.h \
527 ctf-writer/values.c \
528 ctf-writer/values.h \
529 ctf-writer/visitor.c \
530 ctf-writer/visitor.h \
531 ctf-writer/writer.c \
532 ctf-writer/writer.h
533
534 ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
535 $(AM_LDFLAGS) \
536 $(LT_NO_UNDEFINED) \
537 -version-info $(BABELTRACE_LIBRARY_VERSION)
538
539 ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
540 logging/liblogging.la \
541 common/libcommon.la \
542 ctfser/libctfser.la \
543 compat/libcompat.la
544
545 pkgconfigdir = $(libdir)/pkgconfig
546 pkgconfig_DATA = \
547 babeltrace2-ctf-writer.pc \
548 babeltrace2.pc
549
550 #
551 # Python plugin provider
552 #
553
554 if ENABLE_PYTHON_PLUGINS
555 pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
556 pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
557
558 python_plugin_provider_babeltrace2_python_plugin_provider_la_SOURCES = \
559 python-plugin-provider/python-plugin-provider.c \
560 python-plugin-provider/python-plugin-provider.h
561
562 python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
563 $(AM_LDFLAGS) \
564 $(LT_NO_UNDEFINED) \
565 -avoid-version -module \
566 $(PYTHON_LDFLAGS)
567
568 python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
569 $(AM_CPPFLAGS) \
570 $(PYTHON_INCLUDE)
571
572 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD =
573
574 # Link the Python plugin provider library with libbabeltrace2
575 # when it's not built-in the babeltrace2 executable.
576 if !ENABLE_BUILT_IN_PLUGINS
577 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
578 logging/liblogging.la \
579 common/libcommon.la \
580 py-common/libpy-common.la \
581 lib/libbabeltrace2.la
582 endif
583 endif # ENABLE_PYTHON_PLUGINS
584
585 #
586 # Plugins
587 #
588
589 plugindir = "$(BABELTRACE_PLUGINS_DIR)"
590 plugin_LTLIBRARIES = \
591 plugins/ctf/babeltrace-plugin-ctf.la \
592 plugins/text/babeltrace-plugin-text.la \
593 plugins/utils/babeltrace-plugin-utils.la
594
595
596 # utils plugin
597 plugins_utils_babeltrace_plugin_utils_la_SOURCES = \
598 plugins/utils/counter/counter.c \
599 plugins/utils/counter/counter.h \
600 plugins/utils/dummy/dummy.c \
601 plugins/utils/dummy/dummy.h \
602 plugins/utils/muxer/comp.cpp \
603 plugins/utils/muxer/comp.hpp \
604 plugins/utils/muxer/msg-iter.cpp \
605 plugins/utils/muxer/msg-iter.hpp \
606 plugins/utils/muxer/upstream-msg-iter.cpp \
607 plugins/utils/muxer/upstream-msg-iter.hpp \
608 plugins/utils/trimmer/trimmer.c \
609 plugins/utils/trimmer/trimmer.h \
610 plugins/utils/plugin.cpp
611
612 plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
613 $(AM_LDFLAGS) \
614 $(LT_NO_UNDEFINED) \
615 -avoid-version -module $(LD_NOTEXT)
616
617 plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
618 plugins/common/muxing/libmuxing.la
619
620 if !ENABLE_BUILT_IN_PLUGINS
621 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
622 lib/libbabeltrace2.la \
623 common/libcommon.la \
624 cpp-common/vendor/fmt/libfmt.la \
625 logging/liblogging.la \
626 plugins/common/param-validation/libparam-validation.la
627 endif
628
629 # ctf plugin
630 plugins_ctf_babeltrace_plugin_ctf_la_SOURCES = \
631 plugins/ctf/common/bfcr/bfcr.cpp \
632 plugins/ctf/common/bfcr/bfcr.hpp \
633 plugins/ctf/common/msg-iter/msg-iter.cpp \
634 plugins/ctf/common/msg-iter/msg-iter.hpp \
635 plugins/ctf/common/print.hpp \
636 plugins/ctf/fs-sink/fs-sink.cpp \
637 plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp \
638 plugins/ctf/fs-sink/fs-sink.hpp \
639 plugins/ctf/fs-sink/fs-sink-stream.cpp \
640 plugins/ctf/fs-sink/fs-sink-stream.hpp \
641 plugins/ctf/fs-sink/fs-sink-trace.cpp \
642 plugins/ctf/fs-sink/fs-sink-trace.hpp \
643 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp \
644 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp \
645 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.cpp \
646 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp \
647 plugins/ctf/fs-src/data-stream-file.cpp \
648 plugins/ctf/fs-src/data-stream-file.hpp \
649 plugins/ctf/fs-src/file.cpp \
650 plugins/ctf/fs-src/file.hpp \
651 plugins/ctf/fs-src/fs.cpp \
652 plugins/ctf/fs-src/fs.hpp \
653 plugins/ctf/fs-src/lttng-index.hpp \
654 plugins/ctf/fs-src/metadata.cpp \
655 plugins/ctf/fs-src/metadata.hpp \
656 plugins/ctf/fs-src/query.cpp \
657 plugins/ctf/fs-src/query.hpp \
658 plugins/ctf/lttng-live/data-stream.cpp \
659 plugins/ctf/lttng-live/data-stream.hpp \
660 plugins/ctf/lttng-live/lttng-live.cpp \
661 plugins/ctf/lttng-live/lttng-live.hpp \
662 plugins/ctf/lttng-live/lttng-viewer-abi.hpp \
663 plugins/ctf/lttng-live/metadata.cpp \
664 plugins/ctf/lttng-live/metadata.hpp \
665 plugins/ctf/lttng-live/viewer-connection.cpp \
666 plugins/ctf/lttng-live/viewer-connection.hpp \
667 plugins/ctf/plugin.cpp
668
669 plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
670 $(AM_LDFLAGS) \
671 $(LT_NO_UNDEFINED) \
672 -avoid-version -module $(LD_NOTEXT)
673
674 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD = \
675 plugins/ctf/common/metadata/libctf-parser.la \
676 plugins/ctf/common/metadata/libctf-ast.la \
677 plugins/common/param-validation/libparam-validation.la
678
679 if BABELTRACE_BUILD_WITH_MINGW
680 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
681 endif
682
683 if !ENABLE_BUILT_IN_PLUGINS
684 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
685 lib/libbabeltrace2.la \
686 logging/liblogging.la \
687 plugins/common/muxing/libmuxing.la \
688 common/libcommon.la \
689 ctfser/libctfser.la
690 endif
691
692 # text plugin
693 plugins_text_babeltrace_plugin_text_la_SOURCES = \
694 plugins/text/details/colors.h \
695 plugins/text/details/details.c \
696 plugins/text/details/details.h \
697 plugins/text/details/obj-lifetime-mgmt.c \
698 plugins/text/details/obj-lifetime-mgmt.h \
699 plugins/text/details/write.c \
700 plugins/text/details/write.h \
701 plugins/text/dmesg/dmesg.c \
702 plugins/text/dmesg/dmesg.h \
703 plugins/text/pretty/pretty.c \
704 plugins/text/pretty/pretty.h \
705 plugins/text/pretty/print.c \
706 plugins/text/plugin.c
707
708 plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
709 $(AM_LDFLAGS) \
710 $(LT_NO_UNDEFINED) \
711 -avoid-version -module $(LD_NOTEXT)
712
713 plugins_text_babeltrace_plugin_text_la_LIBADD =
714
715 if !ENABLE_BUILT_IN_PLUGINS
716 plugins_text_babeltrace_plugin_text_la_LIBADD += \
717 lib/libbabeltrace2.la \
718 common/libcommon.la \
719 logging/liblogging.la \
720 compat/libcompat.la \
721 plugins/common/param-validation/libparam-validation.la
722 endif
723
724 # lttng-utils plugin
725 if ENABLE_DEBUG_INFO
726 plugin_LTLIBRARIES += \
727 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
728
729 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
730 plugins/lttng-utils/plugin.c
731
732 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LDFLAGS = \
733 $(AM_LDFLAGS) \
734 $(LT_NO_UNDEFINED) \
735 -avoid-version -module $(LD_NOTEXT) \
736 $(ELFUTILS_LIBS)
737
738 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
739 plugins/lttng-utils/debug-info/libdebug-info.la
740
741 if !ENABLE_BUILT_IN_PLUGINS
742 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
743 lib/libbabeltrace2.la \
744 common/libcommon.la \
745 logging/liblogging.la \
746 plugins/common/param-validation/libparam-validation.la
747 endif # !ENABLE_BUILT_IN_PLUGINS
748 endif # ENABLE_DEBUG_INFO
749
750 EXTRA_DIST = \
751 cpp-common/vendor/optional-lite/optional.hpp.license \
752 cpp-common/vendor/span-lite/span.hpp.license
This page took 0.049338 seconds and 4 git commands to generate.