forked from cropsly/ffmpeg-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid_build.sh
executable file
·30 lines (26 loc) · 948 Bytes
/
android_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
#!/bin/bash
. settings.sh
BASEDIR=$(pwd)
TOOLCHAIN_PREFIX=${BASEDIR}/toolchain-android
# Applying required patches
patch -p0 -N --dry-run --silent -f fontconfig/src/fcxml.c < android_donot_use_lconv.patch 1>/dev/null
if [ $? -eq 0 ]; then
patch -p0 -f fontconfig/src/fcxml.c < android_donot_use_lconv.patch
fi
for i in "${SUPPORTED_ARCHITECTURES[@]}"
do
rm -rf ${TOOLCHAIN_PREFIX}
# $1 = architecture
# $2 = base directory
# $3 = pass 1 if you want to export default compiler environment variables
./x264_build.sh $i $BASEDIR 0 || exit 1
./libpng_build.sh $i $BASEDIR 1 || exit 1
#./freetype_build.sh $i $BASEDIR 1 || exit 1
./expat_build.sh $i $BASEDIR 1 || exit 1
#./fribidi_build.sh $i $BASEDIR 1 || exit 1
#./fontconfig_build.sh $i $BASEDIR 1 || exit 1
#./libass_build.sh $i $BASEDIR 1 || exit 1
#./lame_build.sh $i $BASEDIR 1 || exit 1
./ffmpeg_build.sh $i $BASEDIR 0 || exit 1
done
rm -rf ${TOOLCHAIN_PREFIX}