Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (19 sloc) 0.656 kb
#!/bin/bash -x
#
source scripts/env
cd $COUCH_ANDROID_HOME/build/deps/ndk
NDK=android-ndk-r4c-0moz3
[[ -f $NDK.tar.bz2 ]] || wget http://ftp.mozilla.org/pub/mozilla.org/mobile/source/$NDK.tar.bz2
tar -jxf $NDK.tar.bz2
ANDROID_NDK=$COUCH_ANDROID_HOME/build/deps/ndk/android-ndk-r4c
cd $COUCH_ANDROID_HOME/build/deps/mozilla-current/mozilla-central/nsprpub
./configure \
--target=arm-android-eabi \
--with-android-ndk=$ANDROID_NDK \
--with-android-platform=$ANDROID_NDK/build/platforms/android-8/arch-arm \
--enable-strip
make -s
MAKESTATUS=$?
# Remove shared libraries so that Couch is built with the static ones
rm dist/lib/*so
exit $MAKESTATUS
Jump to Line
Something went wrong with that request. Please try again.