Last change
on this file since 26788 was 26788, checked in by davidb, 11 years ago |
Cascade make can now patch files if needed
|
-
Property svn:executable
set to
*
|
File size:
945 bytes
|
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 | ./ANDROID-FIX-CONFIG.sh
|
---|
21 |
|
---|
22 | echo "Updated config.guess and config.sub files" > .CONFIG-UPDATE-DONE
|
---|
23 |
|
---|
24 | echo "Applying android.patchs"
|
---|
25 | cd packages \
|
---|
26 | && patch -p0 < android-patches/gettext-android.patch \
|
---|
27 | && patch -p0 < android-patches/libxml2-android.patch \
|
---|
28 | && patch -p0 < android-patches/glib-android.patch \
|
---|
29 | && cd ..
|
---|
30 | sleep 3
|
---|
31 |
|
---|
32 | fi
|
---|
33 | fi
|
---|
34 |
|
---|
35 | ./CASCADE-MAKE.sh $*
|
---|
36 |
|
---|
37 |
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.