Line | |
---|
1 |
|
---|
2 | export crossOS=android
|
---|
3 | echo "+ Setting crossOS=$crossOS"
|
---|
4 | export GSDLOS=android
|
---|
5 | echo "+ Setting GSDLOS=android"
|
---|
6 | echo "======="
|
---|
7 |
|
---|
8 | export NDK_HOME=`pwd`
|
---|
9 | #export PATH=$NDK_HOME/android_toolchain/bin:$NDK_HOME/android-ndk-r8d:$PATH
|
---|
10 | export PATH=$NDK_HOME/android_toolchain/bin:$PATH
|
---|
11 |
|
---|
12 | echo "+ Setting NDK_HOME to $NDK_HOME"
|
---|
13 | #echo "+ Updating PATH to include 'android_toolchain/bin/' and 'ndk-build'"
|
---|
14 | echo "+ Updating PATH to include 'android_toolchain/bin/'"
|
---|
15 |
|
---|
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 |
|
---|
23 | echo "+ 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 |
|
---|
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 |
|
---|
43 | source ./gs3-setup.bash
|
---|
44 |
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.