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