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