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