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