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