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