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