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