logging: strip down and clean `log.h` and `log.c`
[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
86ef6105 14noinst_HEADERS = \
56862ee2 15 cpp-common/bt2/borrowed-object-iterator.hpp \
3b1517b9 16 cpp-common/bt2/borrowed-object-proxy.hpp \
0d218157 17 cpp-common/bt2/borrowed-object.hpp \
86ef6105
MJ
18 cpp-common/bt2/clock-class.hpp \
19 cpp-common/bt2/clock-snapshot.hpp \
7bdf11a1 20 cpp-common/bt2/component-port.hpp \
86ef6105
MJ
21 cpp-common/bt2/exc.hpp \
22 cpp-common/bt2/field-class.hpp \
86ef6105 23 cpp-common/bt2/field-path.hpp \
094bf3f2 24 cpp-common/bt2/field.hpp \
86ef6105 25 cpp-common/bt2/integer-range-set.hpp \
094bf3f2 26 cpp-common/bt2/integer-range.hpp \
86ef6105
MJ
27 cpp-common/bt2/internal/utils.hpp \
28 cpp-common/bt2/logging.hpp \
736675a4 29 cpp-common/bt2/message-array.hpp \
d9a27df8 30 cpp-common/bt2/message-iterator.hpp \
86ef6105 31 cpp-common/bt2/message.hpp \
7f5cdaf0 32 cpp-common/bt2/shared-object.hpp \
b3f060ed 33 cpp-common/bt2/raw-value-proxy.hpp \
e2a8620d 34 cpp-common/bt2/private-query-executor.hpp \
c83761b9 35 cpp-common/bt2/self-component-class.hpp \
b6f09a6b 36 cpp-common/bt2/self-component-port.hpp \
47cd0d7c 37 cpp-common/bt2/self-message-iterator-configuration.hpp \
73b3ea14 38 cpp-common/bt2/self-message-iterator.hpp \
094bf3f2 39 cpp-common/bt2/shared-object.hpp \
86ef6105
MJ
40 cpp-common/bt2/trace-ir.hpp \
41 cpp-common/bt2/type-traits.hpp \
42 cpp-common/bt2/value.hpp \
87fc9c82 43 cpp-common/bt2/wrap.hpp \
094bf3f2
SM
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 \
094bf3f2
SM
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 \
80ab6559 56 cpp-common/bt2s/make-unique.hpp \
c022776a 57 cpp-common/bt2s/optional.hpp \
45f637cc 58 cpp-common/bt2s/string-view.hpp \
78c888d1 59 cpp-common/vendor/nlohmann/json.hpp \
45f637cc
PP
60 cpp-common/vendor/optional-lite/optional.hpp \
61 cpp-common/vendor/string_view-standalone/string_view.hpp
86ef6105 62
ed615696
MJ
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
70version_verbose = $(version_verbose_@AM_V@)
71version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
72version_verbose_0 = @echo " GEN " $@;
73
74common/version.i:
75 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
76
77dist_noinst_SCRIPTS = gen-version-i.sh
78
79# Ensure version.i is generated before any code is built.
80BUILT_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
88CLEANFILES = 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##
94DISTCLEANFILES = common/version.i
95
86ef6105
MJ
96#
97# Convenience libraries
98#
99
100noinst_LTLIBRARIES = \
101 argpar/libargpar.la \
102 autodisc/libautodisc.la \
ed615696 103 common/libcommon.la \
86ef6105
MJ
104 compat/libcompat.la \
105 ctfser/libctfser.la \
106 fd-cache/libfd-cache.la \
107 logging/liblogging.la \
108 param-parse/libparam-parse.la \
6244258c
MJ
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 \
86ef6105
MJ
113 string-format/libstring-format.la
114
ed615696 115
86ef6105
MJ
116argpar_libargpar_la_SOURCES = \
117 argpar/argpar.c \
118 argpar/argpar.h
119
120autodisc_libautodisc_la_SOURCES = \
121 autodisc/autodisc.c \
122 autodisc/autodisc.h
123
ed615696 124common_libcommon_la_SOURCES = \
a0bc1faf 125 common/align.h \
ed615696
MJ
126 common/assert.c \
127 common/assert.h \
128 common/common.c \
129 common/common.h \
a0bc1faf
SM
130 common/list.h \
131 common/macros.h \
132 common/mmap-align.h \
133 common/safe.h \
ed615696 134 common/uuid.c \
a0bc1faf
SM
135 common/uuid.h \
136 common/version.h \
137 common/version.i
ed615696
MJ
138
139common_libcommon_la_CPPFLAGS = \
140 $(AM_CPPFLAGS) \
141 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
142
86ef6105
MJ
143compat_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
161ctfser_libctfser_la_SOURCES = \
162 ctfser/ctfser.c \
163 ctfser/ctfser.h
164
165fd_cache_libfd_cache_la_SOURCES = \
166 fd-cache/fd-cache.c \
167 fd-cache/fd-cache.h
168
169logging_liblogging_la_SOURCES = \
170 logging/comp-logging.h \
71436ae4
SM
171 logging/log-api.c \
172 logging/log-api.h \
86ef6105
MJ
173 logging/log.h
174
175param_parse_libparam_parse_la_SOURCES = \
176 param-parse/param-parse.c \
177 param-parse/param-parse.h
178
179string_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
6244258c
MJ
185plugins_common_muxing_libmuxing_la_SOURCES = \
186 plugins/common/muxing/muxing.c \
187 plugins/common/muxing/muxing.h
188
189plugins_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
198AM_YFLAGS = \
199 -t -d -v -Wno-yacc
200
201plugins_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_.
207plugins_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.
213plugins_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
220plugins_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
252if BABELTRACE_BUILD_WITH_MINGW
253plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
254endif
255
ed615696 256BUILT_SOURCES += \
6244258c
MJ
257 plugins/ctf/common/metadata/parser.hpp
258
6244258c
MJ
259ALL_LOCAL =
260
261if HAVE_BISON
262# We have bison: we can clean the generated parser files
263CLEANFILES += \
264 plugins/ctf/common/metadata/parser.cpp \
265 plugins/ctf/common/metadata/parser.hpp \
266 plugins/ctf/common/metadata/parser.output
267else # 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
270plugins/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
275ALL_LOCAL += \
276 plugins/ctf/common/metadata/parser.cpp \
277 plugins/ctf/common/metadata/parser.hpp
278endif # HAVE_BISON
279
280if HAVE_FLEX
281# We have flex: we can clean the generated lexer files
282CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
283else # 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
286plugins/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
291ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
292endif # HAVE_FLEX
293
294all-local: $(ALL_LOCAL)
295
86ef6105
MJ
296if ENABLE_PYTHON_COMMON_DEPS
297noinst_LTLIBRARIES += py-common/libpy-common.la
298
299py_common_libpy_common_la_SOURCES = \
300 py-common/py-common.c \
301 py-common/py-common.h
302
303py_common_libpy_common_la_CPPFLAGS = \
304 $(AM_CPPFLAGS) \
305 $(PYTHON_INCLUDE)
306
307endif # ENABLE_PYTHON_COMMON_DEPS
308
6244258c
MJ
309if ENABLE_DEBUG_INFO
310noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
311
312plugins_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
332plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
333 fd-cache/libfd-cache.la
334
335endif # ENABLE_DEBUG_INFO
336
337
86ef6105
MJ
338#
339# Public libraries
340#
341
342lib_LTLIBRARIES = \
343 ctf-writer/libbabeltrace2-ctf-writer.la \
344 lib/libbabeltrace2.la
345
346lib_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
447lib_libbabeltrace2_la_LDFLAGS = \
448 $(AM_LDFLAGS) \
449 $(LT_NO_UNDEFINED) \
450 -version-info $(BABELTRACE_LIBRARY_VERSION)
451
452lib_libbabeltrace2_la_CPPFLAGS = \
453 $(AM_CPPFLAGS) \
454 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
455
456lib_libbabeltrace2_la_LIBADD = \
457 logging/liblogging.la \
ed615696 458 common/libcommon.la \
86ef6105
MJ
459 compat/libcompat.la
460
461ctf_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
508ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
509 $(AM_LDFLAGS) \
510 $(LT_NO_UNDEFINED) \
511 -version-info $(BABELTRACE_LIBRARY_VERSION)
512
513ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
514 logging/liblogging.la \
ed615696 515 common/libcommon.la \
86ef6105
MJ
516 ctfser/libctfser.la \
517 compat/libcompat.la
518
578e048b 519pkgconfigdir = $(libdir)/pkgconfig
86ef6105
MJ
520pkgconfig_DATA = \
521 babeltrace2-ctf-writer.pc \
522 babeltrace2.pc
523
524#
525# Python plugin provider
526#
527
528if ENABLE_PYTHON_PLUGINS
529pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
530pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
531
532python_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
536python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
537 $(AM_LDFLAGS) \
538 $(LT_NO_UNDEFINED) \
539 -avoid-version -module \
540 $(PYTHON_LDFLAGS)
541
542python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
543 $(AM_CPPFLAGS) \
544 $(PYTHON_INCLUDE)
545
546python_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.
550if !ENABLE_BUILT_IN_PLUGINS
551python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
552 logging/liblogging.la \
ed615696 553 common/libcommon.la \
86ef6105
MJ
554 py-common/libpy-common.la \
555 lib/libbabeltrace2.la
556endif
557endif # ENABLE_PYTHON_PLUGINS
6244258c
MJ
558
559#
560# Plugins
561#
562
563plugindir = "$(BABELTRACE_PLUGINS_DIR)"
564plugin_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
571plugins_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
582plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
583 $(AM_LDFLAGS) \
584 $(LT_NO_UNDEFINED) \
585 -avoid-version -module $(LD_NOTEXT)
586
587plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
588 plugins/common/muxing/libmuxing.la
589
590if !ENABLE_BUILT_IN_PLUGINS
591plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
592 lib/libbabeltrace2.la \
ed615696 593 common/libcommon.la \
6244258c
MJ
594 logging/liblogging.la \
595 plugins/common/param-validation/libparam-validation.la
596endif
597
598# ctf plugin
599plugins_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
638plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
639 $(AM_LDFLAGS) \
640 $(LT_NO_UNDEFINED) \
641 -avoid-version -module $(LD_NOTEXT)
642
643plugins_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
648if BABELTRACE_BUILD_WITH_MINGW
649plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
650endif
651
652if !ENABLE_BUILT_IN_PLUGINS
653plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
654 lib/libbabeltrace2.la \
655 logging/liblogging.la \
656 plugins/common/muxing/libmuxing.la \
ed615696 657 common/libcommon.la \
6244258c
MJ
658 ctfser/libctfser.la
659endif
660
661# text plugin
662plugins_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
677plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
678 $(AM_LDFLAGS) \
679 $(LT_NO_UNDEFINED) \
680 -avoid-version -module $(LD_NOTEXT)
681
682plugins_text_babeltrace_plugin_text_la_LIBADD =
683
684if !ENABLE_BUILT_IN_PLUGINS
685plugins_text_babeltrace_plugin_text_la_LIBADD += \
686 lib/libbabeltrace2.la \
ed615696 687 common/libcommon.la \
6244258c
MJ
688 logging/liblogging.la \
689 compat/libcompat.la \
690 plugins/common/param-validation/libparam-validation.la
691endif
692
693# lttng-utils plugin
694if ENABLE_DEBUG_INFO
695plugin_LTLIBRARIES += \
696 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
697
698plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
699 plugins/lttng-utils/plugin.c
700
701plugins_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
707plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
708 plugins/lttng-utils/debug-info/libdebug-info.la
709
710if !ENABLE_BUILT_IN_PLUGINS
711plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
712 lib/libbabeltrace2.la \
ed615696 713 common/libcommon.la \
6244258c
MJ
714 logging/liblogging.la \
715 plugins/common/param-validation/libparam-validation.la
716endif # !ENABLE_BUILT_IN_PLUGINS
717endif # ENABLE_DEBUG_INFO
53118ba6
PP
718
719EXTRA_DIST = cpp-common/optional.hpp.license
This page took 0.090343 seconds and 4 git commands to generate.