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