source: local/greenstone3/linux-android-ndk-cross/gs3-devel.bash@ 26840

Last change on this file since 26840 was 26840, checked in by davidb, 11 years ago

Dropping back to r8b version of NDK to work with cross compiling Perl

File size: 1.2 KB
Line 
1
2export crossOS=android
3echo "+ Setting crossOS=$crossOS"
4export GSDLOS=android
5
6export NDK_HOME=`pwd`
7export PATH=$NDK_HOME/android_toolchain/bin:$NDK_HOME/android-ndk-r8b:$PATH
8
9echo "+ Setting NDK_HOME to $NDK_HOME"
10echo "+ Updating PATH to include 'android_toolchain/bin/' and 'ndk-build'"
11
12export CPP=arm-linux-androideabi-cpp
13export CC=arm-linux-androideabi-gcc
14export CXX=arm-linux-androideabi-g++
15export LD=arm-linux-androideabi-ld
16export AR=arm-linux-androideabi-ar
17export RANLIB=arm-linux-androideabi-ranlib
18
19echo "+ Set export variables CPP, CC etc to arm-linux-androideabi-XXX"
20
21# Need to make sure crossOS is set before sourcing the gnome-lib ext
22# to ensure GSDLOS is set to 'android'. This in turn ensures that all
23# the cross-compiled files go under the 'android' install directory
24# and avoids cross-contamination of shared libraries between commands
25# run on the build OS (linux) and the intented final host OS (android)
26
27
28if [ ! -d ../gs2build/ext/gnome-lib ] ; then
29 echo "Warning: Failed to detect gnome-lib extension in gs2build:"
30 echo " <gsdl3home>/gs2build/ext/gnome-lib"
31 sleep 5;
32else
33
34 pushd ../gs2build/ext/gnome-lib \
35 && source ./devel.bash \
36 && popd
37fi
38
39source ./gs3-setup.bash
40
41
Note: See TracBrowser for help on using the repository browser.