Last change
on this file since 26764 was 26764, checked in by davidb, 11 years ago |
Cross compile script initial developed for mingw on Linux. In the process of being developed for Android NDK
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 |
|
---|
2 | #export crossOS=windows
|
---|
3 | export crossOS=android
|
---|
4 |
|
---|
5 | if [ $crossOS = "windows" ] ; then
|
---|
6 | export crossHost=i686-w64-mingw32
|
---|
7 | elif [ $crossOS = "android" ] ; then
|
---|
8 | export crossHost=arm-linux-androideabi
|
---|
9 | fi
|
---|
10 |
|
---|
11 | export CROSSCONFIGURE_VARS="CPP=$crossHost-cpp CC=$crossHost-gcc CXX=$crossHost-g++ LD=$crossHost-ld AR=$crossHost-ar RANLIB=$crossHost-ranlib"
|
---|
12 |
|
---|
13 | export CROSSCONFIGURE_ARGS="--host=$crossHost"
|
---|
14 |
|
---|
15 | if [ $crossOS = "android" ] ; then
|
---|
16 |
|
---|
17 | if [ "x$1" = "xtarclean" ] ; then
|
---|
18 | /bin/rm .CONFIG-UPDATE-DONE
|
---|
19 | elif [ ! -f .CONFIG-UPDATE-DONE ] ; then
|
---|
20 | echo "****"
|
---|
21 | echo "* For Android cross-compiling, not all tarred-up packages"
|
---|
22 | echo "* are new enough to shiip with configure files (config.guess"
|
---|
23 | echo "* and config.sub) that recognize android as a --host choice"
|
---|
24 | echo "****"
|
---|
25 |
|
---|
26 | echo "..."
|
---|
27 | sleep 2
|
---|
28 |
|
---|
29 | ./CASCADE-MAKE.sh untar
|
---|
30 | echo "=> Updating config.guess to newer version for all packages"
|
---|
31 | find packages -name "config.guess" -exec /bin/cp android-extra/config.guess {} \; -print
|
---|
32 | echo "=> Updating config.sub to newer version for all packages"
|
---|
33 | find packages -name "config.sub" -exec /bin/cp android-extra/config.sub {} \; -print
|
---|
34 |
|
---|
35 | echo "****"
|
---|
36 | sleep 2
|
---|
37 |
|
---|
38 | echo "Updated config.guess and config.sub files" > .CONFIG-UPDATE-DONE
|
---|
39 | fi
|
---|
40 | fi
|
---|
41 |
|
---|
42 | ./CASCADE-MAKE.sh $*
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.