More non-ABI-specific script

This commit is contained in:
str4d
2014-08-05 23:31:01 +00:00
parent 66d370abeb
commit 464adb9e71

View File

@ -69,6 +69,17 @@ if [ ! -d "$GMP" ]; then
exit 1
fi
if [ `uname -s` = "Darwin" ]; then
export JAVA_HOME=$(/usr/libexec/java_home)
else
[ -z $JAVA_HOME ] && . $I2PBASE/core/c/find-java-home
fi
if [ ! -f "$JAVA_HOME/include/jni.h" ]; then
echo "Cannot find jni.h! Looked in '$JAVA_HOME/include/jni.h'"
echo "Please set JAVA_HOME to a java home that has the JNI"
exit 1
fi
#
# API level, pulled from ../AndroidManifest.xml
#
@ -153,17 +164,6 @@ fi
echo "Building GMP..."
make || exit 1
if [ `uname -s` = "Darwin" ]; then
export JAVA_HOME=$(/usr/libexec/java_home)
else
[ -z $JAVA_HOME ] && . $I2PBASE/core/c/find-java-home
fi
if [ ! -f "$JAVA_HOME/include/jni.h" ]; then
echo "Cannot find jni.h! Looked in '$JAVA_HOME/include/jni.h'"
echo "Please set JAVA_HOME to a java home that has the JNI"
exit 1
fi
COMPILEFLAGS="-fPIC -Wall"
INCLUDES="-I. -I$JBIGI/jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
LINKFLAGS="-shared -Wl,-soname,libjbigi.so,--fix-cortex-a8"