Move utils_expand_path and utils_expand_path_keep_symlink to libpath.la
[lttng-tools.git] / src / common / Makefile.am
... / ...
CommitLineData
1# SPDX-License-Identifier: GPL-2.0-only
2
3AUTOMAKE_OPTIONS = subdir-objects
4
5SUBDIRS = \
6 argpar \
7 bytecode \
8 compat \
9 config \
10 ini-config \
11 fd-tracker \
12 string-utils \
13 filter \
14 hashtable \
15 argpar-utils
16
17# Make sure to always distribute all folders
18# since SUBDIRS is decided at configure time.
19DIST_SUBDIRS = \
20 compat \
21 health \
22 hashtable \
23 kernel-ctl \
24 sessiond-comm \
25 relayd \
26 kernel-consumer \
27 ust-consumer \
28 testpoint \
29 index \
30 config \
31 ini-config \
32 consumer \
33 string-utils \
34 fd-tracker \
35 bytecode \
36 filter \
37 argpar \
38 argpar-utils
39
40# Common library
41noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
42EXTRA_DIST = mi-lttng-4.1.xsd
43
44# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
45# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
46# contains libcommon-lgpl.la.
47
48libcommon_lgpl_la_SOURCES = \
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 \
58 buffer-view.h buffer-view.cpp \
59 conditions/buffer-usage.cpp \
60 conditions/condition.cpp \
61 conditions/event-rule-matches.cpp \
62 conditions/session-consumed-size.cpp \
63 conditions/session-rotation.cpp \
64 credentials.cpp credentials.h \
65 defaults.cpp \
66 domain.cpp \
67 dynamic-array.cpp dynamic-array.h \
68 dynamic-buffer.cpp dynamic-buffer.h \
69 endpoint.cpp \
70 error.cpp error.h \
71 error-query.cpp \
72 evaluation.cpp \
73 event-expr/event-expr.cpp \
74 event-field-value.cpp \
75 event-rule/event-rule.cpp \
76 event-rule/kernel-kprobe.cpp \
77 event-rule/kernel-syscall.cpp \
78 event-rule/kernel-uprobe.cpp \
79 event-rule/kernel-tracepoint.cpp \
80 event-rule/user-tracepoint.cpp \
81 event-rule/log4j-logging.cpp \
82 event-rule/jul-logging.cpp \
83 event-rule/python-logging.cpp \
84 fd-handle.cpp fd-handle.h \
85 kernel-probe.cpp \
86 location.cpp \
87 log-level-rule.cpp \
88 mi-lttng.cpp mi-lttng.h \
89 notification.cpp \
90 payload.cpp payload.h \
91 payload-view.cpp payload-view.h \
92 readwrite.cpp readwrite.h \
93 runas.cpp runas.h \
94 session-descriptor.cpp \
95 snapshot.cpp snapshot.h \
96 spawn-viewer.cpp spawn-viewer.h \
97 thread.cpp thread.h \
98 time.cpp \
99 tracker.cpp tracker.h \
100 trigger.cpp \
101 unix.cpp unix.h \
102 uri.cpp uri.h \
103 userspace-probe.cpp \
104 utils.cpp utils.h
105
106if HAVE_ELF_H
107libcommon_lgpl_la_SOURCES += \
108 lttng-elf.cpp lttng-elf.h
109endif
110
111libcommon_lgpl_la_LIBADD = \
112 $(top_builddir)/src/common/bytecode/libbytecode.la \
113 $(top_builddir)/src/common/compat/libcompat.la \
114 $(top_builddir)/src/common/config/libconfig.la \
115 $(top_builddir)/src/common/filter/libfilter.la \
116 $(top_builddir)/src/common/hashtable/libhashtable-lgpl.la \
117 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
118
119# The libpath static archive contains GPLv2 compatible code. It is
120# meant to be used by GPL executables.
121
122libpath_la_SOURCES = \
123 path.cpp path.h
124
125# The libcommon-gpl static archive contains GPLv2 compatible code. It is
126# meant to be used by GPL executables.
127
128libcommon_gpl_la_SOURCES = \
129 common.h \
130 context.cpp context.h \
131 daemonize.cpp daemonize.h \
132 event.cpp \
133 filter.cpp filter.h \
134 fs-handle.cpp fs-handle.h fs-handle-internal.h \
135 futex.cpp futex.h \
136 index-allocator.cpp index-allocator.h \
137 optional.h \
138 pipe.cpp pipe.h \
139 shm.cpp shm.h \
140 trace-chunk.cpp trace-chunk.h \
141 trace-chunk-registry.h \
142 uuid.cpp uuid.h \
143 waiter.cpp waiter.h
144
145libcommon_gpl_la_LIBADD = \
146 libcommon-lgpl.la \
147 libpath.la \
148 $(top_builddir)/src/common/ini-config/libini-config.la \
149 $(top_builddir)/src/common/hashtable/libhashtable-gpl.la \
150 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la
151
152if BUILD_LIB_HEALTH
153SUBDIRS += health
154endif
155
156if BUILD_LIB_KERNEL_CTL
157SUBDIRS += kernel-ctl
158endif
159
160if BUILD_LIB_SESSIOND_COMM
161SUBDIRS += sessiond-comm
162endif
163
164if BUILD_LIB_RELAYD
165SUBDIRS += relayd
166endif
167
168
169if BUILD_LIB_KERNEL_CONSUMER
170SUBDIRS += kernel-consumer
171endif
172
173if BUILD_LIB_UST_CONSUMER
174SUBDIRS += ust-consumer
175endif
176
177if BUILD_LIB_TESTPOINT
178SUBDIRS += testpoint
179endif
180
181if BUILD_LIB_INDEX
182SUBDIRS += index
183endif
184
185if BUILD_LIB_CONSUMER
186SUBDIRS += consumer
187endif
188
189noinst_HEADERS = \
190 align.h \
191 bug.h \
192 defaults.h \
193 error.h \
194 futex.h \
195 lttng-kernel.h \
196 lttng-kernel-old.h \
197 macros.h \
198 time.h \
199 uri.h \
200 utils.h
201
202noinst_PROGRAMS = filter-grammar-test
203filter_grammar_test_SOURCES = filter-grammar-test.cpp
204filter_grammar_test_LDADD = libcommon-gpl.la
205
206all-local:
207 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
208 for script in $(EXTRA_DIST); do \
209 cp -f $(srcdir)/$$script $(builddir); \
210 done; \
211 fi
212
213clean-local:
214 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
215 for script in $(EXTRA_DIST); do \
216 rm -f $(builddir)/$$script; \
217 done; \
218 fi
This page took 0.022397 seconds and 4 git commands to generate.