Skip to content

Release/v0.4 #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion abi_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ esac

TOOLCHAIN_PREFIX=${BASEDIR}/toolchain-android
if [ ! -d "$TOOLCHAIN_PREFIX" ]; then
${ANDROID_NDK_ROOT_PATH}/build/tools/make-standalone-toolchain.sh --toolchain=${NDK_TOOLCHAIN_ABI}-${NDK_TOOLCHAIN_ABI_VERSION} --platform=android-${ANDROID_API_VERSION} --install-dir=${TOOLCHAIN_PREFIX}
${ANDROID_NDK_ROOT_PATH}/build/tools/make_standalone_toolchain.py --arch=${NDK_ABI} --api=${ANDROID_API_VERSION} --install-dir=${TOOLCHAIN_PREFIX}
fi
CROSS_PREFIX=${TOOLCHAIN_PREFIX}/bin/${NDK_CROSS_PREFIX}-
NDK_SYSROOT=${TOOLCHAIN_PREFIX}/sysroot
Expand Down
8 changes: 4 additions & 4 deletions android_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
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
# 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
Expand Down
22 changes: 0 additions & 22 deletions android_donot_use_lconv.patch

This file was deleted.

2 changes: 1 addition & 1 deletion expat_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. abi_settings.sh $1 $2 $3

pushd expat-2.1.0
pushd expat-2.2.1

make clean

Expand Down
2 changes: 1 addition & 1 deletion ffmpeg
Submodule ffmpeg updated from fda00a to 6d7192
10 changes: 6 additions & 4 deletions ffmpeg_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

. abi_settings.sh $1 $2 $3

pushd ffmpeg
oot="${2}/build/${1}/oot/ffmpeg"
mkdir -p "$oot"
pushd "$oot"

case $1 in
armeabi-v7a | armeabi-v7a-neon)
Expand All @@ -13,9 +15,9 @@ case $1 in
;;
esac

make clean
make distclean

./configure \
"${2}/ffmpeg/configure" \
--target-os="$TARGET_OS" \
--cross-prefix="$CROSS_PREFIX" \
--arch="$NDK_ABI" \
Expand All @@ -37,7 +39,7 @@ make clean
--disable-ffplay \
--disable-ffprobe \
--enable-gpl \
--enable-yasm \
--disable-asm \
--disable-doc \
--disable-shared \
--enable-static \
Expand Down
2 changes: 1 addition & 1 deletion fontconfig
Submodule fontconfig updated from 1827ef to 690f82
2 changes: 1 addition & 1 deletion freetype2
Submodule freetype2 updated from 44accb to a12a34
10 changes: 5 additions & 5 deletions init_update_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

echo "============================================"
echo "Updating submodules"
git submodule update --init
git submodule update --init || exit 1
echo "============================================"
echo "Updating libpng, expat and fribidi"
rm -rf libpng-*
rm -rf expat-*
rm -rf fribidi-*
rm -rf lame-*

wget -O- ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.21.tar.xz | tar xJ
wget -O- http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz | tar xz
wget -O- http://fribidi.org/download/fribidi-0.19.7.tar.bz2 | tar xj
wget -O- http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz | tar xz
wget -O- ftp://ftp-osl.osuosl.org/pub/libpng/src/libpng16/libpng-1.6.30.tar.xz | tar xJ || exit 1
wget -O- http://downloads.sourceforge.net/project/expat/expat/2.2.1/expat-2.2.1.tar.bz2 | tar xj || exit 1
wget -O- http://fribidi.org/download/fribidi-0.19.7.tar.bz2 | tar xj || exit 1
wget -O- http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz | tar xz || exit 1
echo "============================================"
2 changes: 1 addition & 1 deletion libpng_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. abi_settings.sh $1 $2 $3

pushd libpng-1.6.21
pushd libpng-1.6.30

make clean

Expand Down
8 changes: 4 additions & 4 deletions settings.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/bash

SUPPORTED_ARCHITECTURES=(armeabi-v7a armeabi-v7a-neon x86)
SUPPORTED_ARCHITECTURES=(armeabi-v7a x86)
ANDROID_NDK_ROOT_PATH=${ANDROID_NDK}
if [[ -z "$ANDROID_NDK_ROOT_PATH" ]]; then
echo "You need to set ANDROID_NDK environment variable, please check instructions"
exit
fi
ANDROID_API_VERSION=9
NDK_TOOLCHAIN_ABI_VERSION=4.8
ANDROID_API_VERSION=14
NDK_TOOLCHAIN_ABI_VERSION=4.9

NUMBER_OF_CORES=$(nproc)
HOST_UNAME=$(uname -m)
TARGET_OS=linux
TARGET_OS=android

CFLAGS='-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all'
LDFLAGS='-Wl,-z,relro -Wl,-z,now -pie'
Expand Down
2 changes: 1 addition & 1 deletion x264
Submodule x264 updated from 5c6570 to aaa9aa