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