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