Skip to content

Commit

Permalink
Removed libpng submodule and using official libpng url to build it
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshsondhi88 committed Sep 5, 2014
1 parent 09af863 commit ea870ce
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.o
build
toolchain-*
libpng-*

# Created by http://www.gitignore.io

Expand Down Expand Up @@ -33,4 +34,3 @@ Temporary Items

# KDE directory preferences
.directory

3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
[submodule "expat"]
path = expat
url = https://github.com/hiteshsondhi88/expat.git
[submodule "libpng"]
path = libpng
url = https://github.com/hiteshsondhi88/libpng.git
[submodule "fribidi"]
path = fribidi
url = https://github.com/hiteshsondhi88/fribidi.git
Expand Down
11 changes: 11 additions & 0 deletions download_from_repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

url="$1"
tarcommand="$2"
dirname="$3"
delete_regex="$4"

if [ ! -d "$dirname" ]; then
rm -rf $delete_regex
wget -O- "$url" | tar "$tarcommand"
fi
1 change: 0 additions & 1 deletion libpng
Submodule libpng deleted from 259fb7
Binary file modified libpng_build.sh
Binary file not shown.
4 changes: 4 additions & 0 deletions settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

SUPPORTED_ARCHITECTURES=(armeabi-v7a armeabi-v7a-neon)
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

Expand Down

0 comments on commit ea870ce

Please sign in to comment.