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