VirtualBox

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

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

ffmpeg: exported to OSE

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