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