1 | # $Id: Makefile.kmk 10179 2008-07-04 00:49:22Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for ffmpeg.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | ifdef VBOX_SINGLE_MAKEFILE
|
---|
23 | SUB_DEPTH = ../../..
|
---|
24 | else
|
---|
25 | SUB_DEPTH = .
|
---|
26 | DEPTH = ../../..
|
---|
27 | endif
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 | DLLS += VBoxFFmpeg
|
---|
31 | ifeq ($(KBUILD_TARGET),win)
|
---|
32 | VBoxFFmpeg_TOOL.win.x86 = MINGW32
|
---|
33 | #VBoxFFmpeg_TOOL.win.amd64 = MINGW64...
|
---|
34 | VBoxFFmpeg_SDKS.win.x86 = W32API
|
---|
35 | VBoxFFmpeg_DEFS.win = CONFIG_WIN32=1
|
---|
36 | VBoxFFmpeg_CFLAGS = -O3 -Wall -Wno-long-long -Wno-trigraphs -pipe
|
---|
37 | VBoxFFmpeg_CFLAGS.release = -fno-omit-frame-pointer -fno-strict-aliasing
|
---|
38 | VBoxFFmpeg_CFLAGS.profile = $(VBoxFFmpeg_CFLAGS.release)
|
---|
39 | VBoxFFmpeg_CFLAGS.kprofile = $(VBoxFFmpeg_CFLAGS.release) -finstrument-functions
|
---|
40 | else
|
---|
41 | VBoxFFmpeg_TEMPLATE = VBOXR3NP
|
---|
42 | VBoxFFmpeg_CFLAGS = -O3
|
---|
43 | VBoxFFmpeg_CFLAGS.darwin = -mdynamic-no-pic -force_cpusubtype_ALL -fvisibility=default
|
---|
44 | endif
|
---|
45 | VBoxFFmpeg_CFLAGS += -Wno-switch
|
---|
46 | VBoxFFmpeg_DEFS = HAVE_AV_CONFIG_H BUILD_AVUTIL _FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE _GNU_SOURCE
|
---|
47 | VBoxFFmpeg_DEFS.darwin = CONFIG_DARWIN=1
|
---|
48 | VBoxFFmpeg_INCS = \
|
---|
49 | . \
|
---|
50 | libavutil \
|
---|
51 | libavcodec
|
---|
52 |
|
---|
53 | VBoxFFmpeg_LDFLAGS.win.x86 = \
|
---|
54 | --export-all-symbols \
|
---|
55 | --output-def $(PATH_TARGET)/VBoxFFmpeg-new.def \
|
---|
56 | --exclude-symbols=console_main \
|
---|
57 | --exclude-symbols=WinMain@16
|
---|
58 | VBoxFFmpeg_LDFLAGS.darwin = \
|
---|
59 | -install_name @executable_path/VBoxFFmpeg.dylib \
|
---|
60 | -exported_symbols_list VBoxFFmpeg-darwin.def
|
---|
61 | #VBoxFFmpeg_DEPS.darwin = VBoxFFmpeg-darwin.def
|
---|
62 |
|
---|
63 | VBoxFFmpeg_LIBS.darwin = z
|
---|
64 | #VBoxFFmpeg_LIBS.linux = z?
|
---|
65 |
|
---|
66 | VBoxFFmpeg_SOURCES = \
|
---|
67 | libavutil/mathematics.c \
|
---|
68 | libavutil/rational.c \
|
---|
69 | libavutil/intfloat_readwrite.c \
|
---|
70 | libavutil/crc.c \
|
---|
71 | libavutil/md5.c
|
---|
72 |
|
---|
73 | VBoxFFmpeg_SOURCES += \
|
---|
74 | libavcodec/bitstream.c \
|
---|
75 | libavcodec/utils.c \
|
---|
76 | libavcodec/mem.c \
|
---|
77 | libavcodec/allcodecs.c \
|
---|
78 | libavcodec/mpegvideo.c \
|
---|
79 | libavcodec/jrevdct.c \
|
---|
80 | libavcodec/jfdctfst.c \
|
---|
81 | libavcodec/jfdctint.c \
|
---|
82 | libavcodec/mjpeg.c \
|
---|
83 | libavcodec/resample.c \
|
---|
84 | libavcodec/resample2.c \
|
---|
85 | libavcodec/dsputil.c \
|
---|
86 | libavcodec/motion_est.c \
|
---|
87 | libavcodec/imgconvert.c \
|
---|
88 | libavcodec/imgresample.c \
|
---|
89 | libavcodec/mpeg12.c \
|
---|
90 | libavcodec/mpegaudiodec.c \
|
---|
91 | libavcodec/simple_idct.c \
|
---|
92 | libavcodec/ratecontrol.c \
|
---|
93 | libavcodec/eval.c \
|
---|
94 | libavcodec/error_resilience.c \
|
---|
95 | libavcodec/fft.c \
|
---|
96 | libavcodec/mdct.c \
|
---|
97 | libavcodec/raw.c \
|
---|
98 | libavcodec/golomb.c \
|
---|
99 | libavcodec/cabac.c \
|
---|
100 | libavcodec/faandct.c \
|
---|
101 | libavcodec/parser.c \
|
---|
102 | libavcodec/vp3dsp.c \
|
---|
103 | libavcodec/h264idct.c \
|
---|
104 | libavcodec/rangecoder.c \
|
---|
105 | libavcodec/pnm.c \
|
---|
106 | libavcodec/h263.c \
|
---|
107 | libavcodec/msmpeg4.c \
|
---|
108 | libavcodec/h263dec.c \
|
---|
109 | libavcodec/opt.c \
|
---|
110 | libavcodec/bitstream_filter.c \
|
---|
111 | libavcodec/i386/fdct_mmx.c \
|
---|
112 | libavcodec/i386/cputest.c \
|
---|
113 | libavcodec/i386/dsputil_mmx.c \
|
---|
114 | libavcodec/i386/mpegvideo_mmx.c \
|
---|
115 | libavcodec/i386/idct_mmx.c \
|
---|
116 | libavcodec/i386/motion_est_mmx.c \
|
---|
117 | libavcodec/i386/simple_idct_mmx.c \
|
---|
118 | libavcodec/i386/fft_sse.c \
|
---|
119 | libavcodec/i386/vp3dsp_mmx.c \
|
---|
120 | libavcodec/i386/vp3dsp_sse2.c \
|
---|
121 | libavcodec/i386/fft_3dn.c \
|
---|
122 | libavcodec/i386/fft_3dn2.c \
|
---|
123 | libavcodec/i386/snowdsp_mmx.c \
|
---|
124 | libavcodec/aasc.c \
|
---|
125 | libavcodec/ac3enc.c \
|
---|
126 | libavcodec/alac.c \
|
---|
127 | libavcodec/asv1.c \
|
---|
128 | libavcodec/avs.c \
|
---|
129 | libavcodec/bmp.c \
|
---|
130 | libavcodec/cavs.c \
|
---|
131 | libavcodec/cavsdsp.c \
|
---|
132 | libavcodec/cinepak.c \
|
---|
133 | libavcodec/cljr.c \
|
---|
134 | libavcodec/cook.c \
|
---|
135 | libavcodec/cscd.c \
|
---|
136 | libavcodec/lzo.c \
|
---|
137 | libavcodec/cyuv.c \
|
---|
138 | libavcodec/dvbsubdec.c \
|
---|
139 | libavcodec/dvbsub.c \
|
---|
140 | libavcodec/dvdsub.c \
|
---|
141 | libavcodec/dvdsubenc.c \
|
---|
142 | libavcodec/dv.c \
|
---|
143 | libavcodec/8bps.c \
|
---|
144 | libavcodec/ffv1.c \
|
---|
145 | libavcodec/huffyuv.c \
|
---|
146 | libavcodec/flac.c \
|
---|
147 | libavcodec/flacenc.c \
|
---|
148 | libavcodec/flashsv.c \
|
---|
149 | libavcodec/flicvideo.c \
|
---|
150 | libavcodec/4xm.c \
|
---|
151 | libavcodec/fraps.c \
|
---|
152 | libavcodec/h261.c \
|
---|
153 | libavcodec/h264.c \
|
---|
154 | libavcodec/idcinvideo.c \
|
---|
155 | libavcodec/indeo2.c \
|
---|
156 | libavcodec/indeo3.c \
|
---|
157 | libavcodec/interplayvideo.c \
|
---|
158 | libavcodec/dpcm.c \
|
---|
159 | libavcodec/kmvc.c \
|
---|
160 | libavcodec/loco.c \
|
---|
161 | libavcodec/mace.c \
|
---|
162 | libavcodec/mmvideo.c \
|
---|
163 | libavcodec/mpegaudio.c \
|
---|
164 | libavcodec/msrle.c \
|
---|
165 | libavcodec/msvideo1.c \
|
---|
166 | libavcodec/lcl.c \
|
---|
167 | libavcodec/nuv.c \
|
---|
168 | libavcodec/rtjpeg.c \
|
---|
169 | libavcodec/png.c \
|
---|
170 | libavcodec/qdm2.c \
|
---|
171 | libavcodec/qdrw.c \
|
---|
172 | libavcodec/qpeg.c \
|
---|
173 | libavcodec/qtrle.c \
|
---|
174 | libavcodec/ra144.c \
|
---|
175 | libavcodec/ra288.c \
|
---|
176 | libavcodec/roqvideo.c \
|
---|
177 | libavcodec/rpza.c \
|
---|
178 | libavcodec/rv10.c \
|
---|
179 | libavcodec/shorten.c \
|
---|
180 | libavcodec/smacker.c \
|
---|
181 | libavcodec/smc.c \
|
---|
182 | libavcodec/snow.c \
|
---|
183 | libavcodec/sonic.c \
|
---|
184 | libavcodec/svq1.c \
|
---|
185 | libavcodec/vp3.c \
|
---|
186 | libavcodec/truemotion1.c \
|
---|
187 | libavcodec/truemotion2.c \
|
---|
188 | libavcodec/truespeech.c \
|
---|
189 | libavcodec/tscc.c \
|
---|
190 | libavcodec/tta.c \
|
---|
191 | libavcodec/ulti.c \
|
---|
192 | libavcodec/vc1.c \
|
---|
193 | libavcodec/vcr1.c \
|
---|
194 | libavcodec/vmdav.c \
|
---|
195 | libavcodec/vorbis.c \
|
---|
196 | libavcodec/vqavideo.c \
|
---|
197 | libavcodec/wmadec.c \
|
---|
198 | libavcodec/wnv1.c \
|
---|
199 | libavcodec/ws-snd1.c \
|
---|
200 | libavcodec/xan.c \
|
---|
201 | libavcodec/xl.c \
|
---|
202 | libavcodec/zmbv.c \
|
---|
203 | libavcodec/pcm.c \
|
---|
204 | libavcodec/adpcm.c \
|
---|
205 | libavcodec/adx.c \
|
---|
206 | libavcodec/g726.c
|
---|
207 |
|
---|
208 | VBoxFFmpeg_SOURCES += \
|
---|
209 | libavformat/utils.c \
|
---|
210 | libavformat/cutils.c \
|
---|
211 | libavformat/os_support.c \
|
---|
212 | libavformat/allformats.c \
|
---|
213 | libavformat/mpeg.c \
|
---|
214 | libavformat/mpegts.c \
|
---|
215 | libavformat/mpegtsenc.c \
|
---|
216 | libavformat/ffm.c \
|
---|
217 | libavformat/crc.c \
|
---|
218 | libavformat/img.c \
|
---|
219 | libavformat/img2.c \
|
---|
220 | libavformat/raw.c \
|
---|
221 | libavformat/rm.c \
|
---|
222 | libavformat/avienc.c \
|
---|
223 | libavformat/avidec.c \
|
---|
224 | libavformat/wav.c \
|
---|
225 | libavformat/mmf.c \
|
---|
226 | libavformat/swf.c \
|
---|
227 | libavformat/au.c \
|
---|
228 | libavformat/gif.c \
|
---|
229 | libavformat/mov.c \
|
---|
230 | libavformat/mpjpeg.c \
|
---|
231 | libavformat/dv.c \
|
---|
232 | libavformat/yuv4mpeg.c \
|
---|
233 | libavformat/4xm.c \
|
---|
234 | libavformat/flvdec.c \
|
---|
235 | libavformat/psxstr.c \
|
---|
236 | libavformat/idroq.c \
|
---|
237 | libavformat/ipmovie.c \
|
---|
238 | libavformat/nut.c \
|
---|
239 | libavformat/wc3movie.c \
|
---|
240 | libavformat/mp3.c \
|
---|
241 | libavformat/westwood.c \
|
---|
242 | libavformat/segafilm.c \
|
---|
243 | libavformat/idcin.c \
|
---|
244 | libavformat/flic.c \
|
---|
245 | libavformat/sierravmd.c \
|
---|
246 | libavformat/matroska.c \
|
---|
247 | libavformat/sol.c \
|
---|
248 | libavformat/electronicarts.c \
|
---|
249 | libavformat/nsvdec.c \
|
---|
250 | libavformat/asf.c \
|
---|
251 | libavformat/ogg2.c \
|
---|
252 | libavformat/oggparsevorbis.c \
|
---|
253 | libavformat/oggparsetheora.c \
|
---|
254 | libavformat/oggparseflac.c \
|
---|
255 | libavformat/daud.c \
|
---|
256 | libavformat/aiff.c \
|
---|
257 | libavformat/voc.c \
|
---|
258 | libavformat/tta.c \
|
---|
259 | libavformat/mm.c \
|
---|
260 | libavformat/avs.c \
|
---|
261 | libavformat/smacker.c \
|
---|
262 | libavformat/nuv.c \
|
---|
263 | libavformat/gxf.c \
|
---|
264 | libavformat/oggparseogm.c \
|
---|
265 | libavformat/flvenc.c \
|
---|
266 | libavformat/movenc.c \
|
---|
267 | libavformat/asf-enc.c \
|
---|
268 | libavformat/adtsenc.c \
|
---|
269 | libavformat/pnm.c \
|
---|
270 | libavformat/yuv.c \
|
---|
271 | libavformat/png.c \
|
---|
272 | libavformat/jpeg.c \
|
---|
273 | libavformat/gifdec.c \
|
---|
274 | libavformat/sgi.c \
|
---|
275 | libavformat/framehook.c \
|
---|
276 | libavformat/avio.c \
|
---|
277 | libavformat/aviobuf.c \
|
---|
278 | libavformat/file.c
|
---|
279 | VBoxFFmpeg_SOURCES.linux += \
|
---|
280 | libavformat/grab.c \
|
---|
281 | libavformat/v4l2.c \
|
---|
282 | libavformat/dv1394.c \
|
---|
283 | libavformat/audio.c \
|
---|
284 | libavformat/udp.c \
|
---|
285 | libavformat/tcp.c \
|
---|
286 | libavformat/http.c \
|
---|
287 | libavformat/rtsp.c \
|
---|
288 | libavformat/rtp.c \
|
---|
289 | libavformat/rtpproto.c
|
---|
290 | VBoxFFmpeg_SOURCES.darwin += \
|
---|
291 | libavformat/udp.c \
|
---|
292 | libavformat/tcp.c \
|
---|
293 | libavformat/http.c \
|
---|
294 | libavformat/rtsp.c \
|
---|
295 | libavformat/rtp.c \
|
---|
296 | libavformat/rtpproto.c
|
---|
297 |
|
---|
298 | VBoxFFmpeg_SOURCES.win += VBoxFFmpeg.def
|
---|
299 |
|
---|
300 | libavcodec/i386/fft_3dn2_CFLAGS.amd64 = -march=k8
|
---|
301 | libavcodec/i386/fft_sse.c_CFLAGS = -msse
|
---|
302 |
|
---|
303 |
|
---|
304 | #
|
---|
305 | # The import library for Windows builds.
|
---|
306 | # The microsoft linker doesn't like the GNU import libraries from this MinGW version.
|
---|
307 | #
|
---|
308 | ifeq ($(KBUILD_TARGET),win)
|
---|
309 | IMPORT_LIBS += VBoxFFmpegImp
|
---|
310 | VBoxFFmpegImp_TEMPLATE = VBOXR3
|
---|
311 | VBoxFFmpegImp_SOURCES = VBoxFFmpeg.def
|
---|
312 | endif
|
---|
313 |
|
---|
314 |
|
---|
315 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
316 |
|
---|