Last change
on this file since 26780 was 26780, checked in by davidb, 10 years ago |
Initial cut at setup files for compiling Greenstone3 using the Android NDK
|
File size:
784 bytes
|
Line | |
---|
1 |
|
---|
2 | export crossOS=android
|
---|
3 | echo "+ Setting crossOS=$crossOS"
|
---|
4 |
|
---|
5 | if [ ! -d ../ext/android-ndk ] ; then
|
---|
6 | echo "Warning: Failed to detect Android NDK extension:"
|
---|
7 | echo " <gsdl3home>/ext/android-ndk"
|
---|
8 | echo "Assuming your environment is set up independently to compile with NDK"
|
---|
9 | sleep 3;
|
---|
10 | else
|
---|
11 |
|
---|
12 | pushd ../ext/android-ndk
|
---|
13 | source ./devel.bash
|
---|
14 | popd
|
---|
15 | fi
|
---|
16 |
|
---|
17 | # Need to make sure crossOS is set before sourcing the gnome-lib ext
|
---|
18 | # to ensure GSDLOS is set to 'android'. This in turn ensures that all
|
---|
19 | # the cross-compiled files go under the 'android' install directory
|
---|
20 | # and avoids cross-contamination of shared libraries between commands
|
---|
21 | # run on the build OS (linux) and the intented final host OS (android)
|
---|
22 |
|
---|
23 | pushd ../gs2build/ext/gnome-lib
|
---|
24 | source ./devel.bash
|
---|
25 | popd
|
---|
26 |
|
---|
27 | source ./gs3-setup.bash
|
---|
28 |
|
---|
29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.