source: gs2-extensions/gnome-lib/trunk/src/CROSS-COMPILE.sh@ 26788

Last change on this file since 26788 was 26788, checked in by davidb, 9 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
3export crossOS=android
4
5if [ $crossOS = "windows" ] ; then
6 export crossHost=i686-w64-mingw32
7elif [ $crossOS = "android" ] ; then
8 export crossHost=arm-linux-androideabi
9fi
10
11export CROSSCONFIGURE_VARS="CPP=$crossHost-cpp CC=$crossHost-gcc CXX=$crossHost-g++ LD=$crossHost-ld AR=$crossHost-ar RANLIB=$crossHost-ranlib"
12
13export CROSSCONFIGURE_ARGS="--host=$crossHost"
14
15if [ $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
33fi
34
35./CASCADE-MAKE.sh $*
36
37
38
Note: See TracBrowser for help on using the repository browser.