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 |
|
---|
2 | export crossOS=android
|
---|
3 | echo "+ Setting crossOS=$crossOS"
|
---|
4 | export GSDLOS=android
|
---|
5 |
|
---|
6 | export NDK_HOME=`pwd`
|
---|
7 | export PATH=$NDK_HOME/android_toolchain/bin:$NDK_HOME/android-ndk-r8b:$PATH
|
---|
8 |
|
---|
9 | echo "+ Setting NDK_HOME to $NDK_HOME"
|
---|
10 | echo "+ Updating PATH to include 'android_toolchain/bin/' and 'ndk-build'"
|
---|
11 |
|
---|
12 | export CPP=arm-linux-androideabi-cpp
|
---|
13 | export CC=arm-linux-androideabi-gcc
|
---|
14 | export CXX=arm-linux-androideabi-g++
|
---|
15 | export LD=arm-linux-androideabi-ld
|
---|
16 | export AR=arm-linux-androideabi-ar
|
---|
17 | export RANLIB=arm-linux-androideabi-ranlib
|
---|
18 |
|
---|
19 | echo "+ 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 |
|
---|
28 | if [ ! -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;
|
---|
32 | else
|
---|
33 |
|
---|
34 | pushd ../gs2build/ext/gnome-lib \
|
---|
35 | && source ./devel.bash \
|
---|
36 | && popd
|
---|
37 | fi
|
---|
38 |
|
---|
39 | source ./gs3-setup.bash
|
---|
40 |
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.