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