-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sh
executable file
·83 lines (75 loc) · 1.58 KB
/
build.sh
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
#!/usr/bin/env bash
set -e
cd ../ffmpeg
#Only perform the make clean beforehand if the configure script has been called before
if [ -f "config.h" ]
then
echo "Cleaning past configuration"
emmake make clean
fi
emconfigure ./configure \
--prefix=../js/dist \
\
--disable-runtime-cpudetect \
\
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
\
--disable-doc \
\
--enable-pthreads \
--disable-w32threads \
--disable-network \
--disable-os2threads \
\
--disable-audiotoolbox \
--disable-videotoolbox \
\
--disable-encoders \
--enable-encoder=aac \
--enable-encoder=pcm_f32le \
--disable-decoders \
--enable-decoder=pcm_f32le \
--disable-hwaccels \
--disable-muxers \
--enable-muxer=mp4 \
--enable-muxer=pcm_f32le \
--disable-demuxers \
--enable-demuxer=pcm_f32le \
--disable-parsers \
--disable-bsfs \
--disable-protocols \
--enable-protocol=file \
--disable-indevs \
--disable-outdevs \
--disable-filters \
--enable-filter=aresample \
\
--disable-iconv \
--disable-securetransport \
--disable-xlib \
\
--arch=x86_64 \
--cpu=generic \
--enable-cross-compile \
--cross-prefix=em \
--cc=emcc \
--target-os=none \
--enable-small \
\
--disable-asm \
--disable-fast-unaligned \
\
--disable-debug \
--disable-stripping
echo "Finished ffmpeg configuration"
emmake make
emmake make install
emmake make clean
cd ../js
emmake make clean
emmake make FORMAT=wasm
emmake make FORMAT=asmjs
emmake make install