diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-03-08 15:20:27 +0000 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-03-08 15:20:27 +0000 |
commit | 8e41348edab95d3ddad0cce56be3876443c55275 (patch) | |
tree | ccff7f79430a998a8025fd4028c8be4215e73096 /data/buildscripts/build-android.sh | |
parent | 49f69726e55a719163f1c4483932cb82c2bea901 (diff) |
Added buildscripts and needed changes to crosscompile packages for MacOS, Windows and Android
Diffstat (limited to 'data/buildscripts/build-android.sh')
-rw-r--r-- | data/buildscripts/build-android.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/data/buildscripts/build-android.sh b/data/buildscripts/build-android.sh new file mode 100644 index 0000000..6fc08ec --- /dev/null +++ b/data/buildscripts/build-android.sh @@ -0,0 +1,33 @@ +#!/bin/bash +set -e + +apt-get -q -y --force-yes install openjdk-7-jdk ant mercurial ccache +apt-get -q -y --force-yes build-dep firefox + +export PATH=$PATH:$PWD/android-sdk-linux/tools:$PWD/android-sdk-linux/build-tools:$PWD/android-sdk-linux/platform-tools:/usr/local/bin + +pushd ./python/compare-locales/ +python setup.py build +python setup.py install +install -m 755 scripts/* /usr/local/bin +popd + +apt-get -q -y --force-yes install zip unzip yasm + +rm -rf obj-android + +cp ../../data/buildscripts/mozconfig-android .mozconfig + +rm extensions/gnu/abouticecat* -rf + +./mach build + +pushd obj-android/mobile/android/locales +#for loc in $(cat ../../../../mobile/android/locales/maemo-locales); do +for loc in es-ES ; do + LOCALE_MERGEDIR=$PWD/merge-$loc make merge-$loc LOCALE_MERGEDIR=$PWD/merge-$loc + make LOCALE_MERGEDIR=$PWD/merge-$loc chrome-$loc LOCALE_MERGEDIR=$PWD/merge-$loc +done +popd + +./mach package |