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