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