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