VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/Makefile.kmk@ 5999

Last change on this file since 5999 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette