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