sessiond: ust: remove unused `is_sent` attribute of ust_app_channel
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
ab5be9fa
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
26821431 3AUTOMAKE_OPTIONS = subdir-objects
4ae04234
MJ
4noinst_LTLIBRARIES =
5
6BUILT_SOURCES =
7
8noinst_HEADERS = \
c9e313bc
SM
9 align.hpp \
10 bug.hpp \
11 defaults.hpp \
12 error.hpp \
13 futex.hpp \
14 lttng-kernel.hpp \
15 lttng-kernel-old.hpp \
16 macros.hpp \
17 time.hpp \
18 uri.hpp \
19 utils.hpp
4ae04234
MJ
20
21
22# libargpar
23noinst_LTLIBRARIES += libargpar.la
24libargpar_la_SOURCES = \
25 argpar/argpar.c \
26 argpar/argpar.h
27
28
29# libargpar-utils
30noinst_LTLIBRARIES += libargpar-utils.la
31libargpar_utils_la_SOURCES = \
32 argpar-utils/argpar-utils.cpp \
c9e313bc 33 argpar-utils/argpar-utils.hpp
4ae04234
MJ
34
35
36# libbytecode
37noinst_LTLIBRARIES += libbytecode.la
38libbytecode_la_SOURCES = \
39 bytecode/bytecode.cpp \
c9e313bc 40 bytecode/bytecode.hpp
26821431 41
b3f35e02 42
93903fd5
MD
43# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
44# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
45# contains libcommon-lgpl.la.
46
4ae04234 47noinst_LTLIBRARIES += libcommon-lgpl.la
93903fd5 48libcommon_lgpl_la_SOURCES = \
a6bc4ca9
SM
49 actions/action.cpp \
50 actions/list.cpp \
51 actions/notify.cpp \
52 actions/path.cpp \
53 actions/rotate-session.cpp \
54 actions/snapshot-session.cpp \
55 actions/start-session.cpp \
56 actions/stop-session.cpp \
57 actions/rate-policy.cpp \
c9e313bc 58 buffer-view.hpp buffer-view.cpp \
999af9c1 59 channel.cpp \
a6bc4ca9
SM
60 conditions/buffer-usage.cpp \
61 conditions/condition.cpp \
62 conditions/event-rule-matches.cpp \
63 conditions/session-consumed-size.cpp \
64 conditions/session-rotation.cpp \
c9e313bc 65 credentials.cpp credentials.hpp \
a6bc4ca9
SM
66 defaults.cpp \
67 domain.cpp \
c9e313bc
SM
68 dynamic-array.cpp dynamic-array.hpp \
69 dynamic-buffer.cpp dynamic-buffer.hpp \
a6bc4ca9 70 endpoint.cpp \
c9e313bc 71 error.cpp error.hpp \
a6bc4ca9
SM
72 error-query.cpp \
73 evaluation.cpp \
038ab50b 74 event.cpp \
a6bc4ca9
SM
75 event-expr/event-expr.cpp \
76 event-field-value.cpp \
77 event-rule/event-rule.cpp \
78 event-rule/kernel-kprobe.cpp \
79 event-rule/kernel-syscall.cpp \
80 event-rule/kernel-uprobe.cpp \
81 event-rule/kernel-tracepoint.cpp \
82 event-rule/user-tracepoint.cpp \
83 event-rule/log4j-logging.cpp \
84 event-rule/jul-logging.cpp \
85 event-rule/python-logging.cpp \
53cd1e22 86 exception.cpp exception.hpp \
c9e313bc 87 fd-handle.cpp fd-handle.hpp\
05aa7e19 88 format.hpp \
a6bc4ca9 89 kernel-probe.cpp \
a6bc4ca9
SM
90 location.cpp \
91 log-level-rule.cpp \
1823e905 92 make-unique.hpp \
8802d23b 93 make-unique-wrapper.hpp \
c9e313bc 94 mi-lttng.cpp mi-lttng.hpp \
a6bc4ca9 95 notification.cpp \
c9e313bc
SM
96 payload.cpp payload.hpp \
97 payload-view.cpp payload-view.hpp \
0a325f4d 98 pthread-lock.hpp \
c9e313bc
SM
99 readwrite.cpp readwrite.hpp \
100 runas.cpp runas.hpp \
a6bc4ca9 101 session-descriptor.cpp \
c9e313bc
SM
102 snapshot.cpp snapshot.hpp \
103 spawn-viewer.cpp spawn-viewer.hpp \
104 thread.cpp thread.hpp \
a6bc4ca9 105 time.cpp \
c9e313bc 106 tracker.cpp tracker.hpp \
a6bc4ca9 107 trigger.cpp \
c9e313bc
SM
108 unix.cpp unix.hpp \
109 uri.cpp uri.hpp \
a6bc4ca9 110 userspace-probe.cpp \
0a325f4d 111 urcu.hpp \
c9e313bc 112 utils.cpp utils.hpp
b3f35e02 113
b1b34226 114if HAVE_ELF_H
93903fd5 115libcommon_lgpl_la_SOURCES += \
c9e313bc 116 lttng-elf.cpp lttng-elf.hpp
b1b34226
MJ
117endif
118
93903fd5 119libcommon_lgpl_la_LIBADD = \
4ae04234
MJ
120 libbytecode.la \
121 libcompat.la \
122 libconfig.la \
123 libfilter.la \
124 libhashtable-lgpl.la \
116a02e3 125 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
b3f35e02 126
4ae04234 127
4971b7f0
MD
128# The libpath static archive contains GPLv2 compatible code. It is
129# meant to be used by GPL executables.
4ae04234 130noinst_LTLIBRARIES += libpath.la
4971b7f0 131libpath_la_SOURCES = \
c9e313bc 132 path.cpp path.hpp
4971b7f0 133
4ae04234 134
93903fd5
MD
135# The libcommon-gpl static archive contains GPLv2 compatible code. It is
136# meant to be used by GPL executables.
4ae04234 137noinst_LTLIBRARIES += libcommon-gpl.la
93903fd5 138libcommon_gpl_la_SOURCES = \
c9e313bc
SM
139 common.hpp \
140 context.cpp context.hpp \
141 daemonize.cpp daemonize.hpp \
142 filter.cpp filter.hpp \
143 fs-handle.cpp fs-handle.hpp fs-handle-internal.hpp \
144 futex.cpp futex.hpp \
145 index-allocator.cpp index-allocator.hpp \
146 optional.hpp \
147 pipe.cpp pipe.hpp \
148 shm.cpp shm.hpp \
149 trace-chunk.cpp trace-chunk.hpp \
150 trace-chunk-registry.hpp \
151 uuid.cpp uuid.hpp \
152 waiter.cpp waiter.hpp
93903fd5
MD
153
154libcommon_gpl_la_LIBADD = \
155 libcommon-lgpl.la \
4971b7f0 156 libpath.la \
4ae04234
MJ
157 libini-config.la \
158 libhashtable-gpl.la \
159 libfd-tracker.la
160
161
162# libcompat
163noinst_LTLIBRARIES += libcompat.la
164libcompat_la_SOURCES = \
165 compat/compat-fcntl.cpp \
166 compat/directory-handle.cpp \
c9e313bc
SM
167 compat/directory-handle.hpp \
168 compat/dirent.hpp \
169 compat/endian.hpp \
170 compat/errno.hpp \
171 compat/fcntl.hpp \
172 compat/getenv.hpp \
173 compat/mman.hpp \
174 compat/netdb.hpp \
175 compat/path.hpp \
176 compat/paths.hpp \
4ae04234 177 compat/poll.cpp \
c9e313bc
SM
178 compat/poll.hpp \
179 compat/pthread.hpp \
180 compat/socket.hpp \
181 compat/string.hpp \
182 compat/tid.hpp \
183 compat/time.hpp
4ae04234
MJ
184
185
186# libconfig
187noinst_LTLIBRARIES += libconfig.la
188libconfig_la_SOURCES = \
c9e313bc
SM
189 config/config-internal.hpp \
190 config/config-session-abi.hpp \
4ae04234 191 config/session-config.cpp \
c9e313bc 192 config/session-config.hpp
4ae04234
MJ
193
194libconfig_la_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
195libconfig_la_LIBADD = ${libxml2_LIBS}
196
197
198if BUILD_LIB_CONSUMER
199noinst_LTLIBRARIES += libconsumer.la
200
201libconsumer_la_SOURCES = \
202 consumer/consumer.cpp \
c9e313bc 203 consumer/consumer.hpp \
4ae04234 204 consumer/consumer-metadata-cache.cpp \
c9e313bc 205 consumer/consumer-metadata-cache.hpp \
4ae04234 206 consumer/consumer-stream.cpp \
c9e313bc
SM
207 consumer/consumer-stream.hpp \
208 consumer/consumer-testpoint.hpp \
4ae04234 209 consumer/consumer-timer.cpp \
c9e313bc 210 consumer/consumer-timer.hpp \
4ae04234 211 consumer/metadata-bucket.cpp \
c9e313bc 212 consumer/metadata-bucket.hpp
4ae04234
MJ
213
214libconsumer_la_LIBADD = \
215 libkernel-consumer.la \
216 librelayd.la \
217 libsessiond-comm.la
218
219if HAVE_LIBLTTNG_UST_CTL
220libconsumer_la_LIBADD += \
221 libust-consumer.la
222endif
223endif # BUILD_LIB_CONSUMER
224
225
226# libfd-tracker
227noinst_LTLIBRARIES += libfd-tracker.la
228libfd_tracker_la_SOURCES = \
229 fd-tracker/fd-tracker.cpp \
c9e313bc 230 fd-tracker/fd-tracker.hpp \
4ae04234 231 fd-tracker/inode.cpp \
c9e313bc 232 fd-tracker/inode.hpp \
4ae04234 233 fd-tracker/utils.cpp \
c9e313bc 234 fd-tracker/utils.hpp \
4ae04234
MJ
235 fd-tracker/utils-poll.cpp
236
237
238# libfilter
239noinst_LTLIBRARIES += libfilter.la
240
241libfilter_la_SOURCES = \
c9e313bc
SM
242 filter/filter-ast.hpp \
243 filter/filter-ir.hpp \
4ae04234
MJ
244 filter/filter-lexer.lpp \
245 filter/filter-parser.ypp \
c9e313bc 246 filter/filter-symbols.hpp \
4ae04234
MJ
247 filter/filter-visitor-generate-bytecode.cpp \
248 filter/filter-visitor-generate-ir.cpp \
249 filter/filter-visitor-ir-check-binary-op-nesting.cpp \
250 filter/filter-visitor-ir-normalize-glob-patterns.cpp \
251 filter/filter-visitor-ir-validate-globbing.cpp \
252 filter/filter-visitor-ir-validate-string.cpp \
253 filter/filter-visitor-xml.cpp \
c9e313bc 254 filter/memstream.hpp
4ae04234
MJ
255
256BUILT_SOURCES += filter/filter-parser.hpp
257
6ce1601f
MJ
258# Disable some warning flags for generated sources.
259FILTER_WARN_FLAGS = \
19708280 260 -Wno-null-dereference \
f46376a1
MJ
261 -Wno-redundant-decls \
262 -Wno-unused-parameter
6ce1601f
MJ
263
264libfilter_la_CFLAGS = $(AM_CFLAGS) $(FILTER_WARN_FLAGS)
c9e313bc 265libfilter_la_CXXFLAGS = -include filter-symbols.hpp $(AM_CXXFLAGS) $(FILTER_WARN_FLAGS)
4ae04234
MJ
266libfilter_la_CPPFLAGS = -I$(srcdir)/filter -I$(builddir)/filter $(AM_CPPFLAGS)
267libfilter_la_LIBADD = libstring-utils.la
268
269AM_YFLAGS = -t -d -v -Wno-yacc
270
271# start with empty files to clean
272CLEANFILES =
273
274if HAVE_BISON
275# we have bison: we can clean the generated parser files
276CLEANFILES += \
277 filter/filter-parser.cpp \
278 filter/filter-parser.hpp \
279 filter/filter-parser.output
280else # HAVE_BISON
281# create target used to stop the build if we want to build the parser,
282# but we don't have the necessary tool to do so
283filter/filter-parser.cpp filter/filter-parser.hpp: filter/filter-parser.ypp
284 @echo "Error: Cannot build target because bison is missing."
285 @echo "Make sure bison is installed and run the configure script again."
286 @false
287
288BUILT_SOURCES += filter/filter-parser.cpp filter/filter-parser.hpp
289endif # HAVE_BISON
290
291if HAVE_FLEX
292# we have flex: we can clean the generated lexer files
293CLEANFILES += filter/filter-lexer.cpp
294else # HAVE_FLEX
295# create target used to stop the build if we want to build the lexer,
296# but we don't have the necessary tool to do so
297filter/filter-lexer.cpp: filter/filter-lexer.lpp
298 @echo "Error: Cannot build target because flex is missing."
299 @echo "Make sure flex is installed and run the configure script again."
300 @false
301
302BUILT_SOURCES += filter/filter-lexer.cpp
303endif # HAVE_FLEX
304
305
306noinst_LTLIBRARIES += libhashtable-lgpl.la
307libhashtable_lgpl_la_SOURCES = \
308 hashtable/seed.cpp \
309 hashtable/utils.cpp \
c9e313bc 310 hashtable/utils.hpp
4ae04234
MJ
311
312
313noinst_LTLIBRARIES += libhashtable-gpl.la
314libhashtable_gpl_la_SOURCES = \
315 hashtable/hashtable.cpp \
c9e313bc
SM
316 hashtable/hashtable.hpp \
317 hashtable/hashtable-symbols.hpp
4ae04234
MJ
318
319libhashtable_gpl_la_LIBADD = \
320 $(URCU_LIBS) \
321 $(URCU_CDS_LIBS)
322
93903fd5 323
87fb9fc0 324if BUILD_LIB_HEALTH
4ae04234
MJ
325noinst_LTLIBRARIES += libhealth.la
326
327libhealth_la_SOURCES = \
328 health/health.cpp
87fb9fc0
JR
329endif
330
4ae04234
MJ
331
332# libini-config
333noinst_LTLIBRARIES += libini-config.la
334libini_config_la_SOURCES = \
335 ini-config/ini.cpp \
c9e313bc 336 ini-config/ini.hpp \
4ae04234 337 ini-config/ini-config.cpp \
c9e313bc 338 ini-config/ini-config.hpp
4ae04234
MJ
339
340
341if BUILD_LIB_INDEX
342noinst_LTLIBRARIES += libindex.la
343
344libindex_la_SOURCES = \
c9e313bc 345 index/ctf-index.hpp \
4ae04234 346 index/index.cpp \
c9e313bc 347 index/index.hpp
4ae04234
MJ
348endif
349
350
87fb9fc0 351if BUILD_LIB_KERNEL_CTL
4ae04234
MJ
352noinst_LTLIBRARIES += libkernel-ctl.la
353
354libkernel_ctl_la_SOURCES = \
355 kernel-ctl/kernel-ctl.cpp \
c9e313bc
SM
356 kernel-ctl/kernel-ctl.hpp \
357 kernel-ctl/kernel-ioctl.hpp
87fb9fc0
JR
358endif
359
360if BUILD_LIB_SESSIOND_COMM
4ae04234
MJ
361noinst_LTLIBRARIES += libsessiond-comm.la
362
363libsessiond_comm_la_SOURCES = \
c9e313bc 364 sessiond-comm/agent.hpp \
4ae04234 365 sessiond-comm/inet.cpp \
c9e313bc 366 sessiond-comm/inet.hpp \
4ae04234 367 sessiond-comm/inet6.cpp \
c9e313bc
SM
368 sessiond-comm/inet6.hpp \
369 sessiond-comm/relayd.hpp \
4ae04234 370 sessiond-comm/sessiond-comm.cpp \
c9e313bc 371 sessiond-comm/sessiond-comm.hpp
87fb9fc0
JR
372endif
373
374if BUILD_LIB_RELAYD
4ae04234
MJ
375noinst_LTLIBRARIES += librelayd.la
376
377librelayd_la_SOURCES = \
378 relayd/relayd.cpp \
c9e313bc 379 relayd/relayd.hpp
4ae04234
MJ
380
381librelayd_la_LIBADD = libsessiond-comm.la
aa360a35
JG
382endif
383
87fb9fc0
JR
384
385if BUILD_LIB_KERNEL_CONSUMER
4ae04234
MJ
386noinst_LTLIBRARIES += libkernel-consumer.la
387
388libkernel_consumer_la_SOURCES = \
389 kernel-consumer/kernel-consumer.cpp \
c9e313bc 390 kernel-consumer/kernel-consumer.hpp
4ae04234
MJ
391
392libkernel_consumer_la_LIBADD = \
393 libkernel-ctl.la
87fb9fc0
JR
394endif
395
396if BUILD_LIB_UST_CONSUMER
4ae04234
MJ
397if HAVE_LIBLTTNG_UST_CTL
398noinst_LTLIBRARIES += libust-consumer.la
399
400libust_consumer_la_SOURCES = \
401 ust-consumer/ust-consumer.cpp \
c9e313bc 402 ust-consumer/ust-consumer.hpp
4ae04234
MJ
403
404libust_consumer_la_LIBADD = \
405 $(UST_CTL_LIBS)
406endif
87fb9fc0
JR
407endif
408
409if BUILD_LIB_TESTPOINT
4ae04234 410noinst_LTLIBRARIES += libtestpoint.la
87fb9fc0 411
4ae04234
MJ
412libtestpoint_la_SOURCES = \
413 testpoint/testpoint.cpp \
c9e313bc 414 testpoint/testpoint.hpp
87fb9fc0 415
4ae04234 416libtestpoint_la_LIBADD = $(DL_LIBS)
87fb9fc0 417endif
10a8a223 418
4ae04234
MJ
419
420# libstring-utils
421noinst_LTLIBRARIES += libstring-utils.la
422libstring_utils_la_SOURCES = \
c9e313bc 423 string-utils/format.hpp \
4ae04234 424 string-utils/string-utils.cpp \
c9e313bc 425 string-utils/string-utils.hpp
4ae04234 426
1c39da61 427
e358ddd5 428noinst_PROGRAMS = filter-grammar-test
740da7d5 429filter_grammar_test_SOURCES = filter-grammar-test.cpp
93903fd5 430filter_grammar_test_LDADD = libcommon-gpl.la
e358ddd5 431
4ae04234
MJ
432EXTRA_DIST = \
433 mi-lttng-4.1.xsd \
434 session.xsd
435
436xmldir = $(datadir)/xml/lttng
437dist_xml_DATA = session.xsd
438
439# Copy EXTRA_DIST files to the build directory
c49fc5e4
JR
440all-local:
441 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
442 for script in $(EXTRA_DIST); do \
443 cp -f $(srcdir)/$$script $(builddir); \
444 done; \
445 fi
446
447clean-local:
448 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
449 for script in $(EXTRA_DIST); do \
450 rm -f $(builddir)/$$script; \
451 done; \
452 fi
This page took 0.081893 seconds and 4 git commands to generate.