forked from xiph/awcy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_codec.sh
executable file
·57 lines (56 loc) · 1.23 KB
/
build_codec.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
#!/bin/bash
set -e
echo Building...
case $CODEC in
daala)
pushd $CODEC
gcc -print-prog-name=cc1
gcc -print-search-dirs
./autogen.sh; ./configure --enable-static --disable-shared --disable-player --disable-dump-images --enable-logging --enable-dump-recons $BUILD_OPTIONS; make -j4
popd
;;
thor | thor-rt)
pushd $CODEC
make
popd
;;
x264)
pushd x264/
./configure $BUILD_OPTIONS
make
popd
;;
x265)
pushd x265/build/linux
cmake -D ENABLE_SHARED=no $BUILD_OPTIONS ../../source/
make
popd
;;
vp10 | vp10-rt)
pushd $CODEC
./configure --enable-vp10 $BUILD_OPTIONS
make
popd
;;
av1 | av1-rt)
pushd $CODEC
echo -- Starting x86_64 Build --
./configure --enable-av1 --enable-debug --disable-unit-tests --disable-docs $BUILD_OPTIONS
make -j4
mkdir -p x86_64
mv aomenc aomdec x86_64/
echo -- Finished x86_64 Build --
echo -- Starting Analyzer Build --
../build_av1_analyzer.sh || true
echo -- Finished Analyzer Build --
echo Note: Analyzer errors will not prevent the run from completing.
mv x86_64/* ./
popd
;;
vp9)
pushd vp9
./configure --enable-vp9 $BUILD_OPTIONS
make
popd
;;
esac