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