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