src/cpp-common/bt2c: rename `span.hpp` -> `make-span.hpp`
[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/dummy.cpp \
166 cpp-common/bt2c/endian.hpp \
167 cpp-common/bt2c/exc.hpp \
0b9614ad
FD
168 cpp-common/bt2c/file-utils.cpp \
169 cpp-common/bt2c/file-utils.hpp \
7cf8258b 170 cpp-common/bt2c/fmt.hpp \
89052002 171 cpp-common/bt2c/glib-up.hpp \
89052002
SM
172 cpp-common/bt2c/libc-up.hpp \
173 cpp-common/bt2c/logging.hpp \
c458c630 174 cpp-common/bt2c/make-span.hpp \
89052002
SM
175 cpp-common/bt2c/prio-heap.hpp \
176 cpp-common/bt2c/read-fixed-len-int.hpp \
177 cpp-common/bt2c/safe-ops.hpp \
178 cpp-common/bt2c/std-int.hpp \
179 cpp-common/bt2c/type-traits.hpp \
180 cpp-common/bt2c/uuid.hpp \
181 cpp-common/bt2c/vector.hpp \
182 cpp-common/bt2s/make-unique.hpp \
183 cpp-common/bt2s/optional.hpp \
184 cpp-common/bt2s/span.hpp \
185 cpp-common/bt2s/string-view.hpp \
186 cpp-common/vendor/nlohmann/json.hpp \
187 cpp-common/vendor/optional-lite/optional.hpp \
188 cpp-common/vendor/span-lite/span.hpp \
8ae5c2b2
SM
189 cpp-common/vendor/string-view-lite/string_view.hpp \
190 cpp-common/vendor/wise-enum/optional.h \
191 cpp-common/vendor/wise-enum/optional_common.h \
192 cpp-common/vendor/wise-enum/wise_enum.h \
193 cpp-common/vendor/wise-enum/wise_enum_detail.h \
194 cpp-common/vendor/wise-enum/wise_enum_generated.h
89052002 195
7f66516e
PP
196cpp_common_vendor_fmt_libfmt_la_SOURCES = \
197 cpp-common/vendor/fmt/args.h \
198 cpp-common/vendor/fmt/chrono.h \
199 cpp-common/vendor/fmt/color.h \
200 cpp-common/vendor/fmt/compile.h \
201 cpp-common/vendor/fmt/core.h \
202 cpp-common/vendor/fmt/format-inl.h \
203 cpp-common/vendor/fmt/format.cc \
204 cpp-common/vendor/fmt/format.h \
205 cpp-common/vendor/fmt/os.cc \
206 cpp-common/vendor/fmt/os.h \
207 cpp-common/vendor/fmt/ostream.h \
208 cpp-common/vendor/fmt/printf.h \
209 cpp-common/vendor/fmt/ranges.h \
210 cpp-common/vendor/fmt/std.h \
211 cpp-common/vendor/fmt/xchar.h
212
5ce6587e
PP
213cpp_common_vendor_fmt_libfmt_la_CXXFLAGS = \
214 $(AM_CXXFLAGS) -Wno-missing-noreturn
215
86ef6105
MJ
216ctfser_libctfser_la_SOURCES = \
217 ctfser/ctfser.c \
218 ctfser/ctfser.h
219
220fd_cache_libfd_cache_la_SOURCES = \
221 fd-cache/fd-cache.c \
222 fd-cache/fd-cache.h
223
224logging_liblogging_la_SOURCES = \
225 logging/comp-logging.h \
71436ae4
SM
226 logging/log-api.c \
227 logging/log-api.h \
86ef6105
MJ
228 logging/log.h
229
230param_parse_libparam_parse_la_SOURCES = \
231 param-parse/param-parse.c \
232 param-parse/param-parse.h
233
234string_format_libstring_format_la_SOURCES = \
235 string-format/format-plugin-comp-cls-name.c \
236 string-format/format-plugin-comp-cls-name.h \
237 string-format/format-error.c \
238 string-format/format-error.h
239
6244258c
MJ
240plugins_common_muxing_libmuxing_la_SOURCES = \
241 plugins/common/muxing/muxing.c \
242 plugins/common/muxing/muxing.h
243
244plugins_common_param_validation_libparam_validation_la_SOURCES = \
245 plugins/common/param-validation/param-validation.c \
246 plugins/common/param-validation/param-validation.h
247
248# Set flags for the Bison based metadata parser
249# -t : instrument the parser
250# -d : produce a header
251# -v : verbose
252# -Wno-yacc : disable POSIX Yacc incompatibilities warnings
253AM_YFLAGS = \
254 -t -d -v -Wno-yacc
255
256plugins_ctf_common_metadata_libctf_parser_la_SOURCES = \
5656cea5
PP
257 plugins/ctf/common/src/metadata/tsdl/lexer.lpp \
258 plugins/ctf/common/src/metadata/tsdl/parser.ypp \
259 plugins/ctf/common/src/metadata/tsdl/objstack.cpp
6244258c
MJ
260
261# scanner-symbols.h is included to prefix generated yy_* symbols with bt_.
262plugins_ctf_common_metadata_libctf_parser_la_CPPFLAGS = \
263 $(AM_CPPFLAGS) \
5656cea5 264 -include $(srcdir)/plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp
6244258c
MJ
265
266# This library contains (mostly) generated code, silence some warnings that it
267# produces.
268plugins_ctf_common_metadata_libctf_parser_la_CXXFLAGS = \
269 $(AM_CXXFLAGS) \
270 -Wno-unused-function \
271 -Wno-null-dereference \
272 -Wno-missing-field-initializers \
273 -Wno-unused-parameter
274
275plugins_ctf_common_metadata_libctf_ast_la_SOURCES = \
5656cea5
PP
276 plugins/ctf/common/src/metadata/tsdl/visitor-generate-ir.cpp \
277 plugins/ctf/common/src/metadata/tsdl/visitor-semantic-validator.cpp \
278 plugins/ctf/common/src/metadata/tsdl/visitor-parent-links.cpp \
279 plugins/ctf/common/src/metadata/tsdl/ast.hpp \
280 plugins/ctf/common/src/metadata/tsdl/objstack.hpp \
281 plugins/ctf/common/src/metadata/tsdl/parser.hpp \
282 plugins/ctf/common/src/metadata/tsdl/parser-wrap.hpp \
283 plugins/ctf/common/src/metadata/tsdl/scanner.hpp \
284 plugins/ctf/common/src/metadata/tsdl/scanner-symbols.hpp \
285 plugins/ctf/common/src/metadata/tsdl/decoder.cpp \
286 plugins/ctf/common/src/metadata/tsdl/decoder.hpp \
287 plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.cpp \
288 plugins/ctf/common/src/metadata/tsdl/decoder-packetized-file-stream-to-buf.hpp \
5656cea5
PP
289 plugins/ctf/common/src/metadata/tsdl/logging.hpp \
290 plugins/ctf/common/src/metadata/tsdl/ctf-meta.hpp \
291 plugins/ctf/common/src/metadata/tsdl/ctf-meta-visitors.hpp \
292 plugins/ctf/common/src/metadata/tsdl/ctf-meta-validate.cpp \
293 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-meanings.cpp \
294 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-in-ir.cpp \
295 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-default-clock-classes.cpp \
296 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-text-array-sequence.cpp \
297 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-alignments.cpp \
298 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-value-storing-indexes.cpp \
299 plugins/ctf/common/src/metadata/tsdl/ctf-meta-update-stream-class-config.cpp \
300 plugins/ctf/common/src/metadata/tsdl/ctf-meta-warn-meaningless-header-fields.cpp \
301 plugins/ctf/common/src/metadata/tsdl/ctf-meta-translate.cpp \
302 plugins/ctf/common/src/metadata/tsdl/ctf-meta-resolve.cpp \
303 plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.cpp \
304 plugins/ctf/common/src/metadata/tsdl/ctf-meta-configure-ir-trace.hpp
6244258c
MJ
305
306if BABELTRACE_BUILD_WITH_MINGW
307plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
308endif
309
ed615696 310BUILT_SOURCES += \
5656cea5 311 plugins/ctf/common/src/metadata/tsdl/parser.hpp
6244258c 312
6244258c
MJ
313ALL_LOCAL =
314
315if HAVE_BISON
316# We have bison: we can clean the generated parser files
317CLEANFILES += \
5656cea5
PP
318 plugins/ctf/common/src/metadata/tsdl/parser.cpp \
319 plugins/ctf/common/src/metadata/tsdl/parser.hpp \
320 plugins/ctf/common/src/metadata/tsdl/parser.output
6244258c
MJ
321else # HAVE_BISON
322# Create target used to stop the build if we want to build the parser,
323# but we don't have the necessary tool to do so
324plugins/ctf/common/metadata/parser.cpp plugins/ctf/common/metadata/parser.hpp: plugins/ctf/common/metadata/parser.ypp
325 @echo "Error: Cannot build target because bison is missing."
326 @echo "Make sure bison is installed and run the configure script again."
327 @false
328
329ALL_LOCAL += \
330 plugins/ctf/common/metadata/parser.cpp \
331 plugins/ctf/common/metadata/parser.hpp
332endif # HAVE_BISON
333
334if HAVE_FLEX
335# We have flex: we can clean the generated lexer files
336CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
337else # HAVE_FLEX
338# Create target used to stop the build if we want to build the lexer,
339# but we don't have the necessary tool to do so
340plugins/ctf/common/metadata/lexer.cpp: plugins/ctf/common/metadata/lexer.lpp
341 @echo "Error: Cannot build target because flex is missing."
342 @echo "Make sure flex is installed and run the configure script again."
343 @false
344
345ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
346endif # HAVE_FLEX
347
348all-local: $(ALL_LOCAL)
349
86ef6105
MJ
350if ENABLE_PYTHON_COMMON_DEPS
351noinst_LTLIBRARIES += py-common/libpy-common.la
352
353py_common_libpy_common_la_SOURCES = \
354 py-common/py-common.c \
355 py-common/py-common.h
356
357py_common_libpy_common_la_CPPFLAGS = \
358 $(AM_CPPFLAGS) \
359 $(PYTHON_INCLUDE)
360
361endif # ENABLE_PYTHON_COMMON_DEPS
362
6244258c
MJ
363if ENABLE_DEBUG_INFO
364noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
365
366plugins_lttng_utils_debug_info_libdebug_info_la_SOURCES = \
367 plugins/lttng-utils/debug-info/bin-info.c \
368 plugins/lttng-utils/debug-info/bin-info.h \
369 plugins/lttng-utils/debug-info/crc32.c \
370 plugins/lttng-utils/debug-info/crc32.h \
371 plugins/lttng-utils/debug-info/debug-info.c \
372 plugins/lttng-utils/debug-info/debug-info.h \
373 plugins/lttng-utils/debug-info/dwarf.c \
374 plugins/lttng-utils/debug-info/dwarf.h \
375 plugins/lttng-utils/debug-info/trace-ir-data-copy.c \
376 plugins/lttng-utils/debug-info/trace-ir-data-copy.h \
377 plugins/lttng-utils/debug-info/trace-ir-mapping.c \
378 plugins/lttng-utils/debug-info/trace-ir-mapping.h \
379 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c \
380 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h \
381 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c \
382 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h \
383 plugins/lttng-utils/debug-info/utils.c \
384 plugins/lttng-utils/debug-info/utils.h
385
386plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
387 fd-cache/libfd-cache.la
388
389endif # ENABLE_DEBUG_INFO
390
391
86ef6105
MJ
392#
393# Public libraries
394#
395
396lib_LTLIBRARIES = \
397 ctf-writer/libbabeltrace2-ctf-writer.la \
398 lib/libbabeltrace2.la
399
400lib_libbabeltrace2_la_SOURCES = \
401 lib/graph/message/discarded-items.c \
402 lib/graph/message/discarded-items.h \
403 lib/graph/message/event.c \
404 lib/graph/message/event.h \
405 lib/graph/message-iterator-class.c \
406 lib/graph/message-iterator-class.h \
86ef6105
MJ
407 lib/graph/message/message.c \
408 lib/graph/message/message.h \
409 lib/graph/message/message-iterator-inactivity.c \
410 lib/graph/message/message-iterator-inactivity.h \
411 lib/graph/message/packet.c \
412 lib/graph/message/packet.h \
413 lib/graph/message/stream.c \
414 lib/graph/message/stream.h \
415 lib/graph/component.c \
416 lib/graph/component-class.c \
417 lib/graph/component-class.h \
418 lib/graph/component-class-sink-simple.c \
419 lib/graph/component-class-sink-simple.h \
420 lib/graph/component-descriptor-set.c \
421 lib/graph/component-descriptor-set.h \
422 lib/graph/component-filter.c \
423 lib/graph/component-filter.h \
424 lib/graph/component.h \
425 lib/graph/component-sink.c \
426 lib/graph/component-sink.h \
427 lib/graph/component-source.c \
428 lib/graph/component-source.h \
429 lib/graph/connection.c \
430 lib/graph/connection.h \
431 lib/graph/graph.c \
432 lib/graph/graph.h \
433 lib/graph/interrupter.c \
434 lib/graph/interrupter.h \
435 lib/graph/iterator.c \
5155b005 436 lib/graph/iterator.h \
86ef6105
MJ
437 lib/graph/mip.c \
438 lib/graph/port.c \
439 lib/graph/port.h \
440 lib/graph/query-executor.c \
441 lib/graph/query-executor.h \
442 lib/plugin/plugin.c \
443 lib/plugin/plugin.h \
444 lib/plugin/plugin-so.c \
445 lib/plugin/plugin-so.h \
86ef6105
MJ
446 lib/trace-ir/attributes.c \
447 lib/trace-ir/attributes.h \
448 lib/trace-ir/clock-class.c \
449 lib/trace-ir/clock-class.h \
450 lib/trace-ir/clock-snapshot.c \
451 lib/trace-ir/clock-snapshot.h \
452 lib/trace-ir/event.c \
453 lib/trace-ir/event-class.c \
454 lib/trace-ir/event-class.h \
455 lib/trace-ir/event.h \
456 lib/trace-ir/field.c \
457 lib/trace-ir/field-class.c \
458 lib/trace-ir/field-class.h \
459 lib/trace-ir/field.h \
460 lib/trace-ir/field-path.c \
461 lib/trace-ir/field-path.h \
462 lib/trace-ir/field-wrapper.c \
463 lib/trace-ir/field-wrapper.h \
464 lib/trace-ir/packet.c \
465 lib/trace-ir/packet.h \
466 lib/trace-ir/resolve-field-path.c \
467 lib/trace-ir/resolve-field-path.h \
468 lib/trace-ir/stream.c \
469 lib/trace-ir/stream-class.c \
470 lib/trace-ir/stream-class.h \
471 lib/trace-ir/stream.h \
472 lib/trace-ir/trace.c \
473 lib/trace-ir/trace-class.c \
474 lib/trace-ir/trace-class.h \
475 lib/trace-ir/trace.h \
476 lib/trace-ir/utils.c \
477 lib/trace-ir/utils.h \
478 lib/assert-cond-base.h \
479 lib/assert-cond.h \
480 lib/assert-cond.c \
481 lib/babeltrace2.c \
482 lib/current-thread.c \
483 lib/error.c \
484 lib/error.h \
485 lib/func-status.h \
486 lib/integer-range-set.c \
487 lib/integer-range-set.h \
488 lib/lib-logging.c \
489 lib/logging.c \
490 lib/logging.h \
491 lib/object-pool.c \
492 lib/object-pool.h \
493 lib/object.h \
494 lib/property.h \
495 lib/util.c \
496 lib/value.c \
497 lib/value.h
498
499lib_libbabeltrace2_la_LDFLAGS = \
500 $(AM_LDFLAGS) \
501 $(LT_NO_UNDEFINED) \
502 -version-info $(BABELTRACE_LIBRARY_VERSION)
503
504lib_libbabeltrace2_la_CPPFLAGS = \
505 $(AM_CPPFLAGS) \
506 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
507
508lib_libbabeltrace2_la_LIBADD = \
509 logging/liblogging.la \
ed615696 510 common/libcommon.la \
78d07b86
SM
511 compat/libcompat.la \
512 clock-correlation-validator/libclock-correlation-validator.la
513
514nodist_EXTRA_lib_libbabeltrace2_la_SOURCES = dummy.cpp
86ef6105
MJ
515
516ctf_writer_libbabeltrace2_ctf_writer_la_SOURCES = \
517 ctf-writer/assert-pre.h \
518 ctf-writer/attributes.c \
519 ctf-writer/attributes.h \
520 ctf-writer/clock.c \
521 ctf-writer/clock-class.c \
522 ctf-writer/clock-class.h \
523 ctf-writer/clock.h \
524 ctf-writer/event.c \
525 ctf-writer/event-class.c \
526 ctf-writer/event-class.h \
527 ctf-writer/event.h \
528 ctf-writer/field-path.c \
529 ctf-writer/field-path.h \
530 ctf-writer/fields.c \
531 ctf-writer/fields.h \
532 ctf-writer/field-types.c \
533 ctf-writer/field-types.h \
534 ctf-writer/field-wrapper.c \
535 ctf-writer/field-wrapper.h \
536 ctf-writer/functor.c \
537 ctf-writer/functor.h \
538 ctf-writer/logging.c \
539 ctf-writer/logging.h \
540 ctf-writer/object.c \
541 ctf-writer/object.h \
542 ctf-writer/object-pool.c \
543 ctf-writer/object-pool.h \
544 ctf-writer/resolve.c \
545 ctf-writer/resolve.h \
546 ctf-writer/stream.c \
547 ctf-writer/stream-class.c \
548 ctf-writer/stream-class.h \
549 ctf-writer/stream.h \
550 ctf-writer/trace.c \
551 ctf-writer/trace.h \
552 ctf-writer/utils.c \
553 ctf-writer/utils.h \
554 ctf-writer/validation.c \
555 ctf-writer/validation.h \
556 ctf-writer/values.c \
557 ctf-writer/values.h \
558 ctf-writer/visitor.c \
559 ctf-writer/visitor.h \
560 ctf-writer/writer.c \
561 ctf-writer/writer.h
562
563ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
564 $(AM_LDFLAGS) \
565 $(LT_NO_UNDEFINED) \
566 -version-info $(BABELTRACE_LIBRARY_VERSION)
567
568ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
569 logging/liblogging.la \
ed615696 570 common/libcommon.la \
86ef6105
MJ
571 ctfser/libctfser.la \
572 compat/libcompat.la
573
578e048b 574pkgconfigdir = $(libdir)/pkgconfig
86ef6105
MJ
575pkgconfig_DATA = \
576 babeltrace2-ctf-writer.pc \
577 babeltrace2.pc
578
579#
580# Python plugin provider
581#
582
583if ENABLE_PYTHON_PLUGINS
584pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
585pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
586
587python_plugin_provider_babeltrace2_python_plugin_provider_la_SOURCES = \
588 python-plugin-provider/python-plugin-provider.c \
589 python-plugin-provider/python-plugin-provider.h
590
591python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
592 $(AM_LDFLAGS) \
593 $(LT_NO_UNDEFINED) \
594 -avoid-version -module \
595 $(PYTHON_LDFLAGS)
596
597python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
598 $(AM_CPPFLAGS) \
599 $(PYTHON_INCLUDE)
600
601python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD =
602
603# Link the Python plugin provider library with libbabeltrace2
604# when it's not built-in the babeltrace2 executable.
605if !ENABLE_BUILT_IN_PLUGINS
606python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
607 logging/liblogging.la \
ed615696 608 common/libcommon.la \
86ef6105
MJ
609 py-common/libpy-common.la \
610 lib/libbabeltrace2.la
611endif
612endif # ENABLE_PYTHON_PLUGINS
6244258c
MJ
613
614#
615# Plugins
616#
617
618plugindir = "$(BABELTRACE_PLUGINS_DIR)"
619plugin_LTLIBRARIES = \
620 plugins/ctf/babeltrace-plugin-ctf.la \
621 plugins/text/babeltrace-plugin-text.la \
622 plugins/utils/babeltrace-plugin-utils.la
623
624
625# utils plugin
626plugins_utils_babeltrace_plugin_utils_la_SOURCES = \
627 plugins/utils/counter/counter.c \
628 plugins/utils/counter/counter.h \
629 plugins/utils/dummy/dummy.c \
630 plugins/utils/dummy/dummy.h \
fca1d0f5
PP
631 plugins/utils/muxer/comp.cpp \
632 plugins/utils/muxer/comp.hpp \
633 plugins/utils/muxer/msg-iter.cpp \
634 plugins/utils/muxer/msg-iter.hpp \
635 plugins/utils/muxer/upstream-msg-iter.cpp \
636 plugins/utils/muxer/upstream-msg-iter.hpp \
6244258c
MJ
637 plugins/utils/trimmer/trimmer.c \
638 plugins/utils/trimmer/trimmer.h \
fca1d0f5 639 plugins/utils/plugin.cpp
6244258c
MJ
640
641plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
642 $(AM_LDFLAGS) \
643 $(LT_NO_UNDEFINED) \
644 -avoid-version -module $(LD_NOTEXT)
645
646plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
647 plugins/common/muxing/libmuxing.la
648
649if !ENABLE_BUILT_IN_PLUGINS
650plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
651 lib/libbabeltrace2.la \
ed615696 652 common/libcommon.la \
fca1d0f5 653 cpp-common/vendor/fmt/libfmt.la \
6244258c 654 logging/liblogging.la \
df8863ad
SM
655 plugins/common/param-validation/libparam-validation.la \
656 clock-correlation-validator/libclock-correlation-validator.la
6244258c
MJ
657endif
658
659# ctf plugin
660plugins_ctf_babeltrace_plugin_ctf_la_SOURCES = \
5656cea5
PP
661 plugins/ctf/common/src/bfcr/bfcr.cpp \
662 plugins/ctf/common/src/bfcr/bfcr.hpp \
c942e7a2 663 plugins/ctf/common/src/clk-cls-cfg.hpp \
5656cea5
PP
664 plugins/ctf/common/src/msg-iter/msg-iter.cpp \
665 plugins/ctf/common/src/msg-iter/msg-iter.hpp \
6244258c
MJ
666 plugins/ctf/fs-sink/fs-sink.cpp \
667 plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp \
668 plugins/ctf/fs-sink/fs-sink.hpp \
669 plugins/ctf/fs-sink/fs-sink-stream.cpp \
670 plugins/ctf/fs-sink/fs-sink-stream.hpp \
671 plugins/ctf/fs-sink/fs-sink-trace.cpp \
672 plugins/ctf/fs-sink/fs-sink-trace.hpp \
673 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp \
674 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp \
675 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.cpp \
676 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp \
677 plugins/ctf/fs-src/data-stream-file.cpp \
678 plugins/ctf/fs-src/data-stream-file.hpp \
679 plugins/ctf/fs-src/file.cpp \
680 plugins/ctf/fs-src/file.hpp \
681 plugins/ctf/fs-src/fs.cpp \
682 plugins/ctf/fs-src/fs.hpp \
683 plugins/ctf/fs-src/lttng-index.hpp \
684 plugins/ctf/fs-src/metadata.cpp \
685 plugins/ctf/fs-src/metadata.hpp \
686 plugins/ctf/fs-src/query.cpp \
687 plugins/ctf/fs-src/query.hpp \
688 plugins/ctf/lttng-live/data-stream.cpp \
689 plugins/ctf/lttng-live/data-stream.hpp \
690 plugins/ctf/lttng-live/lttng-live.cpp \
691 plugins/ctf/lttng-live/lttng-live.hpp \
692 plugins/ctf/lttng-live/lttng-viewer-abi.hpp \
693 plugins/ctf/lttng-live/metadata.cpp \
694 plugins/ctf/lttng-live/metadata.hpp \
695 plugins/ctf/lttng-live/viewer-connection.cpp \
696 plugins/ctf/lttng-live/viewer-connection.hpp \
697 plugins/ctf/plugin.cpp
698
699plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
700 $(AM_LDFLAGS) \
701 $(LT_NO_UNDEFINED) \
702 -avoid-version -module $(LD_NOTEXT)
703
704plugins_ctf_babeltrace_plugin_ctf_la_LIBADD = \
705 plugins/ctf/common/metadata/libctf-parser.la \
706 plugins/ctf/common/metadata/libctf-ast.la \
707 plugins/common/param-validation/libparam-validation.la
708
709if BABELTRACE_BUILD_WITH_MINGW
710plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
711endif
712
713if !ENABLE_BUILT_IN_PLUGINS
714plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
715 lib/libbabeltrace2.la \
716 logging/liblogging.la \
717 plugins/common/muxing/libmuxing.la \
ed615696 718 common/libcommon.la \
0f5c5d5c
SM
719 ctfser/libctfser.la \
720 cpp-common/vendor/fmt/libfmt.la
6244258c
MJ
721endif
722
723# text plugin
724plugins_text_babeltrace_plugin_text_la_SOURCES = \
725 plugins/text/details/colors.h \
726 plugins/text/details/details.c \
727 plugins/text/details/details.h \
728 plugins/text/details/obj-lifetime-mgmt.c \
729 plugins/text/details/obj-lifetime-mgmt.h \
730 plugins/text/details/write.c \
731 plugins/text/details/write.h \
732 plugins/text/dmesg/dmesg.c \
733 plugins/text/dmesg/dmesg.h \
734 plugins/text/pretty/pretty.c \
735 plugins/text/pretty/pretty.h \
736 plugins/text/pretty/print.c \
737 plugins/text/plugin.c
738
739plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
740 $(AM_LDFLAGS) \
741 $(LT_NO_UNDEFINED) \
742 -avoid-version -module $(LD_NOTEXT)
743
744plugins_text_babeltrace_plugin_text_la_LIBADD =
745
746if !ENABLE_BUILT_IN_PLUGINS
747plugins_text_babeltrace_plugin_text_la_LIBADD += \
748 lib/libbabeltrace2.la \
ed615696 749 common/libcommon.la \
6244258c
MJ
750 logging/liblogging.la \
751 compat/libcompat.la \
752 plugins/common/param-validation/libparam-validation.la
753endif
754
755# lttng-utils plugin
756if ENABLE_DEBUG_INFO
757plugin_LTLIBRARIES += \
758 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
759
760plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
761 plugins/lttng-utils/plugin.c
762
763plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LDFLAGS = \
764 $(AM_LDFLAGS) \
765 $(LT_NO_UNDEFINED) \
766 -avoid-version -module $(LD_NOTEXT) \
767 $(ELFUTILS_LIBS)
768
769plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
770 plugins/lttng-utils/debug-info/libdebug-info.la
771
772if !ENABLE_BUILT_IN_PLUGINS
773plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
774 lib/libbabeltrace2.la \
ed615696 775 common/libcommon.la \
6244258c
MJ
776 logging/liblogging.la \
777 plugins/common/param-validation/libparam-validation.la
778endif # !ENABLE_BUILT_IN_PLUGINS
779endif # ENABLE_DEBUG_INFO
53118ba6 780
30586bf0
PP
781EXTRA_DIST = \
782 cpp-common/vendor/optional-lite/optional.hpp.license \
a19a1879
MJ
783 cpp-common/vendor/span-lite/span.hpp.license \
784 cpp-common/vendor/string-view-lite/string_view.hpp.license
This page took 0.098977 seconds and 4 git commands to generate.