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