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