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