Rev | Line | |
---|
[26780] | 1 |
|
---|
| 2 | export crossOS=android
|
---|
| 3 | echo "+ Setting crossOS=$crossOS"
|
---|
[26840] | 4 | export GSDLOS=android
|
---|
[26842] | 5 | echo "+ Setting GSDLOS=android"
|
---|
| 6 | echo "======="
|
---|
[26780] | 7 |
|
---|
[26835] | 8 | export NDK_HOME=`pwd`
|
---|
[26842] | 9 | #export PATH=$NDK_HOME/android_toolchain/bin:$NDK_HOME/android-ndk-r8d:$PATH
|
---|
| 10 | export PATH=$NDK_HOME/android_toolchain/bin:$PATH
|
---|
[26780] | 11 |
|
---|
[26835] | 12 | echo "+ Setting NDK_HOME to $NDK_HOME"
|
---|
[26842] | 13 | #echo "+ Updating PATH to include 'android_toolchain/bin/' and 'ndk-build'"
|
---|
| 14 | echo "+ Updating PATH to include 'android_toolchain/bin/'"
|
---|
[26780] | 15 |
|
---|
[26835] | 16 | export CPP=arm-linux-androideabi-cpp
|
---|
| 17 | export CC=arm-linux-androideabi-gcc
|
---|
| 18 | export CXX=arm-linux-androideabi-g++
|
---|
| 19 | export LD=arm-linux-androideabi-ld
|
---|
| 20 | export AR=arm-linux-androideabi-ar
|
---|
| 21 | export RANLIB=arm-linux-androideabi-ranlib
|
---|
| 22 |
|
---|
[26840] | 23 | echo "+ Set export variables CPP, CC etc to arm-linux-androideabi-XXX"
|
---|
[26835] | 24 |
|
---|
[26780] | 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 |
|
---|
[26840] | 32 | if [ ! -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;
|
---|
| 36 | else
|
---|
| 37 |
|
---|
| 38 | pushd ../gs2build/ext/gnome-lib \
|
---|
| 39 | && source ./devel.bash \
|
---|
| 40 | && popd
|
---|
| 41 | fi
|
---|
| 42 |
|
---|
[26780] | 43 | source ./gs3-setup.bash
|
---|
| 44 |
|
---|
| 45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.