cpp-common/bt2: rename `bt2::SharedObj` -> `bt2::SharedObject`
[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.hpp \
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 \
25 cpp-common/bt2/internal/utils.hpp \
26 cpp-common/bt2/logging.hpp \
27 cpp-common/bt2/message.hpp \
28 cpp-common/bt2/shared-object.hpp \
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
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
62 version_verbose = $(version_verbose_@AM_V@)
63 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
64 version_verbose_0 = @echo " GEN " $@;
65
66 common/version.i:
67 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
68
69 dist_noinst_SCRIPTS = gen-version-i.sh
70
71 # Ensure version.i is generated before any code is built.
72 BUILT_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
80 CLEANFILES = 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 ##
86 DISTCLEANFILES = common/version.i
87
88 #
89 # Convenience libraries
90 #
91
92 noinst_LTLIBRARIES = \
93 argpar/libargpar.la \
94 autodisc/libautodisc.la \
95 common/libcommon.la \
96 compat/libcompat.la \
97 ctfser/libctfser.la \
98 fd-cache/libfd-cache.la \
99 logging/liblogging.la \
100 param-parse/libparam-parse.la \
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 \
105 string-format/libstring-format.la
106
107
108 argpar_libargpar_la_SOURCES = \
109 argpar/argpar.c \
110 argpar/argpar.h
111
112 autodisc_libautodisc_la_SOURCES = \
113 autodisc/autodisc.c \
114 autodisc/autodisc.h
115
116 common_libcommon_la_SOURCES = \
117 common/align.h \
118 common/assert.c \
119 common/assert.h \
120 common/common.c \
121 common/common.h \
122 common/list.h \
123 common/macros.h \
124 common/mmap-align.h \
125 common/safe.h \
126 common/uuid.c \
127 common/uuid.h \
128 common/version.h \
129 common/version.i
130
131 common_libcommon_la_CPPFLAGS = \
132 $(AM_CPPFLAGS) \
133 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
134
135 compat_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
153 ctfser_libctfser_la_SOURCES = \
154 ctfser/ctfser.c \
155 ctfser/ctfser.h
156
157 fd_cache_libfd_cache_la_SOURCES = \
158 fd-cache/fd-cache.c \
159 fd-cache/fd-cache.h
160
161 logging_liblogging_la_SOURCES = \
162 logging/comp-logging.h \
163 logging/log.c \
164 logging/log.h
165
166 param_parse_libparam_parse_la_SOURCES = \
167 param-parse/param-parse.c \
168 param-parse/param-parse.h
169
170 string_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
176 plugins_common_muxing_libmuxing_la_SOURCES = \
177 plugins/common/muxing/muxing.c \
178 plugins/common/muxing/muxing.h
179
180 plugins_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
189 AM_YFLAGS = \
190 -t -d -v -Wno-yacc
191
192 plugins_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_.
198 plugins_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.
204 plugins_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
211 plugins_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
243 if BABELTRACE_BUILD_WITH_MINGW
244 plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
245 endif
246
247 BUILT_SOURCES += \
248 plugins/ctf/common/metadata/parser.hpp
249
250 ALL_LOCAL =
251
252 if HAVE_BISON
253 # We have bison: we can clean the generated parser files
254 CLEANFILES += \
255 plugins/ctf/common/metadata/parser.cpp \
256 plugins/ctf/common/metadata/parser.hpp \
257 plugins/ctf/common/metadata/parser.output
258 else # 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
261 plugins/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
266 ALL_LOCAL += \
267 plugins/ctf/common/metadata/parser.cpp \
268 plugins/ctf/common/metadata/parser.hpp
269 endif # HAVE_BISON
270
271 if HAVE_FLEX
272 # We have flex: we can clean the generated lexer files
273 CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
274 else # 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
277 plugins/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
282 ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
283 endif # HAVE_FLEX
284
285 all-local: $(ALL_LOCAL)
286
287 if ENABLE_PYTHON_COMMON_DEPS
288 noinst_LTLIBRARIES += py-common/libpy-common.la
289
290 py_common_libpy_common_la_SOURCES = \
291 py-common/py-common.c \
292 py-common/py-common.h
293
294 py_common_libpy_common_la_CPPFLAGS = \
295 $(AM_CPPFLAGS) \
296 $(PYTHON_INCLUDE)
297
298 endif # ENABLE_PYTHON_COMMON_DEPS
299
300 if ENABLE_DEBUG_INFO
301 noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
302
303 plugins_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
323 plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
324 fd-cache/libfd-cache.la
325
326 endif # ENABLE_DEBUG_INFO
327
328
329 #
330 # Public libraries
331 #
332
333 lib_LTLIBRARIES = \
334 ctf-writer/libbabeltrace2-ctf-writer.la \
335 lib/libbabeltrace2.la
336
337 lib_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
438 lib_libbabeltrace2_la_LDFLAGS = \
439 $(AM_LDFLAGS) \
440 $(LT_NO_UNDEFINED) \
441 -version-info $(BABELTRACE_LIBRARY_VERSION)
442
443 lib_libbabeltrace2_la_CPPFLAGS = \
444 $(AM_CPPFLAGS) \
445 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
446
447 lib_libbabeltrace2_la_LIBADD = \
448 logging/liblogging.la \
449 common/libcommon.la \
450 compat/libcompat.la
451
452 ctf_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
499 ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
500 $(AM_LDFLAGS) \
501 $(LT_NO_UNDEFINED) \
502 -version-info $(BABELTRACE_LIBRARY_VERSION)
503
504 ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
505 logging/liblogging.la \
506 common/libcommon.la \
507 ctfser/libctfser.la \
508 compat/libcompat.la
509
510 pkgconfigdir = $(libdir)/pkgconfig
511 pkgconfig_DATA = \
512 babeltrace2-ctf-writer.pc \
513 babeltrace2.pc
514
515 #
516 # Python plugin provider
517 #
518
519 if ENABLE_PYTHON_PLUGINS
520 pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
521 pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
522
523 python_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
527 python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
528 $(AM_LDFLAGS) \
529 $(LT_NO_UNDEFINED) \
530 -avoid-version -module \
531 $(PYTHON_LDFLAGS)
532
533 python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
534 $(AM_CPPFLAGS) \
535 $(PYTHON_INCLUDE)
536
537 python_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.
541 if !ENABLE_BUILT_IN_PLUGINS
542 python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
543 logging/liblogging.la \
544 common/libcommon.la \
545 py-common/libpy-common.la \
546 lib/libbabeltrace2.la
547 endif
548 endif # ENABLE_PYTHON_PLUGINS
549
550 #
551 # Plugins
552 #
553
554 plugindir = "$(BABELTRACE_PLUGINS_DIR)"
555 plugin_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
562 plugins_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
573 plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
574 $(AM_LDFLAGS) \
575 $(LT_NO_UNDEFINED) \
576 -avoid-version -module $(LD_NOTEXT)
577
578 plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
579 plugins/common/muxing/libmuxing.la
580
581 if !ENABLE_BUILT_IN_PLUGINS
582 plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
583 lib/libbabeltrace2.la \
584 common/libcommon.la \
585 logging/liblogging.la \
586 plugins/common/param-validation/libparam-validation.la
587 endif
588
589 # ctf plugin
590 plugins_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
629 plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
630 $(AM_LDFLAGS) \
631 $(LT_NO_UNDEFINED) \
632 -avoid-version -module $(LD_NOTEXT)
633
634 plugins_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
639 if BABELTRACE_BUILD_WITH_MINGW
640 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
641 endif
642
643 if !ENABLE_BUILT_IN_PLUGINS
644 plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
645 lib/libbabeltrace2.la \
646 logging/liblogging.la \
647 plugins/common/muxing/libmuxing.la \
648 common/libcommon.la \
649 ctfser/libctfser.la
650 endif
651
652 # text plugin
653 plugins_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
668 plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
669 $(AM_LDFLAGS) \
670 $(LT_NO_UNDEFINED) \
671 -avoid-version -module $(LD_NOTEXT)
672
673 plugins_text_babeltrace_plugin_text_la_LIBADD =
674
675 if !ENABLE_BUILT_IN_PLUGINS
676 plugins_text_babeltrace_plugin_text_la_LIBADD += \
677 lib/libbabeltrace2.la \
678 common/libcommon.la \
679 logging/liblogging.la \
680 compat/libcompat.la \
681 plugins/common/param-validation/libparam-validation.la
682 endif
683
684 # lttng-utils plugin
685 if ENABLE_DEBUG_INFO
686 plugin_LTLIBRARIES += \
687 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
688
689 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
690 plugins/lttng-utils/plugin.c
691
692 plugins_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
698 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
699 plugins/lttng-utils/debug-info/libdebug-info.la
700
701 if !ENABLE_BUILT_IN_PLUGINS
702 plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
703 lib/libbabeltrace2.la \
704 common/libcommon.la \
705 logging/liblogging.la \
706 plugins/common/param-validation/libparam-validation.la
707 endif # !ENABLE_BUILT_IN_PLUGINS
708 endif # ENABLE_DEBUG_INFO
709
710 EXTRA_DIST = cpp-common/optional.hpp.license
This page took 0.043556 seconds and 5 git commands to generate.