src/cpp-common: add {fmt} 10.1.1
[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 104 compat/libcompat.la \
7f66516e 105 cpp-common/vendor/fmt/libfmt.la \
86ef6105
MJ
106 ctfser/libctfser.la \
107 fd-cache/libfd-cache.la \
108 logging/liblogging.la \
109 param-parse/libparam-parse.la \
6244258c
MJ
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 \
86ef6105
MJ
114 string-format/libstring-format.la
115
ed615696 116
86ef6105
MJ
117argpar_libargpar_la_SOURCES = \
118 argpar/argpar.c \
119 argpar/argpar.h
120
121autodisc_libautodisc_la_SOURCES = \
122 autodisc/autodisc.c \
123 autodisc/autodisc.h
124
ed615696 125common_libcommon_la_SOURCES = \
a0bc1faf 126 common/align.h \
ed615696
MJ
127 common/assert.c \
128 common/assert.h \
129 common/common.c \
130 common/common.h \
a0bc1faf
SM
131 common/list.h \
132 common/macros.h \
133 common/mmap-align.h \
134 common/safe.h \
ed615696 135 common/uuid.c \
a0bc1faf
SM
136 common/uuid.h \
137 common/version.h \
138 common/version.i
ed615696
MJ
139
140common_libcommon_la_CPPFLAGS = \
141 $(AM_CPPFLAGS) \
142 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
143
86ef6105
MJ
144compat_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
7f66516e
PP
162cpp_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
86ef6105
MJ
179ctfser_libctfser_la_SOURCES = \
180 ctfser/ctfser.c \
181 ctfser/ctfser.h
182
183fd_cache_libfd_cache_la_SOURCES = \
184 fd-cache/fd-cache.c \
185 fd-cache/fd-cache.h
186
187logging_liblogging_la_SOURCES = \
188 logging/comp-logging.h \
71436ae4
SM
189 logging/log-api.c \
190 logging/log-api.h \
86ef6105
MJ
191 logging/log.h
192
193param_parse_libparam_parse_la_SOURCES = \
194 param-parse/param-parse.c \
195 param-parse/param-parse.h
196
197string_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
6244258c
MJ
203plugins_common_muxing_libmuxing_la_SOURCES = \
204 plugins/common/muxing/muxing.c \
205 plugins/common/muxing/muxing.h
206
207plugins_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
216AM_YFLAGS = \
217 -t -d -v -Wno-yacc
218
219plugins_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_.
225plugins_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.
231plugins_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
238plugins_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
270if BABELTRACE_BUILD_WITH_MINGW
271plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
272endif
273
ed615696 274BUILT_SOURCES += \
6244258c
MJ
275 plugins/ctf/common/metadata/parser.hpp
276
6244258c
MJ
277ALL_LOCAL =
278
279if HAVE_BISON
280# We have bison: we can clean the generated parser files
281CLEANFILES += \
282 plugins/ctf/common/metadata/parser.cpp \
283 plugins/ctf/common/metadata/parser.hpp \
284 plugins/ctf/common/metadata/parser.output
285else # 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
288plugins/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
293ALL_LOCAL += \
294 plugins/ctf/common/metadata/parser.cpp \
295 plugins/ctf/common/metadata/parser.hpp
296endif # HAVE_BISON
297
298if HAVE_FLEX
299# We have flex: we can clean the generated lexer files
300CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
301else # 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
304plugins/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
309ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
310endif # HAVE_FLEX
311
312all-local: $(ALL_LOCAL)
313
86ef6105
MJ
314if ENABLE_PYTHON_COMMON_DEPS
315noinst_LTLIBRARIES += py-common/libpy-common.la
316
317py_common_libpy_common_la_SOURCES = \
318 py-common/py-common.c \
319 py-common/py-common.h
320
321py_common_libpy_common_la_CPPFLAGS = \
322 $(AM_CPPFLAGS) \
323 $(PYTHON_INCLUDE)
324
325endif # ENABLE_PYTHON_COMMON_DEPS
326
6244258c
MJ
327if ENABLE_DEBUG_INFO
328noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
329
330plugins_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
350plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
351 fd-cache/libfd-cache.la
352
353endif # ENABLE_DEBUG_INFO
354
355
86ef6105
MJ
356#
357# Public libraries
358#
359
360lib_LTLIBRARIES = \
361 ctf-writer/libbabeltrace2-ctf-writer.la \
362 lib/libbabeltrace2.la
363
364lib_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
465lib_libbabeltrace2_la_LDFLAGS = \
466 $(AM_LDFLAGS) \
467 $(LT_NO_UNDEFINED) \
468 -version-info $(BABELTRACE_LIBRARY_VERSION)
469
470lib_libbabeltrace2_la_CPPFLAGS = \
471 $(AM_CPPFLAGS) \
472 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
473
474lib_libbabeltrace2_la_LIBADD = \
475 logging/liblogging.la \
ed615696 476 common/libcommon.la \
86ef6105
MJ
477 compat/libcompat.la
478
479ctf_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
526ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
527 $(AM_LDFLAGS) \
528 $(LT_NO_UNDEFINED) \
529 -version-info $(BABELTRACE_LIBRARY_VERSION)
530
531ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
532 logging/liblogging.la \
ed615696 533 common/libcommon.la \
86ef6105
MJ
534 ctfser/libctfser.la \
535 compat/libcompat.la
536
578e048b 537pkgconfigdir = $(libdir)/pkgconfig
86ef6105
MJ
538pkgconfig_DATA = \
539 babeltrace2-ctf-writer.pc \
540 babeltrace2.pc
541
542#
543# Python plugin provider
544#
545
546if ENABLE_PYTHON_PLUGINS
547pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
548pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
549
550python_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
554python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
555 $(AM_LDFLAGS) \
556 $(LT_NO_UNDEFINED) \
557 -avoid-version -module \
558 $(PYTHON_LDFLAGS)
559
560python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
561 $(AM_CPPFLAGS) \
562 $(PYTHON_INCLUDE)
563
564python_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.
568if !ENABLE_BUILT_IN_PLUGINS
569python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
570 logging/liblogging.la \
ed615696 571 common/libcommon.la \
86ef6105
MJ
572 py-common/libpy-common.la \
573 lib/libbabeltrace2.la
574endif
575endif # ENABLE_PYTHON_PLUGINS
6244258c
MJ
576
577#
578# Plugins
579#
580
581plugindir = "$(BABELTRACE_PLUGINS_DIR)"
582plugin_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
589plugins_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
600plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
601 $(AM_LDFLAGS) \
602 $(LT_NO_UNDEFINED) \
603 -avoid-version -module $(LD_NOTEXT)
604
605plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
606 plugins/common/muxing/libmuxing.la
607
608if !ENABLE_BUILT_IN_PLUGINS
609plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
610 lib/libbabeltrace2.la \
ed615696 611 common/libcommon.la \
6244258c
MJ
612 logging/liblogging.la \
613 plugins/common/param-validation/libparam-validation.la
614endif
615
616# ctf plugin
617plugins_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
656plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
657 $(AM_LDFLAGS) \
658 $(LT_NO_UNDEFINED) \
659 -avoid-version -module $(LD_NOTEXT)
660
661plugins_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
666if BABELTRACE_BUILD_WITH_MINGW
667plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
668endif
669
670if !ENABLE_BUILT_IN_PLUGINS
671plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
672 lib/libbabeltrace2.la \
673 logging/liblogging.la \
674 plugins/common/muxing/libmuxing.la \
ed615696 675 common/libcommon.la \
6244258c
MJ
676 ctfser/libctfser.la
677endif
678
679# text plugin
680plugins_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
695plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
696 $(AM_LDFLAGS) \
697 $(LT_NO_UNDEFINED) \
698 -avoid-version -module $(LD_NOTEXT)
699
700plugins_text_babeltrace_plugin_text_la_LIBADD =
701
702if !ENABLE_BUILT_IN_PLUGINS
703plugins_text_babeltrace_plugin_text_la_LIBADD += \
704 lib/libbabeltrace2.la \
ed615696 705 common/libcommon.la \
6244258c
MJ
706 logging/liblogging.la \
707 compat/libcompat.la \
708 plugins/common/param-validation/libparam-validation.la
709endif
710
711# lttng-utils plugin
712if ENABLE_DEBUG_INFO
713plugin_LTLIBRARIES += \
714 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
715
716plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
717 plugins/lttng-utils/plugin.c
718
719plugins_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
725plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
726 plugins/lttng-utils/debug-info/libdebug-info.la
727
728if !ENABLE_BUILT_IN_PLUGINS
729plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
730 lib/libbabeltrace2.la \
ed615696 731 common/libcommon.la \
6244258c
MJ
732 logging/liblogging.la \
733 plugins/common/param-validation/libparam-validation.la
734endif # !ENABLE_BUILT_IN_PLUGINS
735endif # ENABLE_DEBUG_INFO
53118ba6
PP
736
737EXTRA_DIST = cpp-common/optional.hpp.license
This page took 0.08913 seconds and 4 git commands to generate.