-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcibuild.sh
executable file
·70 lines (63 loc) · 1.43 KB
/
cibuild.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
#!/bin/bash
set -e
ffmpeg_src="../ffmpeg"
skip_test_case=""
enable_asan=0
enable_opt=0
do_test="--test"
while [ $# -gt 0 ]; do
case $1 in
--help)
echo "Use --path to specify ffmpeg source directory"
echo "Use --skip_test_case to skip some test cases, separated by comma"
echo "Use --skip_test to skip all test cases"
echo "Use --enable_asan 1 to enable address sanitizer"
exit 1
;;
--path)
ffmpeg_src=$2
shift
;;
--skip_test)
do_test=
;;
--skip_test_case)
skip_test_case=$2
shift
;;
--enable_asan)
enable_asan=$2
echo "enable_asan $enable_asan"
shift
;;
--enable_opt)
enable_opt=$2
echo "enable_opt $enable_opt"
shift
;;
*)
echo "Unknown option $1, exit"
exit 1
;;
esac
shift
done
if true; then
# first build tools needs by other projects
./build_nasm.sh
source ./env.sh
#./build_lsmash.sh
#./build_srt.sh
#./build_vmaf.sh
#./build_vvdec.sh
#./build_x264.sh
make -j$(nproc)
fi
./build_ffmpeg.sh --path $ffmpeg_src \
${do_test} \
--skip_test_case "$skip_test_case" \
--enable_asan $enable_asan \
--enable_opt $enable_opt
if [ -n "$do_test" ]; then
: #./test_avs.sh
fi