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