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