-
Notifications
You must be signed in to change notification settings - Fork 27
/
GNUmakefile.am
395 lines (354 loc) · 14.3 KB
/
GNUmakefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
lib_LTLIBRARIES = libmp4v2.la
bin_PROGRAMS =
check_PROGRAMS =
###############################################################################
libmp4v2_la_LDFLAGS = \
$(AM_LDFLAGS) \
-version-number $(PROJECT_version_major):$(PROJECT_version_minor):$(PROJECT_version_point) $(X_libmp4v2_la_LDFLAGS)
libmp4v2_la_SOURCES = \
src/3gp.cpp \
src/atom_ac3.cpp \
src/atom_amr.cpp \
src/atom_avc1.cpp \
src/atom_avcC.cpp \
src/atom_chpl.cpp \
src/atom_colr.cpp \
src/atom_d263.cpp \
src/atom_dac3.cpp \
src/atom_damr.cpp \
src/atom_dref.cpp \
src/atom_elst.cpp \
src/atom_enca.cpp \
src/atom_encv.cpp \
src/atom_free.cpp \
src/atom_ftyp.cpp \
src/atom_ftab.cpp \
src/atom_gmin.cpp \
src/atom_hdlr.cpp \
src/atom_hinf.cpp \
src/atom_hnti.cpp \
src/atom_href.cpp \
src/atom_mdat.cpp \
src/atom_mdhd.cpp \
src/atom_meta.cpp \
src/atom_mp4s.cpp \
src/atom_mp4v.cpp \
src/atom_mvhd.cpp \
src/atom_nmhd.cpp \
src/atom_ohdr.cpp \
src/atom_pasp.cpp \
src/atom_root.cpp \
src/atom_rtp.cpp \
src/atom_s263.cpp \
src/atom_sdp.cpp \
src/atom_sdtp.cpp \
src/atom_smi.cpp \
src/atom_sound.cpp \
src/atom_standard.cpp \
src/atom_stbl.cpp \
src/atom_stdp.cpp \
src/atom_stsc.cpp \
src/atom_stsd.cpp \
src/atom_stsz.cpp \
src/atom_stz2.cpp \
src/atom_text.cpp \
src/atom_tfhd.cpp \
src/atom_tkhd.cpp \
src/atom_treftype.cpp \
src/atom_trun.cpp \
src/atom_tx3g.cpp \
src/atom_udta.cpp \
src/atom_url.cpp \
src/atom_urn.cpp \
src/atom_uuid.cpp \
src/atom_video.cpp \
src/atom_vmhd.cpp \
src/atoms.h \
src/cmeta.cpp \
src/descriptors.cpp \
src/descriptors.h \
src/exception.cpp \
src/exception.h \
src/enum.h \
src/enum.tcc \
src/impl.h \
src/isma.cpp \
src/log.h \
src/log.cpp \
src/mp4.cpp \
src/mp4array.h \
src/mp4atom.cpp \
src/mp4atom.h \
src/mp4container.cpp \
src/mp4container.h \
src/mp4descriptor.cpp \
src/mp4descriptor.h \
src/mp4file.cpp \
src/mp4file.h \
src/mp4file_io.cpp \
src/mp4info.cpp \
src/mp4property.cpp \
src/mp4property.h \
src/mp4track.cpp \
src/mp4track.h \
src/mp4util.cpp \
src/mp4util.h \
src/ocidescriptors.cpp \
src/ocidescriptors.h \
src/odcommands.cpp \
src/odcommands.h \
src/qosqualifiers.cpp \
src/qosqualifiers.h \
src/rtphint.cpp \
src/rtphint.h \
src/src.h \
src/text.cpp \
src/text.h \
src/util.h
libmp4v2_la_SOURCES += \
src/bmff/bmff.h \
src/bmff/impl.h \
src/bmff/typebmff.cpp \
src/bmff/typebmff.h
libmp4v2_la_SOURCES += \
src/itmf/CoverArtBox.cpp \
src/itmf/CoverArtBox.h \
src/itmf/Tags.cpp \
src/itmf/Tags.h \
src/itmf/generic.cpp \
src/itmf/generic.h \
src/itmf/impl.h \
src/itmf/itmf.h \
src/itmf/type.cpp \
src/itmf/type.h
libmp4v2_la_SOURCES += \
src/qtff/ColorParameterBox.cpp \
src/qtff/ColorParameterBox.h \
src/qtff/PictureAspectRatioBox.cpp \
src/qtff/PictureAspectRatioBox.h \
src/qtff/coding.cpp \
src/qtff/coding.h \
src/qtff/impl.h \
src/qtff/qtff.h
libmp4v2_la_SOURCES += \
libplatform/endian.h \
libplatform/impl.h \
libplatform/io/File.cpp \
libplatform/io/File.h \
libplatform/io/FileSystem.cpp \
libplatform/io/FileSystem.h \
libplatform/number/random.h \
libplatform/platform.h \
libplatform/platform_base.h \
libplatform/platform_posix.h \
libplatform/platform_win32.h \
libplatform/process/process.h \
libplatform/prog/option.cpp \
libplatform/prog/option.h \
libplatform/sys/error.cpp \
libplatform/sys/error.h \
libplatform/time/time.cpp \
libplatform/time/time.h \
libplatform/warning.h
if ADD_PLATFORM_POSIX
libmp4v2_la_SOURCES += \
libplatform/io/File_posix.cpp \
libplatform/io/FileSystem_posix.cpp \
libplatform/number/random_posix.cpp \
libplatform/process/process_posix.cpp \
libplatform/time/time_posix.cpp
endif
if ADD_PLATFORM_WIN32
libmp4v2_la_SOURCES += \
libplatform/io/File_win32.cpp \
libplatform/io/FileSystem_win32.cpp \
libplatform/number/random_win32.cpp \
libplatform/process/process_win32.cpp \
libplatform/time/time_win32.cpp
endif
if ADD_UTIL
libmp4v2_la_SOURCES += \
libutil/Database.cpp \
libutil/Database.h \
libutil/Timecode.cpp \
libutil/Timecode.h \
libutil/TrackModifier.cpp \
libutil/TrackModifier.h \
libutil/Utility.cpp \
libutil/Utility.h \
libutil/crc.cpp \
libutil/crc.h \
libutil/impl.h \
libutil/other.cpp \
libutil/other.h \
libutil/util.h
bin_PROGRAMS += mp4art
bin_PROGRAMS += mp4chaps
bin_PROGRAMS += mp4extract
bin_PROGRAMS += mp4file
bin_PROGRAMS += mp4info
bin_PROGRAMS += mp4subtitle
bin_PROGRAMS += mp4tags
bin_PROGRAMS += mp4track
bin_PROGRAMS += mp4trackdump
endif
mp4art_SOURCES = util/impl.h util/mp4art.cpp
mp4chaps_SOURCES = util/impl.h util/mp4chaps.cpp
mp4extract_SOURCES = util/impl.h util/mp4extract.cpp
mp4file_SOURCES = util/impl.h util/mp4file.cpp
mp4info_SOURCES = util/impl.h util/mp4info.cpp
mp4subtitle_SOURCES = util/impl.h util/mp4subtitle.cpp
mp4tags_SOURCES = util/impl.h util/mp4tags.cpp
mp4track_SOURCES = util/impl.h util/mp4track.cpp
mp4trackdump_SOURCES = util/impl.h util/mp4trackdump.cpp
mp4art_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4chaps_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4extract_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4file_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4info_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4subtitle_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4tags_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4track_LDADD = libmp4v2.la $(X_LDFLAGS)
mp4trackdump_LDADD = libmp4v2.la $(X_LDFLAGS)
###############################################################################
DEJATOOL = main
TESTLOGDIR = $(top_builddir)/testlog
override RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir/testsuite --outdir $(TESTLOGDIR)
###############################################################################
mp4v2incdir = $(pkgincludedir)
mp4v2inc_HEADERS = \
include/mp4v2/project.h \
\
include/mp4v2/chapter.h \
include/mp4v2/file.h \
include/mp4v2/file_prop.h \
include/mp4v2/general.h \
include/mp4v2/isma.h \
include/mp4v2/itmf_generic.h \
include/mp4v2/itmf_tags.h \
include/mp4v2/mp4v2.h \
include/mp4v2/platform.h \
include/mp4v2/sample.h \
include/mp4v2/streaming.h \
include/mp4v2/track.h \
include/mp4v2/track_prop.h
###############################################################################
EXTRA_DIST = project/project.m4
###############################################################################
clean-local:
distclean-local:
rm -f $(top_builddir)/Makefile
rm -f $(top_builddir)/testlog/*.log
rm -f $(top_builddir)/testlog/*.sum
###############################################################################
AM_CPPFLAGS = $(strip $(MK_CXX_ARCH) $(X_CXX_ARCH) $(MK_CXX_I) $(X_CXX_I))
AM_LDFLAGS = $(strip $(MK_CXX_ARCH) $(X_CXX_ARCH))
AM_CXXFLAGS = $(strip $(MK_CXX_W) $(X_CXX_W))
LIBS := $(LIBS) $(X_MINGW_LIBS)
###############################################################################
MK_CXX_ARCH =
MK_CXX_W = -Wall -Wformat
MK_CXX_D =
MK_CXX_I = \
-I$(top_builddir)/include -I$(top_srcdir)/include \
-I$(top_builddir) -I$(top_srcdir)
###############################################################################
if ADD_UTIL
if ADD_MANS
man1_MANS = \
doc/man/man1/mp4art.1 \
doc/man/man1/mp4file.1 \
doc/man/man1/mp4subtitle.1 \
doc/man/man1/mp4track.1
man3_MANS = \
$(top_srcdir)/doc/MP4.3 \
$(top_srcdir)/doc/MP4AddRtpESConfigurationPacket.3 \
$(top_srcdir)/doc/MP4AddRtpHint.3 \
$(top_srcdir)/doc/MP4AddRtpImmediateData.3 \
$(top_srcdir)/doc/MP4AddRtpPacket.3 \
$(top_srcdir)/doc/MP4AddRtpSampleData.3 \
$(top_srcdir)/doc/MP4AddRtpVideoHint.3 \
$(top_srcdir)/doc/MP4AddTrackEdit.3 \
$(top_srcdir)/doc/MP4AppendHintTrackSdp.3 \
$(top_srcdir)/doc/MP4AppendSessionSdp.3 \
$(top_srcdir)/doc/MP4BinaryToBase16.3 \
$(top_srcdir)/doc/MP4BinaryToBase64.3 \
$(top_srcdir)/doc/MP4CloneTrack.3 \
$(top_srcdir)/doc/MP4ConvertFromMovieDuration.3 \
$(top_srcdir)/doc/MP4ConvertFromTrackTimestamp.3 \
$(top_srcdir)/doc/MP4ConvertToTrackTimestamp.3 \
$(top_srcdir)/doc/MP4CopyTrack.3 \
$(top_srcdir)/doc/MP4DeleteTrack.3 \
$(top_srcdir)/doc/MP4DeleteTrackEdit.3 \
$(top_srcdir)/doc/MP4FindTrackId.3 \
$(top_srcdir)/doc/MP4FindTrackIndex.3 \
$(top_srcdir)/doc/MP4GetAudioProfileLevel.3 \
$(top_srcdir)/doc/MP4GetDuration.3 \
$(top_srcdir)/doc/MP4GetGraphicsProfileLevel.3 \
$(top_srcdir)/doc/MP4GetHintTrackReferenceTrackId.3 \
$(top_srcdir)/doc/MP4GetHintTrackRtpPayload.3 \
$(top_srcdir)/doc/MP4GetHintTrackSdp.3 \
$(top_srcdir)/doc/MP4GetNumberOfTracks.3 \
$(top_srcdir)/doc/MP4GetODProfileLevel.3 \
$(top_srcdir)/doc/MP4GetRtpHintNumberOfPackets.3 \
$(top_srcdir)/doc/MP4GetRtpPacketBFrame.3 \
$(top_srcdir)/doc/MP4GetRtpPacketTransmitOffset.3 \
$(top_srcdir)/doc/MP4GetRtpTimestampStart.3 \
$(top_srcdir)/doc/MP4GetSampleIdFromEditTime.3 \
$(top_srcdir)/doc/MP4GetSceneProfileLevel.3 \
$(top_srcdir)/doc/MP4GetSessionSdp.3 \
$(top_srcdir)/doc/MP4GetTrackAudioMpeg4Type.3 \
$(top_srcdir)/doc/MP4GetTrackAudioType.3 \
$(top_srcdir)/doc/MP4GetTrackBitRate.3 \
$(top_srcdir)/doc/MP4GetTrackDuration.3 \
$(top_srcdir)/doc/MP4GetTrackEditDuration.3 \
$(top_srcdir)/doc/MP4GetTrackEditDwell.3 \
$(top_srcdir)/doc/MP4GetTrackEditMediaStart.3 \
$(top_srcdir)/doc/MP4GetTrackEditStart.3 \
$(top_srcdir)/doc/MP4GetTrackEditTotalDuration.3 \
$(top_srcdir)/doc/MP4GetTrackESConfiguration.3 \
$(top_srcdir)/doc/MP4GetTrackFixedSampleDuration.3 \
$(top_srcdir)/doc/MP4GetTrackNumberOfEdits.3 \
$(top_srcdir)/doc/MP4GetTrackNumberOfSamples.3 \
$(top_srcdir)/doc/MP4GetTrackVideoFrameRate.3 \
$(top_srcdir)/doc/MP4GetTrackVideoHeight.3 \
$(top_srcdir)/doc/MP4GetTrackVideoType.3 \
$(top_srcdir)/doc/MP4GetTrackVideoWidth.3 \
$(top_srcdir)/doc/MP4GetVideoProfileLevel.3 \
$(top_srcdir)/doc/MP4MakeIsmaCompliant.3 \
$(top_srcdir)/doc/MP4ReadRtpHint.3 \
$(top_srcdir)/doc/MP4ReadRtpPacket.3 \
$(top_srcdir)/doc/MP4ReadSampleFromEditTime.3 \
$(top_srcdir)/doc/MP4SetAudioProfileLevel.3 \
$(top_srcdir)/doc/MP4SetGraphicsProfileLevel.3 \
$(top_srcdir)/doc/MP4SetHintTrackRtpPayload.3 \
$(top_srcdir)/doc/MP4SetHintTrackSdp.3 \
$(top_srcdir)/doc/MP4SetODProfileLevel.3 \
$(top_srcdir)/doc/MP4SetRtpTimestampStart.3 \
$(top_srcdir)/doc/MP4SetSceneProfileLevel.3 \
$(top_srcdir)/doc/MP4SetSessionSdp.3 \
$(top_srcdir)/doc/MP4SetTrackEditDuration.3 \
$(top_srcdir)/doc/MP4SetTrackEditDwell.3 \
$(top_srcdir)/doc/MP4SetTrackEditMediaStart.3 \
$(top_srcdir)/doc/MP4SetTrackESConfiguration.3 \
$(top_srcdir)/doc/MP4SetVideoProfileLevel.3 \
$(top_srcdir)/doc/MP4WriteRtpHint.3
endif
endif
###############################################################################
##
## workaround: DejaGNU adds a hard-coded dependency on Makefile
## and need to create logdir
##
Makefile: ${Makefile}
touch $@
$(mkdir_p) $(TESTLOGDIR)
dist-hook:
###############################################################################
##
## include GNUmakefiles which are not full-fledged automake citizens but
## they are aware of automake variables and targets. Note that we purposely
## use a GNUmakefile extension (-include) to prevent automake from parsing
## the file.
##
-include $(top_srcdir)/doc/GNUmakefile.mk