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