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