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