Mercurial > sdl-ios-xcode
annotate android/scripts/ald.sh @ 4914:cc7ac6aaac5d
Code style updates.
author | Daniel Wyatt <Daniel.Wyatt@gmail.com> |
---|---|
date | Tue, 23 Nov 2010 20:29:45 -0500 |
parents | 0f05f2f16fad |
children |
rev | line source |
---|---|
4699
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
1 #!/bin/bash |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
2 ANDROID_NDK="/home/paul/Projects/gsoc/sdk/android-ndk-r4" |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
3 TOOLS_PATH="$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin" |
4701
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
4 ADDITIONAL_LIBS=`dirname "$0"`/android_libs/ |
4699
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
5 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
6 export PATH=$TOOLS_PATH:$PATH |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
7 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
8 LD="arm-eabi-ld" |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
9 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
10 #ldflags |
4701
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
11 ACC_L=" -rpath-link=$ANDROID_NDK/build/platforms/android-8/arch-arm/usr/lib/ \ |
4699
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
12 -dynamic-linker=/system/bin/linker \ |
4701
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
13 -lc -nostdlib \ |
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
14 $ANDROID_NDK/build/platforms/android-8/arch-arm/usr/lib/crtbegin_static.o \ |
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
15 -L$ANDROID_NDK/build/platforms/android-8/arch-arm/usr/lib/ \ |
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
16 -L$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/lib/gcc/arm-eabi/4.2.1 \ |
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
17 -L$ADDITIONAL_LIBS " |
4699
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
18 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
19 $LD $ACC_L $LDFLAGS $@ -lgcc |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
20 |