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