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