cpp-common: remove `cfg-*.hpp` and `log-cfg.hpp`
[babeltrace.git] / src / Makefile.am
CommitLineData
53118ba6 1# SPDX-FileCopyrightText: 2019-2023 EfficiOS, Inc.
0235b0db
MJ
2# SPDX-License-Identifier: MIT
3
ed615696
MJ
4# Build the current dir containing the library and plugins before the cli and
5# bindings.
578e048b 6SUBDIRS = \
86ef6105 7 . \
6244258c
MJ
8 cli
9
10if ENABLE_PYTHON_BINDINGS
11SUBDIRS += bindings/python/bt2
12endif
578e048b 13
86ef6105 14noinst_HEADERS = \
56862ee2 15 cpp-common/bt2/borrowed-object-iterator.hpp \
3b1517b9 16 cpp-common/bt2/borrowed-object-proxy.hpp \
0d218157 17 cpp-common/bt2/borrowed-object.hpp \
86ef6105
MJ
18 cpp-common/bt2/clock-class.hpp \
19 cpp-common/bt2/clock-snapshot.hpp \
7bdf11a1 20 cpp-common/bt2/component-port.hpp \
86ef6105
MJ
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 \
86ef6105
MJ
27 cpp-common/bt2/internal/utils.hpp \
28 cpp-common/bt2/logging.hpp \
736675a4 29 cpp-common/bt2/message-array.hpp \
d9a27df8 30 cpp-common/bt2/message-iterator.hpp \
86ef6105 31 cpp-common/bt2/message.hpp \
7f5cdaf0 32 cpp-common/bt2/shared-object.hpp \
b3f060ed 33 cpp-common/bt2/raw-value-proxy.hpp \
e2a8620d 34 cpp-common/bt2/private-query-executor.hpp \
c83761b9 35 cpp-common/bt2/self-component-class.hpp \
b6f09a6b 36 cpp-common/bt2/self-component-port.hpp \
47cd0d7c 37 cpp-common/bt2/self-message-iterator-configuration.hpp \
73b3ea14 38 cpp-common/bt2/self-message-iterator.hpp \
86ef6105
MJ
39 cpp-common/bt2/trace-ir.hpp \
40 cpp-common/bt2/type-traits.hpp \
41 cpp-common/bt2/value.hpp \
87fc9c82 42 cpp-common/bt2/wrap.hpp \
86ef6105 43 cpp-common/align.hpp \
86ef6105
MJ
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 \
86ef6105
MJ
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
ed615696
MJ
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
67version_verbose = $(version_verbose_@AM_V@)
68version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
69version_verbose_0 = @echo " GEN " $@;
70
71common/version.i:
72 $(version_verbose)GREP=$(GREP) SED=$(SED) TOP_SRCDIR="$(top_srcdir)" $(SHELL) $(srcdir)/gen-version-i.sh
73
74dist_noinst_SCRIPTS = gen-version-i.sh
75
76# Ensure version.i is generated before any code is built.
77BUILT_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
85CLEANFILES = 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##
91DISTCLEANFILES = common/version.i
92
86ef6105
MJ
93#
94# Convenience libraries
95#
96
97noinst_LTLIBRARIES = \
98 argpar/libargpar.la \
99 autodisc/libautodisc.la \
ed615696 100 common/libcommon.la \
86ef6105
MJ
101 compat/libcompat.la \
102 ctfser/libctfser.la \
103 fd-cache/libfd-cache.la \
104 logging/liblogging.la \
105 param-parse/libparam-parse.la \
6244258c
MJ
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 \
86ef6105
MJ
110 string-format/libstring-format.la
111
ed615696 112
86ef6105
MJ
113argpar_libargpar_la_SOURCES = \
114 argpar/argpar.c \
115 argpar/argpar.h
116
117autodisc_libautodisc_la_SOURCES = \
118 autodisc/autodisc.c \
119 autodisc/autodisc.h
120
ed615696 121common_libcommon_la_SOURCES = \
a0bc1faf 122 common/align.h \
ed615696
MJ
123 common/assert.c \
124 common/assert.h \
125 common/common.c \
126 common/common.h \
a0bc1faf
SM
127 common/list.h \
128 common/macros.h \
129 common/mmap-align.h \
130 common/safe.h \
ed615696 131 common/uuid.c \
a0bc1faf
SM
132 common/uuid.h \
133 common/version.h \
134 common/version.i
ed615696
MJ
135
136common_libcommon_la_CPPFLAGS = \
137 $(AM_CPPFLAGS) \
138 -DBABELTRACE_PLUGINS_DIR=\"$(BABELTRACE_PLUGINS_DIR)\"
139
86ef6105
MJ
140compat_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
158ctfser_libctfser_la_SOURCES = \
159 ctfser/ctfser.c \
160 ctfser/ctfser.h
161
162fd_cache_libfd_cache_la_SOURCES = \
163 fd-cache/fd-cache.c \
164 fd-cache/fd-cache.h
165
166logging_liblogging_la_SOURCES = \
167 logging/comp-logging.h \
168 logging/log.c \
169 logging/log.h
170
171param_parse_libparam_parse_la_SOURCES = \
172 param-parse/param-parse.c \
173 param-parse/param-parse.h
174
175string_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
6244258c
MJ
181plugins_common_muxing_libmuxing_la_SOURCES = \
182 plugins/common/muxing/muxing.c \
183 plugins/common/muxing/muxing.h
184
185plugins_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
194AM_YFLAGS = \
195 -t -d -v -Wno-yacc
196
197plugins_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_.
203plugins_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.
209plugins_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
216plugins_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
248if BABELTRACE_BUILD_WITH_MINGW
249plugins_ctf_common_metadata_libctf_ast_la_LIBADD = -lintl -liconv -lole32
250endif
251
ed615696 252BUILT_SOURCES += \
6244258c
MJ
253 plugins/ctf/common/metadata/parser.hpp
254
6244258c
MJ
255ALL_LOCAL =
256
257if HAVE_BISON
258# We have bison: we can clean the generated parser files
259CLEANFILES += \
260 plugins/ctf/common/metadata/parser.cpp \
261 plugins/ctf/common/metadata/parser.hpp \
262 plugins/ctf/common/metadata/parser.output
263else # 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
266plugins/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
271ALL_LOCAL += \
272 plugins/ctf/common/metadata/parser.cpp \
273 plugins/ctf/common/metadata/parser.hpp
274endif # HAVE_BISON
275
276if HAVE_FLEX
277# We have flex: we can clean the generated lexer files
278CLEANFILES += plugins/ctf/common/metadata/lexer.cpp
279else # 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
282plugins/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
287ALL_LOCAL += plugins/ctf/common/metadata/lexer.cpp
288endif # HAVE_FLEX
289
290all-local: $(ALL_LOCAL)
291
86ef6105
MJ
292if ENABLE_PYTHON_COMMON_DEPS
293noinst_LTLIBRARIES += py-common/libpy-common.la
294
295py_common_libpy_common_la_SOURCES = \
296 py-common/py-common.c \
297 py-common/py-common.h
298
299py_common_libpy_common_la_CPPFLAGS = \
300 $(AM_CPPFLAGS) \
301 $(PYTHON_INCLUDE)
302
303endif # ENABLE_PYTHON_COMMON_DEPS
304
6244258c
MJ
305if ENABLE_DEBUG_INFO
306noinst_LTLIBRARIES += plugins/lttng-utils/debug-info/libdebug-info.la
307
308plugins_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
328plugins_lttng_utils_debug_info_libdebug_info_la_LIBADD = \
329 fd-cache/libfd-cache.la
330
331endif # ENABLE_DEBUG_INFO
332
333
86ef6105
MJ
334#
335# Public libraries
336#
337
338lib_LTLIBRARIES = \
339 ctf-writer/libbabeltrace2-ctf-writer.la \
340 lib/libbabeltrace2.la
341
342lib_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
443lib_libbabeltrace2_la_LDFLAGS = \
444 $(AM_LDFLAGS) \
445 $(LT_NO_UNDEFINED) \
446 -version-info $(BABELTRACE_LIBRARY_VERSION)
447
448lib_libbabeltrace2_la_CPPFLAGS = \
449 $(AM_CPPFLAGS) \
450 '-DBABELTRACE_PLUGIN_PROVIDERS_DIR="$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"'
451
452lib_libbabeltrace2_la_LIBADD = \
453 logging/liblogging.la \
ed615696 454 common/libcommon.la \
86ef6105
MJ
455 compat/libcompat.la
456
457ctf_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
504ctf_writer_libbabeltrace2_ctf_writer_la_LDFLAGS = \
505 $(AM_LDFLAGS) \
506 $(LT_NO_UNDEFINED) \
507 -version-info $(BABELTRACE_LIBRARY_VERSION)
508
509ctf_writer_libbabeltrace2_ctf_writer_la_LIBADD = \
510 logging/liblogging.la \
ed615696 511 common/libcommon.la \
86ef6105
MJ
512 ctfser/libctfser.la \
513 compat/libcompat.la
514
578e048b 515pkgconfigdir = $(libdir)/pkgconfig
86ef6105
MJ
516pkgconfig_DATA = \
517 babeltrace2-ctf-writer.pc \
518 babeltrace2.pc
519
520#
521# Python plugin provider
522#
523
524if ENABLE_PYTHON_PLUGINS
525pluginproviderdir = "$(BABELTRACE_PLUGIN_PROVIDERS_DIR)"
526pluginprovider_LTLIBRARIES = python-plugin-provider/babeltrace2-python-plugin-provider.la
527
528python_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
532python_plugin_provider_babeltrace2_python_plugin_provider_la_LDFLAGS = \
533 $(AM_LDFLAGS) \
534 $(LT_NO_UNDEFINED) \
535 -avoid-version -module \
536 $(PYTHON_LDFLAGS)
537
538python_plugin_provider_babeltrace2_python_plugin_provider_la_CPPFLAGS = \
539 $(AM_CPPFLAGS) \
540 $(PYTHON_INCLUDE)
541
542python_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.
546if !ENABLE_BUILT_IN_PLUGINS
547python_plugin_provider_babeltrace2_python_plugin_provider_la_LIBADD += \
548 logging/liblogging.la \
ed615696 549 common/libcommon.la \
86ef6105
MJ
550 py-common/libpy-common.la \
551 lib/libbabeltrace2.la
552endif
553endif # ENABLE_PYTHON_PLUGINS
6244258c
MJ
554
555#
556# Plugins
557#
558
559plugindir = "$(BABELTRACE_PLUGINS_DIR)"
560plugin_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
567plugins_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
578plugins_utils_babeltrace_plugin_utils_la_LDFLAGS = \
579 $(AM_LDFLAGS) \
580 $(LT_NO_UNDEFINED) \
581 -avoid-version -module $(LD_NOTEXT)
582
583plugins_utils_babeltrace_plugin_utils_la_LIBADD = \
584 plugins/common/muxing/libmuxing.la
585
586if !ENABLE_BUILT_IN_PLUGINS
587plugins_utils_babeltrace_plugin_utils_la_LIBADD += \
588 lib/libbabeltrace2.la \
ed615696 589 common/libcommon.la \
6244258c
MJ
590 logging/liblogging.la \
591 plugins/common/param-validation/libparam-validation.la
592endif
593
594# ctf plugin
595plugins_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
634plugins_ctf_babeltrace_plugin_ctf_la_LDFLAGS = \
635 $(AM_LDFLAGS) \
636 $(LT_NO_UNDEFINED) \
637 -avoid-version -module $(LD_NOTEXT)
638
639plugins_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
644if BABELTRACE_BUILD_WITH_MINGW
645plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += -lws2_32
646endif
647
648if !ENABLE_BUILT_IN_PLUGINS
649plugins_ctf_babeltrace_plugin_ctf_la_LIBADD += \
650 lib/libbabeltrace2.la \
651 logging/liblogging.la \
652 plugins/common/muxing/libmuxing.la \
ed615696 653 common/libcommon.la \
6244258c
MJ
654 ctfser/libctfser.la
655endif
656
657# text plugin
658plugins_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
673plugins_text_babeltrace_plugin_text_la_LDFLAGS = \
674 $(AM_LDFLAGS) \
675 $(LT_NO_UNDEFINED) \
676 -avoid-version -module $(LD_NOTEXT)
677
678plugins_text_babeltrace_plugin_text_la_LIBADD =
679
680if !ENABLE_BUILT_IN_PLUGINS
681plugins_text_babeltrace_plugin_text_la_LIBADD += \
682 lib/libbabeltrace2.la \
ed615696 683 common/libcommon.la \
6244258c
MJ
684 logging/liblogging.la \
685 compat/libcompat.la \
686 plugins/common/param-validation/libparam-validation.la
687endif
688
689# lttng-utils plugin
690if ENABLE_DEBUG_INFO
691plugin_LTLIBRARIES += \
692 plugins/lttng-utils/babeltrace-plugin-lttng-utils.la
693
694plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_SOURCES = \
695 plugins/lttng-utils/plugin.c
696
697plugins_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
703plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD = \
704 plugins/lttng-utils/debug-info/libdebug-info.la
705
706if !ENABLE_BUILT_IN_PLUGINS
707plugins_lttng_utils_babeltrace_plugin_lttng_utils_la_LIBADD += \
708 lib/libbabeltrace2.la \
ed615696 709 common/libcommon.la \
6244258c
MJ
710 logging/liblogging.la \
711 plugins/common/param-validation/libparam-validation.la
712endif # !ENABLE_BUILT_IN_PLUGINS
713endif # ENABLE_DEBUG_INFO
53118ba6
PP
714
715EXTRA_DIST = cpp-common/optional.hpp.license
This page took 0.092775 seconds and 4 git commands to generate.