-
Notifications
You must be signed in to change notification settings - Fork 421
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·30 lines (26 loc) · 769 Bytes
/
build.sh
File metadata and controls
executable file
·30 lines (26 loc) · 769 Bytes
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
#!/bin/sh
set -e
PLATFORM=$1
ACTION=$2
FFMPEG_VERSION=7.0.1
OPENSSL_VERSION=OpenSSL_1_1_1w
if [ "$ACTION" = "build" ]; then
sh scripts/init-openssl.sh $PLATFORM $OPENSSL_VERSION
sh scripts/init-ffmpeg.sh $PLATFORM $FFMPEG_VERSION
sh scripts/compile-openssl.sh $PLATFORM "build"
sh scripts/compile-ffmpeg.sh $PLATFORM "build"
elif [ "$ACTION" = "clean" ]; then
sh scripts/compile-openssl.sh $PLATFORM "clean"
sh scripts/compile-ffmpeg.sh $PLATFORM "clean"
else
echo "Usage:"
echo " sh build.sh iOS build"
echo " sh build.sh iOS clean"
echo " ---"
echo " sh build.sh tvOS build"
echo " sh build.sh tvOS clean"
echo " ---"
echo " sh build.sh macOS build"
echo " sh build.sh macOS clean"
exit 1
fi