MIPS architecture support added. Native camera library built for MIPS device.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 2 Oct 2012 10:55:51 +0000 (14:55 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 2 Oct 2012 12:21:53 +0000 (16:21 +0400)
3rdparty/lib/mips/libnative_camera_r4.0.3.so [new file with mode: 0644]
android/scripts/camera_build.conf
android/scripts/cmake_android_all_cameras.py
android/scripts/cmake_android_mips.sh [new file with mode: 0755]

diff --git a/3rdparty/lib/mips/libnative_camera_r4.0.3.so b/3rdparty/lib/mips/libnative_camera_r4.0.3.so
new file mode 100644 (file)
index 0000000..616323d
Binary files /dev/null and b/3rdparty/lib/mips/libnative_camera_r4.0.3.so differ
index 35eaac3..60c56d1 100644 (file)
@@ -10,6 +10,7 @@ native_camera_r3.0.1; x86;         9;  /home/alexander/Projects/AndroidSource/3.
 native_camera_r4.0.3; armeabi;     14; /home/alexander/Projects/AndroidSource/4.0.3
 native_camera_r4.0.3; armeabi-v7a; 14; /home/alexander/Projects/AndroidSource/4.0.3
 native_camera_r4.0.3; x86;         14; /home/alexander/Projects/AndroidSource/4.0.3
+native_camera_r4.0.3; mips;        14; /home/alexander/Projects/AndroidSource/4.0.3_mips
 native_camera_r4.0.0; armeabi;     14; /home/alexander/Projects/AndroidSource/4.0.0
 native_camera_r4.0.0; armeabi-v7a; 14; /home/alexander/Projects/AndroidSource/4.0.0
 native_camera_r4.1.1; armeabi;     14; /home/alexander/Projects/AndroidSource/4.1.1
index facd147..f6c843f 100755 (executable)
@@ -32,6 +32,8 @@ for s in ConfFile.readlines():
     shutil.rmtree(os.path.join(AndroidTreeRoot, "out", "target", "product", "generic", "system"), ignore_errors=True)
     if (Arch == "x86"):
        shutil.copytree(os.path.join(AndroidTreeRoot, "bin_x86", "system"), os.path.join(AndroidTreeRoot, "out", "target", "product", "generic", "system"))
+    elif (Arch == "mips"):
+       shutil.copytree(os.path.join(AndroidTreeRoot, "bin_mips", "system"), os.path.join(AndroidTreeRoot, "out", "target", "product", "generic", "system"))
     else:
        shutil.copytree(os.path.join(AndroidTreeRoot, "bin_arm", "system"), os.path.join(AndroidTreeRoot, "out", "target", "product", "generic", "system"))
     os.chdir(BuildDir)
diff --git a/android/scripts/cmake_android_mips.sh b/android/scripts/cmake_android_mips.sh
new file mode 100755 (executable)
index 0000000..17d2ff9
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+cd `dirname $0`/..
+
+mkdir -p build_mips
+cd build_mips
+
+cmake -DANDROID_ABI=mips -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
+