Added some wrapper shell scripts to make android compiling easier
authorPaul Hunkin <paul@bieh.net>
Sun, 23 May 2010 15:13:39 +1200
changeset 4699 925008931501
parent 4698 52697090c967
child 4700 cf23d9b8e606
Added some wrapper shell scripts to make android compiling easier
build-scripts/acc.sh
build-scripts/ald.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build-scripts/acc.sh	Sun May 23 15:13:39 2010 +1200
@@ -0,0 +1,15 @@
+#!/bin/bash
+ANDROID_NDK="/home/paul/Projects/gsoc/sdk/android-ndk-r4"
+TOOLS_PATH="$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin"
+
+export PATH=$TOOLS_PATH:$PATH
+
+CC="arm-eabi-gcc"
+
+#cflags
+ACC_C="	-I$ANDROID_NDK/build/platforms/android-4/common/include \
+		-I$ANDROID_NDK/build/platforms/android-4/arch-arm/usr/include \
+		-DANDROID -c"
+		
+		
+$CC $CFLAGS $ACC_C $@
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build-scripts/ald.sh	Sun May 23 15:13:39 2010 +1200
@@ -0,0 +1,18 @@
+#!/bin/bash
+ANDROID_NDK="/home/paul/Projects/gsoc/sdk/android-ndk-r4"
+TOOLS_PATH="$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin"
+
+export PATH=$TOOLS_PATH:$PATH
+
+LD="arm-eabi-ld"
+
+#ldflags
+ACC_L="	-rpath-link=$ANDROID_NDK/build/platforms/android-4/arch-arm/usr/lib/ \
+		-dynamic-linker=/system/bin/linker \
+		-L$ANDROID_NDK/build/platforms/android-3/arch-arm/usr/lib/ -lc -nostdlib \
+ 		$ANDROID_NDK/build/platforms/android-4/arch-arm/usr/lib/crtbegin_static.o \
+ 		-L$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1 "
+		
+$LD $ACC_L $LDFLAGS $@ -lgcc
+
+