CTF IR -> Trace IR
[babeltrace.git] / include / Makefile.am
1 ##
2 ## This target generates an include file that contains the git version
3 ## string of the current branch, it must be continuously updated when
4 ## we build in the git repo and shipped in dist tarballs to reflect the
5 ## status of the tree when it was generated. If the tree is clean and
6 ## the current commit is tag a starting with "v", consider this a
7 ## release version and set an empty git version.
8 ##
9 ## Here is what the inline script does:
10 ##
11 ## First, delete any stale "version.i.tmp" file.
12 ##
13 ## If "bootstrap" and ".git" exists in the top source directory and the git
14 ## executable is available, get the current git version string in the form:
15 ##
16 ## "latest_tag"(-"number_of_commits_on_top")(-g"latest_commit_hash")(-dirty)
17 ##
18 ## And store it in "version.i.tmp", if the current commit is tagged, the tag
19 ## starts with "v" and the tree is clean, consider this a release version and
20 ## overwrite the git version with an empty string in "version.i.tmp".
21 ##
22 ## If we don't have a "version.i.tmp" nor a "version.i", generate an empty
23 ## string as a failover.
24 ##
25 ## If we don't have a "version.i" or we have both files and they are different,
26 ## copy "version.i.tmp" over "version.i". This way the dependent targets are
27 ## only rebuilt when the version string changes.
28 ##
29
30 version_verbose = $(version_verbose_@AM_V@)
31 version_verbose_ = $(version_verbose_@AM_DEFAULT_V@)
32 version_verbose_0 = @echo " GEN " $@;
33
34 version.i:
35 $(version_verbose)rm -f version.i.tmp; \
36 if (test -r "$(top_srcdir)/bootstrap" && test -r "$(top_srcdir)/.git") && \
37 test -x "`which git 2>&1;true`"; then \
38 GIT_VERSION_STR="`cd "$(top_srcdir)" && git describe --tags --dirty`"; \
39 GIT_CURRENT_TAG="`cd "$(top_srcdir)" && git describe --tags --exact-match --match="v[0-9]*" HEAD 2> /dev/null`"; \
40 echo "#define GIT_VERSION \"$$GIT_VERSION_STR\"" > version.i.tmp; \
41 if ! $(GREP) -- "-dirty" version.i.tmp > /dev/null && \
42 test "x$$GIT_CURRENT_TAG" != "x"; then \
43 echo "#define GIT_VERSION \"\"" > version.i.tmp; \
44 fi; \
45 fi; \
46 if test ! -f version.i.tmp; then \
47 if test ! -f version.i; then \
48 echo '#define GIT_VERSION ""' > version.i; \
49 fi; \
50 elif test ! -f version.i || \
51 test x"`cat version.i.tmp`" != x"`cat version.i`"; then \
52 mv version.i.tmp version.i; \
53 fi; \
54 rm -f version.i.tmp; \
55 true
56
57 ##
58 ## version.i is defined as a .PHONY target even if it's a real file,
59 ## we want the target to be re-run on every make.
60 ##
61 .PHONY: version.i
62
63 CLEANFILES = version.i.tmp
64
65 ##
66 ## Only clean "version.i" on dist-clean, we need to keep it on regular
67 ## clean when it's part of a dist tarball.
68 ##
69 DISTCLEANFILES = version.i
70
71 # Core API
72 babeltraceincludedir = "$(includedir)/babeltrace"
73 babeltraceinclude_HEADERS = \
74 babeltrace/babeltrace.h \
75 babeltrace/logging.h \
76 babeltrace/ref.h \
77 babeltrace/types.h \
78 babeltrace/values.h \
79 babeltrace/version.h
80
81 # Legacy API (for CTF writer)
82 babeltracectfincludedir = "$(includedir)/babeltrace/ctf"
83 babeltracectfinclude_HEADERS = \
84 babeltrace/ctf/events.h
85
86 # CTF writer API
87 babeltracectfwriterincludedir = "$(includedir)/babeltrace/ctf-writer"
88 babeltracectfwriterinclude_HEADERS = \
89 babeltrace/ctf-writer/clock.h \
90 babeltrace/ctf-writer/event-fields.h \
91 babeltrace/ctf-writer/event.h \
92 babeltrace/ctf-writer/event-types.h \
93 babeltrace/ctf-writer/fields.h \
94 babeltrace/ctf-writer/field-types.h \
95 babeltrace/ctf-writer/stream-class.h \
96 babeltrace/ctf-writer/stream.h \
97 babeltrace/ctf-writer/trace.h \
98 babeltrace/ctf-writer/utils.h \
99 babeltrace/ctf-writer/visitor.h \
100 babeltrace/ctf-writer/writer.h
101
102 # Legacy API (for CTF writer)
103 babeltracectfirincludedir = "$(includedir)/babeltrace/ctf-ir"
104 babeltracectfirinclude_HEADERS = \
105 babeltrace/ctf-ir/clock.h \
106 babeltrace/ctf-ir/event-class.h \
107 babeltrace/ctf-ir/event-fields.h \
108 babeltrace/ctf-ir/event-types.h \
109 babeltrace/ctf-ir/event.h \
110 babeltrace/ctf-ir/field-types.h \
111 babeltrace/ctf-ir/fields.h \
112 babeltrace/ctf-ir/stream-class.h \
113 babeltrace/ctf-ir/stream.h \
114 babeltrace/ctf-ir/trace.h \
115 babeltrace/ctf-ir/utils.h
116
117
118 # Trace IR API
119 babeltracetraceirincludedir = "$(includedir)/babeltrace/trace-ir"
120 babeltracetraceirinclude_HEADERS = \
121 babeltrace/trace-ir/clock-class.h \
122 babeltrace/trace-ir/clock-value.h \
123 babeltrace/trace-ir/event-class.h \
124 babeltrace/trace-ir/event.h \
125 babeltrace/trace-ir/event-header-field.h \
126 babeltrace/trace-ir/field-path.h \
127 babeltrace/trace-ir/field-types.h \
128 babeltrace/trace-ir/fields.h \
129 babeltrace/trace-ir/packet.h \
130 babeltrace/trace-ir/packet-context-field.h \
131 babeltrace/trace-ir/packet-header-field.h \
132 babeltrace/trace-ir/stream-class.h \
133 babeltrace/trace-ir/stream.h \
134 babeltrace/trace-ir/trace.h
135
136 # Plugin and plugin development API
137 babeltracepluginincludedir = "$(includedir)/babeltrace/plugin"
138 babeltraceplugininclude_HEADERS = \
139 babeltrace/plugin/plugin-dev.h \
140 babeltrace/plugin/plugin.h
141
142 # Graph, component, and notification API
143 babeltracegraphincludedir = "$(includedir)/babeltrace/graph"
144 babeltracegraphinclude_HEADERS = \
145 babeltrace/graph/component-class-filter.h \
146 babeltrace/graph/component-class-sink.h \
147 babeltrace/graph/component-class-source.h \
148 babeltrace/graph/component-class.h \
149 babeltrace/graph/component-filter.h \
150 babeltrace/graph/component-sink.h \
151 babeltrace/graph/component-source.h \
152 babeltrace/graph/component-status.h \
153 babeltrace/graph/component.h \
154 babeltrace/graph/connection.h \
155 babeltrace/graph/graph.h \
156 babeltrace/graph/notification-event.h \
157 babeltrace/graph/notification-inactivity.h \
158 babeltrace/graph/notification-iterator.h \
159 babeltrace/graph/notification-packet.h \
160 babeltrace/graph/notification-stream.h \
161 babeltrace/graph/notification.h \
162 babeltrace/graph/output-port-notification-iterator.h \
163 babeltrace/graph/port.h \
164 babeltrace/graph/private-component-filter.h \
165 babeltrace/graph/private-component-sink.h \
166 babeltrace/graph/private-component-source.h \
167 babeltrace/graph/private-component.h \
168 babeltrace/graph/private-connection-notification-iterator.h \
169 babeltrace/graph/private-connection-private-notification-iterator.h \
170 babeltrace/graph/private-connection.h \
171 babeltrace/graph/private-port.h \
172 babeltrace/graph/query-executor.h
173
174 noinst_HEADERS = \
175 babeltrace/compat/stdlib-internal.h \
176 babeltrace/compat/fcntl-internal.h \
177 babeltrace/compat/glib-internal.h \
178 babeltrace/compat/uuid-internal.h \
179 babeltrace/compat/unistd-internal.h \
180 babeltrace/compat/stdio-internal.h \
181 babeltrace/compat/time-internal.h \
182 babeltrace/compat/utc-internal.h \
183 babeltrace/compat/memstream-internal.h \
184 babeltrace/compat/string-internal.h \
185 babeltrace/compat/limits-internal.h \
186 babeltrace/compat/mman-internal.h \
187 babeltrace/compat/socket-internal.h \
188 babeltrace/common-internal.h \
189 babeltrace/bitfield-internal.h \
190 babeltrace/object-internal.h \
191 babeltrace/object-pool-internal.h \
192 babeltrace/plugin/plugin-internal.h \
193 babeltrace/plugin/plugin-so-internal.h \
194 babeltrace/plugin/python-plugin-provider-internal.h \
195 babeltrace/assert-internal.h \
196 babeltrace/values-internal.h \
197 babeltrace/ctf-writer/attributes-internal.h \
198 babeltrace/ctf-writer/clock-class-internal.h \
199 babeltrace/ctf-writer/clock-internal.h \
200 babeltrace/ctf-writer/event-class-internal.h \
201 babeltrace/ctf-writer/event-internal.h \
202 babeltrace/ctf-writer/field-path-internal.h \
203 babeltrace/ctf-writer/fields-internal.h \
204 babeltrace/ctf-writer/field-types-internal.h \
205 babeltrace/ctf-writer/field-wrapper-internal.h \
206 babeltrace/ctf-writer/functor-internal.h \
207 babeltrace/ctf-writer/resolve-internal.h \
208 babeltrace/ctf-writer/serialize-internal.h \
209 babeltrace/ctf-writer/stream-class-internal.h \
210 babeltrace/ctf-writer/stream-internal.h \
211 babeltrace/ctf-writer/trace-internal.h \
212 babeltrace/ctf-writer/utils-internal.h \
213 babeltrace/ctf-writer/validation-internal.h \
214 babeltrace/ctf-writer/visitor-internal.h \
215 babeltrace/ctf-writer/writer-internal.h \
216 babeltrace/mmap-align-internal.h \
217 babeltrace/align-internal.h \
218 babeltrace/logging-internal.h \
219 babeltrace/endian-internal.h \
220 babeltrace/trace-ir/packet-internal.h \
221 babeltrace/trace-ir/event-class-internal.h \
222 babeltrace/trace-ir/utils-internal.h \
223 babeltrace/trace-ir/fields-internal.h \
224 babeltrace/trace-ir/stream-class-internal.h \
225 babeltrace/trace-ir/event-internal.h \
226 babeltrace/trace-ir/field-path-internal.h \
227 babeltrace/trace-ir/field-wrapper-internal.h \
228 babeltrace/trace-ir/trace-internal.h \
229 babeltrace/trace-ir/clock-class-internal.h \
230 babeltrace/trace-ir/field-types-internal.h \
231 babeltrace/trace-ir/clock-value-internal.h \
232 babeltrace/trace-ir/attributes-internal.h \
233 babeltrace/trace-ir/stream-internal.h \
234 babeltrace/trace-ir/resolve-field-path-internal.h \
235 babeltrace/prio-heap-internal.h \
236 babeltrace/lib-logging-internal.h \
237 babeltrace/compiler-internal.h \
238 babeltrace/babeltrace-internal.h \
239 babeltrace/assert-pre-internal.h \
240 babeltrace/graph/component-internal.h \
241 babeltrace/graph/notification-stream-internal.h \
242 babeltrace/graph/connection-internal.h \
243 babeltrace/graph/notification-event-internal.h \
244 babeltrace/graph/query-executor-internal.h \
245 babeltrace/graph/graph-internal.h \
246 babeltrace/graph/component-class-sink-colander-internal.h \
247 babeltrace/graph/notification-inactivity-internal.h \
248 babeltrace/graph/component-source-internal.h \
249 babeltrace/graph/notification-packet-internal.h \
250 babeltrace/graph/notification-iterator-internal.h \
251 babeltrace/graph/notification-internal.h \
252 babeltrace/graph/component-filter-internal.h \
253 babeltrace/graph/component-class-internal.h \
254 babeltrace/graph/component-sink-internal.h \
255 babeltrace/graph/port-internal.h \
256 babeltrace/list-internal.h \
257 version.h \
258 version.i
This page took 0.03424 seconds and 4 git commands to generate.