root/local/greenstone3/linux-android-ndk-cross/gs3-devel.bash @ 26842

Revision 26842, 1.4 KB (checked in by davidb, 7 years ago)

More minimal PATH for Android-NDK

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