blob: fe3d20f705ccb2112d6e4de4291f65e2704b2df6 (
plain)
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
|
#!/bin/bash
if [ ! -d bin_x64/lib ]
then
mkdir -p bin_x64/lib
fi
if [ ! -d bin_x64d/lib ]
then
mkdir -p bin_x64d/lib
fi
cd ffmpeg
make distclean
OPTIONS="
--enable-shared \
--enable-gpl \
--enable-version2 \
--enable-pthreads \
--enable-runtime-cpudetect \
--enable-asm \
--disable-postproc \
--enable-zlib \
--enable-swscale \
--disable-static \
--disable-altivec \
--disable-muxers \
--disable-encoders \
--disable-debug \
--disable-ffplay \
--disable-ffserver \
--disable-ffmpeg \
--disable-avconv \
--disable-ffprobe \
--disable-devices \
--disable-filters \
--disable-avfilter \
--disable-avdevice \
--disable-hwaccels \
--disable-bsfs \
--disable-network \
--disable-protocols \
--enable-protocol=file \
--enable-muxer=spdif \
--enable-cross-compile \
--cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 \
--build-suffix=-lav"
./configure --extra-libs="-lwsock32" --extra-cflags="-DPTW32_STATIC_LIB" ${OPTIONS} &&
make -j8 &&
cp lib*/*-lav-*.dll ../bin_x64 &&
cp lib*/*.lib ../bin_x64/lib &&
cp lib*/*-lav-*.dll ../bin_x64d &&
cp lib*/*.lib ../bin_x64d/lib &&
cd ..
|