forked from ffmpegwasm/ffmpeg.wasm-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·56 lines (50 loc) · 876 Bytes
/
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
#!/bin/bash
set -eo pipefail
SCRIPT_ROOT=$(dirname $0)/wasm/build-scripts
run() {
for name in $@; do
$SCRIPT_ROOT/$name.sh
done
}
run-all() {
SCRIPTS=(
# install dependencies
install-deps
build-zlib
build-x264
build-x265
build-libvpx
build-wavpack
build-lame
build-fdk-aac
build-ogg
build-vorbis
build-theora
build-opus
build-libwebp
build-freetype2
build-fribidi
build-harfbuzz
build-libass
#build-aom # disabled as it is extremely slow
configure-ffmpeg
build-ffmpeg
# configure-ffmpeg.mp4-scale
# build-ffmpeg.mp4-scale
# configure-ffmpeg.png-to-mp4
# build-ffmpeg.png-to-mp4
# configure-ffmpeg.png-to-webm
# build-ffmpeg.png-to-webm
)
run ${SCRIPTS[@]}
}
main() {
# verify Emscripten version
emcc -v
if [[ "$@" == "" ]]; then
run-all
else
run "$@"
fi
}
main "$@"