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