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