Added some wrapper shell scripts to make android compiling easier
authorPaul Hunkin
Sun, 23 May 2010 15:13:39 +1200
changeset 4699925008931501
parent 4698 52697090c967
child 4700 cf23d9b8e606
Added some wrapper shell scripts to make android compiling easier
build-scripts/acc.sh
build-scripts/ald.sh
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build-scripts/acc.sh	Sun May 23 15:13:39 2010 +1200
     1.3 @@ -0,0 +1,15 @@
     1.4 +#!/bin/bash
     1.5 +ANDROID_NDK="/home/paul/Projects/gsoc/sdk/android-ndk-r4"
     1.6 +TOOLS_PATH="$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin"
     1.7 +
     1.8 +export PATH=$TOOLS_PATH:$PATH
     1.9 +
    1.10 +CC="arm-eabi-gcc"
    1.11 +
    1.12 +#cflags
    1.13 +ACC_C="	-I$ANDROID_NDK/build/platforms/android-4/common/include \
    1.14 +		-I$ANDROID_NDK/build/platforms/android-4/arch-arm/usr/include \
    1.15 +		-DANDROID -c"
    1.16 +		
    1.17 +		
    1.18 +$CC $CFLAGS $ACC_C $@
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/build-scripts/ald.sh	Sun May 23 15:13:39 2010 +1200
     2.3 @@ -0,0 +1,18 @@
     2.4 +#!/bin/bash
     2.5 +ANDROID_NDK="/home/paul/Projects/gsoc/sdk/android-ndk-r4"
     2.6 +TOOLS_PATH="$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin"
     2.7 +
     2.8 +export PATH=$TOOLS_PATH:$PATH
     2.9 +
    2.10 +LD="arm-eabi-ld"
    2.11 +
    2.12 +#ldflags
    2.13 +ACC_L="	-rpath-link=$ANDROID_NDK/build/platforms/android-4/arch-arm/usr/lib/ \
    2.14 +		-dynamic-linker=/system/bin/linker \
    2.15 +		-L$ANDROID_NDK/build/platforms/android-3/arch-arm/usr/lib/ -lc -nostdlib \
    2.16 + 		$ANDROID_NDK/build/platforms/android-4/arch-arm/usr/lib/crtbegin_static.o \
    2.17 + 		-L$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1 "
    2.18 +		
    2.19 +$LD $ACC_L $LDFLAGS $@ -lgcc
    2.20 +
    2.21 +