common: split ini-config in its own convenience library
[lttng-tools.git] / src / common / Makefile.am
CommitLineData
ab5be9fa
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
26821431
MD
3AUTOMAKE_OPTIONS = subdir-objects
4
e2fb96d8 5SUBDIRS = \
71e2e361 6 argpar \
0ae3cfc6 7 bytecode \
71e2e361
JR
8 compat \
9 config \
3299fd31 10 ini-config \
71e2e361
JR
11 fd-tracker \
12 string-utils \
e2fb96d8 13 filter \
71e2e361 14 hashtable
87fb9fc0
JR
15
16# Make sure to always distribute all folders
17# since SUBDIRS is decided at configure time.
28b6dfc8
SM
18DIST_SUBDIRS = \
19 compat \
20 health \
21 hashtable \
22 kernel-ctl \
23 sessiond-comm \
24 relayd \
25 kernel-consumer \
26 ust-consumer \
27 testpoint \
28 index \
29 config \
3299fd31 30 ini-config \
28b6dfc8
SM
31 consumer \
32 string-utils \
e4d2f27a 33 fd-tracker \
0ae3cfc6 34 bytecode \
e2fb96d8
SM
35 filter \
36 argpar
37
b3f35e02
FD
38# Common library
39noinst_LTLIBRARIES = libcommon.la
1f1f7e35 40EXTRA_DIST = mi-lttng-4.1.xsd
b3f35e02 41
28b6dfc8 42libcommon_la_SOURCES = \
a6bc4ca9
SM
43 actions/action.cpp \
44 actions/list.cpp \
45 actions/notify.cpp \
46 actions/path.cpp \
47 actions/rotate-session.cpp \
48 actions/snapshot-session.cpp \
49 actions/start-session.cpp \
50 actions/stop-session.cpp \
51 actions/rate-policy.cpp \
52 buffer-view.h buffer-view.cpp \
28b6dfc8 53 common.h \
a6bc4ca9
SM
54 conditions/buffer-usage.cpp \
55 conditions/condition.cpp \
56 conditions/event-rule-matches.cpp \
57 conditions/session-consumed-size.cpp \
58 conditions/session-rotation.cpp \
59 context.cpp context.h \
60 credentials.cpp credentials.h \
61 daemonize.cpp daemonize.h \
62 defaults.cpp \
63 domain.cpp \
64 dynamic-array.cpp dynamic-array.h \
65 dynamic-buffer.cpp dynamic-buffer.h \
66 endpoint.cpp \
67 error.cpp error.h \
68 error-query.cpp \
69 evaluation.cpp \
70 event.cpp \
71 event-expr/event-expr.cpp \
72 event-field-value.cpp \
73 event-rule/event-rule.cpp \
74 event-rule/kernel-kprobe.cpp \
75 event-rule/kernel-syscall.cpp \
76 event-rule/kernel-uprobe.cpp \
77 event-rule/kernel-tracepoint.cpp \
78 event-rule/user-tracepoint.cpp \
79 event-rule/log4j-logging.cpp \
80 event-rule/jul-logging.cpp \
81 event-rule/python-logging.cpp \
82 filter.cpp filter.h \
83 fd-handle.cpp fd-handle.h \
84 fs-handle.cpp fs-handle.h fs-handle-internal.h \
85 futex.cpp futex.h \
86 kernel-probe.cpp \
87 index-allocator.cpp index-allocator.h \
88 location.cpp \
89 log-level-rule.cpp \
90 mi-lttng.cpp mi-lttng.h \
91 notification.cpp \
28b6dfc8 92 optional.h \
a6bc4ca9
SM
93 payload.cpp payload.h \
94 payload-view.cpp payload-view.h \
95 pipe.cpp pipe.h \
96 readwrite.cpp readwrite.h \
97 runas.cpp runas.h \
98 shm.cpp shm.h \
99 session-descriptor.cpp \
100 snapshot.cpp snapshot.h \
101 spawn-viewer.cpp spawn-viewer.h \
102 time.cpp \
103 trace-chunk.cpp trace-chunk.h \
28b6dfc8 104 trace-chunk-registry.h \
a6bc4ca9
SM
105 trigger.cpp \
106 unix.cpp unix.h \
107 uri.cpp uri.h \
108 userspace-probe.cpp \
109 utils.cpp utils.h \
110 uuid.cpp uuid.h \
111 thread.cpp thread.h \
112 tracker.cpp tracker.h \
113 waiter.cpp waiter.h
b3f35e02 114
b1b34226 115if HAVE_ELF_H
28b6dfc8 116libcommon_la_SOURCES += \
a6bc4ca9 117 lttng-elf.cpp lttng-elf.h
b1b34226
MJ
118endif
119
b3f35e02 120libcommon_la_LIBADD = \
0ae3cfc6 121 $(top_builddir)/src/common/bytecode/libbytecode.la \
28b6dfc8 122 $(top_builddir)/src/common/config/libconfig.la \
3299fd31 123 $(top_builddir)/src/common/ini-config/libini-config.la \
28b6dfc8 124 $(top_builddir)/src/common/compat/libcompat.la \
8bb66c3c 125 $(top_builddir)/src/common/hashtable/libhashtable.la \
e4d2f27a 126 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
116a02e3
JG
127 $(top_builddir)/src/common/filter/libfilter.la \
128 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
b3f35e02 129
87fb9fc0
JR
130if BUILD_LIB_HEALTH
131SUBDIRS += health
132endif
133
87fb9fc0
JR
134if BUILD_LIB_KERNEL_CTL
135SUBDIRS += kernel-ctl
136endif
137
138if BUILD_LIB_SESSIOND_COMM
139SUBDIRS += sessiond-comm
140endif
141
142if BUILD_LIB_RELAYD
aa360a35
JG
143SUBDIRS += relayd
144endif
145
87fb9fc0
JR
146
147if BUILD_LIB_KERNEL_CONSUMER
148SUBDIRS += kernel-consumer
149endif
150
151if BUILD_LIB_UST_CONSUMER
152SUBDIRS += ust-consumer
153endif
154
155if BUILD_LIB_TESTPOINT
156SUBDIRS += testpoint
157endif
158
159if BUILD_LIB_INDEX
160SUBDIRS += index
161endif
162
87fb9fc0
JR
163if BUILD_LIB_CONSUMER
164SUBDIRS += consumer
165endif
10a8a223 166
28b6dfc8
SM
167noinst_HEADERS = \
168 align.h \
169 bug.h \
170 defaults.h \
171 error.h \
172 futex.h \
173 lttng-kernel.h \
174 lttng-kernel-old.h \
175 macros.h \
176 time.h \
177 uri.h \
178 utils.h
1c39da61 179
e358ddd5 180noinst_PROGRAMS = filter-grammar-test
740da7d5 181filter_grammar_test_SOURCES = filter-grammar-test.cpp
e358ddd5
JG
182filter_grammar_test_LDADD = \
183 libcommon.la
e358ddd5 184
c49fc5e4
JR
185all-local:
186 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
187 for script in $(EXTRA_DIST); do \
188 cp -f $(srcdir)/$$script $(builddir); \
189 done; \
190 fi
191
192clean-local:
193 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
194 for script in $(EXTRA_DIST); do \
195 rm -f $(builddir)/$$script; \
196 done; \
197 fi
This page took 0.062046 seconds and 4 git commands to generate.