|
...
|
...
|
@@ -5,12 +5,27 @@ if [ "$NDK" = "" ]; then
|
|
5
|
5
|
export NDK=${HOME}/android-ndk
|
|
6
|
6
|
fi
|
|
7
|
7
|
|
|
|
8
|
+echo "Fetching Android system headers"
|
|
|
9
|
+git clone --depth=1 git://github.com/CyanogenMod/android_frameworks_base.git ../android-source/frameworks/base
|
|
|
10
|
+git clone --depth=1 git://github.com/CyanogenMod/android_system_core.git ../android-source/system/core
|
|
|
11
|
+
|
|
|
12
|
+echo "Fetching Android libraries for linking"
|
|
|
13
|
+# Libraries from any froyo/gingerbread device/emulator should work
|
|
|
14
|
+# fine, since the symbols used should be available on most of them.
|
|
|
15
|
+if [ ! -f "../update-cm-7.0.3-N1-signed.zip" ]; then
|
|
|
16
|
+ wget http://download.cyanogenmod.com/get/update-cm-7.0.3-N1-signed.zip -P../
|
|
|
17
|
+ unzip update-cm-7.0.3-N1-signed.zip system/lib/* -d../
|
|
|
18
|
+ mv ../system/lib ../android-libs
|
|
|
19
|
+ rmdir ../system
|
|
|
20
|
+fi
|
|
|
21
|
+
|
|
|
22
|
+
|
|
8
|
23
|
SYSROOT=$NDK/platforms/android-9/arch-arm
|
|
9
|
24
|
# Expand the prebuilt/* path into the correct one
|
|
10
|
25
|
TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86`
|
|
11
|
26
|
export PATH=$TOOLCHAIN/bin:$PATH
|
|
12
|
|
-ANDROID_SOURCE=$HOME/android
|
|
13
|
|
-ANDROID_LIBS=$HOME/glib
|
|
|
27
|
+ANDROID_SOURCE=../android-source
|
|
|
28
|
+ANDROID_LIBS=../android-libs
|
|
14
|
29
|
|
|
15
|
30
|
rm -rf ../build/stagefright
|
|
16
|
31
|
mkdir -p ../build/stagefright
|