cpp-common/bt2: add `plugin-dev.hpp`
[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/shared-object.hpp \
33 cpp-common/bt2/raw-value-proxy.hpp \
34 cpp-common/bt2/plugin-dev.hpp \
35 cpp-common/bt2/private-query-executor.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/endian.hpp \
47 cpp-common/bt2c/exc.hpp \
48 cpp-common/bt2c/glib-up.hpp \
49 cpp-common/bt2c/lib-str.hpp \
50 cpp-common/bt2c/libc-up.hpp \
51 cpp-common/bt2c/logging.hpp \
52 cpp-common/bt2c/read-fixed-len-int.hpp \
53 cpp-common/bt2c/safe-ops.hpp \
54 cpp-common/bt2c/std-int.hpp \
55 cpp-common/bt2c/uuid-view.hpp \
56 cpp-common/bt2c/uuid.hpp \
57 cpp-common/bt2c/vector.hpp \
58 cpp-common/bt2s/make-unique.hpp \
59 cpp-common/bt2s/optional.hpp \
60 cpp-common/bt2s/string-view.hpp \
61 cpp-common/vendor/nlohmann/json.hpp \
62 cpp-common/vendor/optional-lite/optional.hpp \
63 cpp-common/vendor/string_view-standalone/string_view.hpp
64
65 ## This target generates an include file that contains the git version
66 ## string of the current branch, it must be continuously updated when
67 ## we build in the git repo and shipped in dist tarballs to reflect the
68 ## status of the tree when it was generated. If the tree is clean and
69 ## the current commit is a tag starting with "v", consider this a
70 ## release version and set an empty git version.
71
72 version_verbose = $(version_verbose_@AM_V@)
73 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
74 version_verbose_0 = @echo " GEN " $@;
75
76 common/version.i:
77 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
78
79 dist_noinst_SCRIPTS = gen-version-i.sh
80
81 # Ensure version.i is generated before any code is built.
82 BUILT_SOURCES = common/version.i
83
84 ##
85 ## version.i is defined as a .PHONY target even if it's a real file,
86 ## we want the target to be re-run on every make.
87 ##
88 .PHONY: common/version.i
89
90 CLEANFILES = common/version.i.tmp
91
92 ##
93 ## Only clean "version.i" on dist-clean, we need to keep it on regular
94 ## clean when it's part of a dist tarball.
95 ##
96 DISTCLEANFILES = common/version.i
97
98 #
99 # Convenience libraries
100 #
101
102 noinst_LTLIBRARIES = \
103 argpar/libargpar.la \
104 autodisc/libautodisc.la \
105 common/libcommon.la \
106 compat/libcompat.la \
107 cpp-common/vendor/fmt/libfmt.la \
108 ctfser/libctfser.la \
109 fd-cache/libfd-cache.la \
110 logging/liblogging.la \
111 param-parse/libparam-parse.la \
112 plugins/common/muxing/libmuxing.la \
113 plugins/common/param-validation/libparam-validation.la \
114 plugins/ctf/common/metadata/libctf-ast.la \
115 plugins/ctf/common/metadata/libctf-parser.la \
116 string-format/libstring-format.la
117
118
119 argpar_libargpar_la_SOURCES = \
120 argpar/argpar.c \
121 argpar/argpar.h
122
123 autodisc_libautodisc_la_SOURCES = \
124 autodisc/autodisc.c \
125 autodisc/autodisc.h
126
127 common_libcommon_la_SOURCES = \
128 common/align.h \
129 common/assert.c \
130 common/assert.h \
131 common/common.c \
132 common/common.h \
133 common/list.h \
134 common/macros.h \
135 common/mmap-align.h \
136 common/safe.h \
137 common/uuid.c \
138 common/uuid.h \
139 common/version.h \
140 common/version.i
141
142 common_libcommon_la_CPPFLAGS = \
143 $(AM_CPPFLAGS) \
144 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
145
146 compat_libcompat_la_SOURCES = \
147 compat/bitfield.h \
148 compat/compiler.h \
149 compat/endian.h \
150 compat/fcntl.h \
151 compat/glib.h \
152 compat/limits.h \
153 compat/memstream.h \
154 compat/mman.c \
155 compat/mman.h \
156 compat/socket.h \
157 compat/stdio.h \
158 compat/stdlib.h \
159 compat/string.h \
160 compat/time.h \
161 compat/unistd.h \
162 compat/utc.h
163
164 cpp_common_vendor_fmt_libfmt_la_SOURCES = \
165 cpp-common/vendor/fmt/args.h \
166 cpp-common/vendor/fmt/chrono.h \
167 cpp-common/vendor/fmt/color.h \
168 cpp-common/vendor/fmt/compile.h \
169 cpp-common/vendor/fmt/core.h \
170 cpp-common/vendor/fmt/format-inl.h \
171 cpp-common/vendor/fmt/format.cc \
172 cpp-common/vendor/fmt/format.h \
173 cpp-common/vendor/fmt/os.cc \
174 cpp-common/vendor/fmt/os.h \
175 cpp-common/vendor/fmt/ostream.h \
176 cpp-common/vendor/fmt/printf.h \
177 cpp-common/vendor/fmt/ranges.h \
178 cpp-common/vendor/fmt/std.h \
179 cpp-common/vendor/fmt/xchar.h
180
181 ctfser_libctfser_la_SOURCES = \
182 ctfser/ctfser.c \
183 ctfser/ctfser.h
184
185 fd_cache_libfd_cache_la_SOURCES = \
186 fd-cache/fd-cache.c \
187 fd-cache/fd-cache.h
188
189 logging_liblogging_la_SOURCES = \
190 logging/comp-logging.h \
191 logging/log-api.c \
192 logging/log-api.h \
193 logging/log.h
194
195 param_parse_libparam_parse_la_SOURCES = \
196 param-parse/param-parse.c \
197 param-parse/param-parse.h
198
199 string_format_libstring_format_la_SOURCES = \
200 string-format/format-plugin-comp-cls-name.c \
201 string-format/format-plugin-comp-cls-name.h \
202 string-format/format-error.c \
203 string-format/format-error.h
204
205 plugins_common_muxing_libmuxing_la_SOURCES = \
206 plugins/common/muxing/muxing.c \
207 plugins/common/muxing/muxing.h
208
209 plugins_common_param_validation_libparam_validation_la_SOURCES = \
210 plugins/common/param-validation/param-validation.c \
211 plugins/common/param-validation/param-validation.h
212
213 # Set flags for the Bison based metadata parser
214 # -t : instrument the parser
215 # -d : produce a header
216 # -v : verbose
217 # -Wno-yacc : disable POSIX Yacc incompatibilities warnings
218 AM_YFLAGS = \
219 -t -d -v -Wno-yacc
220
221 plugins_ctf_common_metadata_libctf_parser_la_SOURCES = \
222 plugins/ctf/common/metadata/lexer.lpp \
223 plugins/ctf/common/metadata/parser.ypp \
224 plugins/ctf/common/metadata/objstack.cpp
225
226 # scanner-symbols.h is included to prefix generated yy_* symbols with bt_.
227 plugins_ctf_common_metadata_libctf_parser_la_CPPFLAGS = \
228 $(AM_CPPFLAGS) \
229 -include $(srcdir)/plugins/ctf/common/metadata/scanner-symbols.hpp
230
231 # This library contains (mostly) generated code, silence some warnings that it
232 # produces.
233 plugins_ctf_common_metadata_libctf_parser_la_CXXFLAGS = \
234 $(AM_CXXFLAGS) \
235 -Wno-unused-function \
236 -Wno-null-dereference \
237 -Wno-missing-field-initializers \
238 -Wno-unused-parameter
239
240 plugins_ctf_common_metadata_libctf_ast_la_SOURCES = \
241 plugins/ctf/common/metadata/visitor-generate-ir.cpp \
242 plugins/ctf/common/metadata/visitor-semantic-validator.cpp \
243 plugins/ctf/common/metadata/visitor-parent-links.cpp \
244 plugins/ctf/common/metadata/ast.hpp \
245 plugins/ctf/common/metadata/objstack.hpp \
246 plugins/ctf/common/metadata/parser.hpp \
247 plugins/ctf/common/metadata/parser-wrap.hpp \
248 plugins/ctf/common/metadata/scanner.hpp \
249 plugins/ctf/common/metadata/scanner-symbols.hpp \
250 plugins/ctf/common/metadata/decoder.cpp \
251 plugins/ctf/common/metadata/decoder.hpp \
252 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.cpp \
253 plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.hpp \
254 plugins/ctf/common/metadata/logging.cpp \
255 plugins/ctf/common/metadata/logging.hpp \
256 plugins/ctf/common/metadata/ctf-meta.hpp \
257 plugins/ctf/common/metadata/ctf-meta-visitors.hpp \
258 plugins/ctf/common/metadata/ctf-meta-validate.cpp \
259 plugins/ctf/common/metadata/ctf-meta-update-meanings.cpp \
260 plugins/ctf/common/metadata/ctf-meta-update-in-ir.cpp \
261 plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.cpp \
262 plugins/ctf/common/metadata/ctf-meta-update-text-array-sequence.cpp \
263 plugins/ctf/common/metadata/ctf-meta-update-alignments.cpp \
264 plugins/ctf/common/metadata/ctf-meta-update-value-storing-indexes.cpp \
265 plugins/ctf/common/metadata/ctf-meta-update-stream-class-config.cpp \
266 plugins/ctf/common/metadata/ctf-meta-warn-meaningless-header-fields.cpp \
267 plugins/ctf/common/metadata/ctf-meta-translate.cpp \
268 plugins/ctf/common/metadata/ctf-meta-resolve.cpp \
269 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.cpp \
270 plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.hpp
271
272 if BABELTRACE_BUILD_WITH_MINGW
273 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
274 endif
275
276 BUILT_SOURCES += \
277 plugins/ctf/common/metadata/parser.hpp
278
279 ALL_LOCAL =
280
281 if HAVE_BISON
282 # We have bison: we can clean the generated parser files
283 CLEANFILES += \
284 plugins/ctf/common/metadata/parser.cpp \
285 plugins/ctf/common/metadata/parser.hpp \
286 plugins/ctf/common/metadata/parser.output
287 else # HAVE_BISON
288 # Create target used to stop the build if we want to build the parser,
289 # but we don't have the necessary tool to do so
290 plugins/ctf/common/metadata/parser.cpp plugins/ctf/common/metadata/parser.hpp: plugins/ctf/common/metadata/parser.ypp
291 @echo "Error: Cannot build target because bison is missing."
292 @echo "Make sure bison is installed and run the configure script again."
293 @false
294
295 ALL_LOCAL += \
296 plugins/ctf/common/metadata/parser.cpp \
297 plugins/ctf/common/metadata/parser.hpp
298 endif # HAVE_BISON
299
300 if HAVE_FLEX
301 # We have flex: we can clean the generated lexer files
302 CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
303 else # HAVE_FLEX
304 # Create target used to stop the build if we want to build the lexer,
305 # but we don't have the necessary tool to do so
306 plugins/ctf/common/metadata/lexer.cpp: plugins/ctf/common/metadata/lexer.lpp
307 @echo "Error: Cannot build target because flex is missing."
308 @echo "Make sure flex is installed and run the configure script again."
309 @false
310
311 ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
312 endif # HAVE_FLEX
313
314 all-local: $(ALL_LOCAL)
315
316 if ENABLE_PYTHON_COMMON_DEPS
317 noinst_LTLIBRARIES += py-common/libpy-common.la
318
319 py_common_libpy_common_la_SOURCES = \
320 py-common/py-common.c \
321 py-common/py-common.h
322
323 py_common_libpy_common_la_CPPFLAGS = \
324 $(AM_CPPFLAGS) \
325 $(PYTHON_INCLUDE)
326
327 endif # ENABLE_PYTHON_COMMON_DEPS
328
329 if ENABLE_DEBUG_INFO
330 noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
331
332 plugins_lttng_utils_debug_info_libdebug_info_la_SOURCES = \
333 plugins/lttng-utils/debug-info/bin-info.c \
334 plugins/lttng-utils/debug-info/bin-info.h \
335 plugins/lttng-utils/debug-info/crc32.c \
336 plugins/lttng-utils/debug-info/crc32.h \
337 plugins/lttng-utils/debug-info/debug-info.c \
338 plugins/lttng-utils/debug-info/debug-info.h \
339 plugins/lttng-utils/debug-info/dwarf.c \
340 plugins/lttng-utils/debug-info/dwarf.h \
341 plugins/lttng-utils/debug-info/trace-ir-data-copy.c \
342 plugins/lttng-utils/debug-info/trace-ir-data-copy.h \
343 plugins/lttng-utils/debug-info/trace-ir-mapping.c \
344 plugins/lttng-utils/debug-info/trace-ir-mapping.h \
345 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c \
346 plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h \
347 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c \
348 plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h \
349 plugins/lttng-utils/debug-info/utils.c \
350 plugins/lttng-utils/debug-info/utils.h
351
352 plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
353 fd-cache/libfd-cache.la
354
355 endif # ENABLE_DEBUG_INFO
356
357
358 #
359 # Public libraries
360 #
361
362 lib_LTLIBRARIES = \
363 ctf-writer/libbabeltrace2-ctf-writer.la \
364 lib/libbabeltrace2.la
365
366 lib_libbabeltrace2_la_SOURCES = \
367 lib/graph/message/discarded-items.c \
368 lib/graph/message/discarded-items.h \
369 lib/graph/message/event.c \
370 lib/graph/message/event.h \
371 lib/graph/message-iterator-class.c \
372 lib/graph/message-iterator-class.h \
373 lib/graph/message/iterator.h \
374 lib/graph/message/message.c \
375 lib/graph/message/message.h \
376 lib/graph/message/message-iterator-inactivity.c \
377 lib/graph/message/message-iterator-inactivity.h \
378 lib/graph/message/packet.c \
379 lib/graph/message/packet.h \
380 lib/graph/message/stream.c \
381 lib/graph/message/stream.h \
382 lib/graph/component.c \
383 lib/graph/component-class.c \
384 lib/graph/component-class.h \
385 lib/graph/component-class-sink-simple.c \
386 lib/graph/component-class-sink-simple.h \
387 lib/graph/component-descriptor-set.c \
388 lib/graph/component-descriptor-set.h \
389 lib/graph/component-filter.c \
390 lib/graph/component-filter.h \
391 lib/graph/component.h \
392 lib/graph/component-sink.c \
393 lib/graph/component-sink.h \
394 lib/graph/component-source.c \
395 lib/graph/component-source.h \
396 lib/graph/connection.c \
397 lib/graph/connection.h \
398 lib/graph/graph.c \
399 lib/graph/graph.h \
400 lib/graph/interrupter.c \
401 lib/graph/interrupter.h \
402 lib/graph/iterator.c \
403 lib/graph/mip.c \
404 lib/graph/port.c \
405 lib/graph/port.h \
406 lib/graph/query-executor.c \
407 lib/graph/query-executor.h \
408 lib/plugin/plugin.c \
409 lib/plugin/plugin.h \
410 lib/plugin/plugin-so.c \
411 lib/plugin/plugin-so.h \
412 lib/prio-heap/prio-heap.c \
413 lib/prio-heap/prio-heap.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/muxer.c \
597 plugins/utils/muxer/muxer.h \
598 plugins/utils/trimmer/trimmer.c \
599 plugins/utils/trimmer/trimmer.h \
600 plugins/utils/plugin.c
601
602 plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
603 $(AM_LDFLAGS) \
604 $(LT_NO_UNDEFINED) \
605 -avoid-version -module $(LD_NOTEXT)
606
607 plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
608 plugins/common/muxing/libmuxing.la
609
610 if !ENABLE_BUILT_IN_PLUGINS
611 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
612 lib/libbabeltrace2.la \
613 common/libcommon.la \
614 logging/liblogging.la \
615 plugins/common/param-validation/libparam-validation.la
616 endif
617
618 # ctf plugin
619 plugins_ctf_babeltrace_plugin_ctf_la_SOURCES = \
620 plugins/ctf/common/bfcr/bfcr.cpp \
621 plugins/ctf/common/bfcr/bfcr.hpp \
622 plugins/ctf/common/msg-iter/msg-iter.cpp \
623 plugins/ctf/common/msg-iter/msg-iter.hpp \
624 plugins/ctf/common/print.hpp \
625 plugins/ctf/fs-sink/fs-sink.cpp \
626 plugins/ctf/fs-sink/fs-sink-ctf-meta.hpp \
627 plugins/ctf/fs-sink/fs-sink.hpp \
628 plugins/ctf/fs-sink/fs-sink-stream.cpp \
629 plugins/ctf/fs-sink/fs-sink-stream.hpp \
630 plugins/ctf/fs-sink/fs-sink-trace.cpp \
631 plugins/ctf/fs-sink/fs-sink-trace.hpp \
632 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp \
633 plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.hpp \
634 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.cpp \
635 plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.hpp \
636 plugins/ctf/fs-src/data-stream-file.cpp \
637 plugins/ctf/fs-src/data-stream-file.hpp \
638 plugins/ctf/fs-src/file.cpp \
639 plugins/ctf/fs-src/file.hpp \
640 plugins/ctf/fs-src/fs.cpp \
641 plugins/ctf/fs-src/fs.hpp \
642 plugins/ctf/fs-src/lttng-index.hpp \
643 plugins/ctf/fs-src/metadata.cpp \
644 plugins/ctf/fs-src/metadata.hpp \
645 plugins/ctf/fs-src/query.cpp \
646 plugins/ctf/fs-src/query.hpp \
647 plugins/ctf/lttng-live/data-stream.cpp \
648 plugins/ctf/lttng-live/data-stream.hpp \
649 plugins/ctf/lttng-live/lttng-live.cpp \
650 plugins/ctf/lttng-live/lttng-live.hpp \
651 plugins/ctf/lttng-live/lttng-viewer-abi.hpp \
652 plugins/ctf/lttng-live/metadata.cpp \
653 plugins/ctf/lttng-live/metadata.hpp \
654 plugins/ctf/lttng-live/viewer-connection.cpp \
655 plugins/ctf/lttng-live/viewer-connection.hpp \
656 plugins/ctf/plugin.cpp
657
658 plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
659 $(AM_LDFLAGS) \
660 $(LT_NO_UNDEFINED) \
661 -avoid-version -module $(LD_NOTEXT)
662
663 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD = \
664 plugins/ctf/common/metadata/libctf-parser.la \
665 plugins/ctf/common/metadata/libctf-ast.la \
666 plugins/common/param-validation/libparam-validation.la
667
668 if BABELTRACE_BUILD_WITH_MINGW
669 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
670 endif
671
672 if !ENABLE_BUILT_IN_PLUGINS
673 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
674 lib/libbabeltrace2.la \
675 logging/liblogging.la \
676 plugins/common/muxing/libmuxing.la \
677 common/libcommon.la \
678 ctfser/libctfser.la
679 endif
680
681 # text plugin
682 plugins_text_babeltrace_plugin_text_la_SOURCES = \
683 plugins/text/details/colors.h \
684 plugins/text/details/details.c \
685 plugins/text/details/details.h \
686 plugins/text/details/obj-lifetime-mgmt.c \
687 plugins/text/details/obj-lifetime-mgmt.h \
688 plugins/text/details/write.c \
689 plugins/text/details/write.h \
690 plugins/text/dmesg/dmesg.c \
691 plugins/text/dmesg/dmesg.h \
692 plugins/text/pretty/pretty.c \
693 plugins/text/pretty/pretty.h \
694 plugins/text/pretty/print.c \
695 plugins/text/plugin.c
696
697 plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
698 $(AM_LDFLAGS) \
699 $(LT_NO_UNDEFINED) \
700 -avoid-version -module $(LD_NOTEXT)
701
702 plugins_text_babeltrace_plugin_text_la_LIBADD =
703
704 if !ENABLE_BUILT_IN_PLUGINS
705 plugins_text_babeltrace_plugin_text_la_LIBADD += \
706 lib/libbabeltrace2.la \
707 common/libcommon.la \
708 logging/liblogging.la \
709 compat/libcompat.la \
710 plugins/common/param-validation/libparam-validation.la
711 endif
712
713 # lttng-utils plugin
714 if ENABLE_DEBUG_INFO
715 plugin_LTLIBRARIES += \
716 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
717
718 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
719 plugins/lttng-utils/plugin.c
720
721 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LDFLAGS = \
722 $(AM_LDFLAGS) \
723 $(LT_NO_UNDEFINED) \
724 -avoid-version -module $(LD_NOTEXT) \
725 $(ELFUTILS_LIBS)
726
727 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
728 plugins/lttng-utils/debug-info/libdebug-info.la
729
730 if !ENABLE_BUILT_IN_PLUGINS
731 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
732 lib/libbabeltrace2.la \
733 common/libcommon.la \
734 logging/liblogging.la \
735 plugins/common/param-validation/libparam-validation.la
736 endif # !ENABLE_BUILT_IN_PLUGINS
737 endif # ENABLE_DEBUG_INFO
738
739 EXTRA_DIST = cpp-common/optional.hpp.license
This page took 0.045549 seconds and 5 git commands to generate.