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