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