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