android -> plarforms/android
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Fri, 17 May 2013 13:15:20 +0000 (17:15 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Mon, 27 May 2013 07:10:38 +0000 (11:10 +0400)
134 files changed:
CMakeLists.txt
android/refman.rst [deleted file]
cmake/OpenCVGenConfig.cmake
doc/CMakeLists.txt
doc/conf.py
index.rst
modules/androidcamera/CMakeLists.txt
platforms/android/README.android [moved from android/README.android with 100% similarity]
platforms/android/android.toolchain.cmake [moved from android/android.toolchain.cmake with 100% similarity]
platforms/android/java.rst [moved from android/java.rst with 100% similarity]
platforms/android/libinfo/CMakeLists.txt [moved from android/libinfo/CMakeLists.txt with 100% similarity]
platforms/android/libinfo/info.c [moved from android/libinfo/info.c with 100% similarity]
platforms/android/package/AndroidManifest.xml [moved from android/package/AndroidManifest.xml with 100% similarity]
platforms/android/package/CMakeLists.txt [moved from android/package/CMakeLists.txt with 100% similarity]
platforms/android/package/res/drawable/icon.png [moved from android/service/engine/res/drawable/icon.png with 100% similarity]
platforms/android/package/res/values/strings.xml [moved from android/package/res/values/strings.xml with 100% similarity]
platforms/android/scripts/ABI_compat_generator.py [moved from android/scripts/ABI_compat_generator.py with 100% similarity]
platforms/android/scripts/build.cmd [moved from android/scripts/build.cmd with 100% similarity]
platforms/android/scripts/camera_build.conf [moved from android/scripts/camera_build.conf with 100% similarity]
platforms/android/scripts/cmake_android.cmd [moved from android/scripts/cmake_android.cmd with 100% similarity]
platforms/android/scripts/cmake_android.sh [moved from android/scripts/cmake_android.sh with 75% similarity]
platforms/android/scripts/cmake_android_all_cameras.py [moved from android/scripts/cmake_android_all_cameras.py with 92% similarity]
platforms/android/scripts/cmake_android_armeabi.sh [moved from android/scripts/cmake_android_armeabi.sh with 83% similarity]
platforms/android/scripts/cmake_android_debug.sh [new file with mode: 0755]
platforms/android/scripts/cmake_android_mips.sh [moved from android/scripts/cmake_android_mips.sh with 84% similarity]
platforms/android/scripts/cmake_android_neon.sh [moved from android/scripts/cmake_android_neon.sh with 75% similarity]
platforms/android/scripts/cmake_android_service.sh [moved from android/scripts/cmake_android_service.sh with 95% similarity]
platforms/android/scripts/cmake_android_service_x86.sh [new file with mode: 0755]
platforms/android/scripts/cmake_android_x86.sh [moved from android/scripts/cmake_android_x86.sh with 85% similarity]
platforms/android/scripts/wincfg.cmd.tmpl [moved from android/scripts/wincfg.cmd.tmpl with 100% similarity]
platforms/android/service/CMakeLists.txt [moved from android/service/CMakeLists.txt with 100% similarity]
platforms/android/service/all.py [moved from android/service/all.py with 100% similarity]
platforms/android/service/device.conf [moved from android/service/device.conf with 100% similarity]
platforms/android/service/doc/AndroidAppUsageModel.dia [moved from android/service/doc/AndroidAppUsageModel.dia with 100% similarity]
platforms/android/service/doc/BaseLoaderCallback.rst [moved from android/service/doc/BaseLoaderCallback.rst with 100% similarity]
platforms/android/service/doc/InstallCallbackInterface.rst [moved from android/service/doc/InstallCallbackInterface.rst with 100% similarity]
platforms/android/service/doc/Intro.rst [moved from android/service/doc/Intro.rst with 100% similarity]
platforms/android/service/doc/JavaHelper.rst [moved from android/service/doc/JavaHelper.rst with 100% similarity]
platforms/android/service/doc/LibInstallAproved.dia [moved from android/service/doc/LibInstallAproved.dia with 100% similarity]
platforms/android/service/doc/LibInstallCanceled.dia [moved from android/service/doc/LibInstallCanceled.dia with 100% similarity]
platforms/android/service/doc/LibInstalled.dia [moved from android/service/doc/LibInstalled.dia with 100% similarity]
platforms/android/service/doc/LoaderCallbackInterface.rst [moved from android/service/doc/LoaderCallbackInterface.rst with 100% similarity]
platforms/android/service/doc/Makefile [moved from android/service/doc/Makefile with 100% similarity]
platforms/android/service/doc/NoService.dia [moved from android/service/doc/NoService.dia with 100% similarity]
platforms/android/service/doc/Structure.dia [moved from android/service/doc/Structure.dia with 100% similarity]
platforms/android/service/doc/UseCases.rst [moved from android/service/doc/UseCases.rst with 100% similarity]
platforms/android/service/doc/build_uml.py [moved from android/service/doc/build_uml.py with 100% similarity]
platforms/android/service/doc/img/AndroidAppUsageModel.png [moved from android/service/doc/img/AndroidAppUsageModel.png with 100% similarity]
platforms/android/service/doc/img/LibInstallAproved.png [moved from android/service/doc/img/LibInstallAproved.png with 100% similarity]
platforms/android/service/doc/img/LibInstallCanceled.png [moved from android/service/doc/img/LibInstallCanceled.png with 100% similarity]
platforms/android/service/doc/img/LibInstalled.png [moved from android/service/doc/img/LibInstalled.png with 100% similarity]
platforms/android/service/doc/img/NoService.png [moved from android/service/doc/img/NoService.png with 100% similarity]
platforms/android/service/doc/img/Structure.png [moved from android/service/doc/img/Structure.png with 100% similarity]
platforms/android/service/doc/index.rst [moved from android/service/doc/index.rst with 100% similarity]
platforms/android/service/engine/.classpath [moved from android/service/engine/.classpath with 100% similarity]
platforms/android/service/engine/.project [moved from android/service/engine/.project with 100% similarity]
platforms/android/service/engine/AndroidManifest.xml [moved from android/service/engine/AndroidManifest.xml with 100% similarity]
platforms/android/service/engine/CMakeLists.txt [moved from android/service/engine/CMakeLists.txt with 97% similarity]
platforms/android/service/engine/build.xml [moved from android/service/engine/build.xml with 100% similarity]
platforms/android/service/engine/jni/Android.mk [moved from android/service/engine/jni/Android.mk with 100% similarity]
platforms/android/service/engine/jni/Application.mk [moved from android/service/engine/jni/Application.mk with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/BnOpenCVEngine.cpp [moved from android/service/engine/jni/BinderComponent/BnOpenCVEngine.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/BnOpenCVEngine.h [moved from android/service/engine/jni/BinderComponent/BnOpenCVEngine.h with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/BpOpenCVEngine.cpp [moved from android/service/engine/jni/BinderComponent/BpOpenCVEngine.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/BpOpenCVEngine.h [moved from android/service/engine/jni/BinderComponent/BpOpenCVEngine.h with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/HardwareDetector.cpp [moved from android/service/engine/jni/BinderComponent/HardwareDetector.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/HardwareDetector.h [moved from android/service/engine/jni/BinderComponent/HardwareDetector.h with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/OpenCVEngine.cpp [moved from android/service/engine/jni/BinderComponent/OpenCVEngine.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/OpenCVEngine.h [moved from android/service/engine/jni/BinderComponent/OpenCVEngine.h with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/ProcReader.cpp [moved from android/service/engine/jni/BinderComponent/ProcReader.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/ProcReader.h [moved from android/service/engine/jni/BinderComponent/ProcReader.h with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/StringUtils.cpp [moved from android/service/engine/jni/BinderComponent/StringUtils.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/StringUtils.h [moved from android/service/engine/jni/BinderComponent/StringUtils.h with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/TegraDetector.cpp [moved from android/service/engine/jni/BinderComponent/TegraDetector.cpp with 100% similarity]
platforms/android/service/engine/jni/BinderComponent/TegraDetector.h [moved from android/service/engine/jni/BinderComponent/TegraDetector.h with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/HardwareDetector_jni.cpp [moved from android/service/engine/jni/JNIWrapper/HardwareDetector_jni.cpp with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/HardwareDetector_jni.h [moved from android/service/engine/jni/JNIWrapper/HardwareDetector_jni.h with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/JavaBasedPackageManager.cpp [moved from android/service/engine/jni/JNIWrapper/JavaBasedPackageManager.cpp with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/JavaBasedPackageManager.h [moved from android/service/engine/jni/JNIWrapper/JavaBasedPackageManager.h with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/OpenCVEngine_jni.cpp [moved from android/service/engine/jni/JNIWrapper/OpenCVEngine_jni.cpp with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/OpenCVEngine_jni.h [moved from android/service/engine/jni/JNIWrapper/OpenCVEngine_jni.h with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/OpenCVLibraryInfo.cpp [moved from android/service/engine/jni/JNIWrapper/OpenCVLibraryInfo.cpp with 100% similarity]
platforms/android/service/engine/jni/JNIWrapper/OpenCVLibraryInfo.h [moved from android/service/engine/jni/JNIWrapper/OpenCVLibraryInfo.h with 100% similarity]
platforms/android/service/engine/jni/NativeClient/ClientMain.cpp [moved from android/service/engine/jni/NativeClient/ClientMain.cpp with 100% similarity]
platforms/android/service/engine/jni/NativeService/CommonPackageManager.cpp [moved from android/service/engine/jni/NativeService/CommonPackageManager.cpp with 100% similarity]
platforms/android/service/engine/jni/NativeService/CommonPackageManager.h [moved from android/service/engine/jni/NativeService/CommonPackageManager.h with 100% similarity]
platforms/android/service/engine/jni/NativeService/NativePackageManager.cpp [moved from android/service/engine/jni/NativeService/NativePackageManager.cpp with 100% similarity]
platforms/android/service/engine/jni/NativeService/NativePackageManager.h [moved from android/service/engine/jni/NativeService/NativePackageManager.h with 100% similarity]
platforms/android/service/engine/jni/NativeService/PackageInfo.cpp [moved from android/service/engine/jni/NativeService/PackageInfo.cpp with 100% similarity]
platforms/android/service/engine/jni/NativeService/PackageInfo.h [moved from android/service/engine/jni/NativeService/PackageInfo.h with 100% similarity]
platforms/android/service/engine/jni/NativeService/ServiceMain.cpp [moved from android/service/engine/jni/NativeService/ServiceMain.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/HardwareDetectionTest.cpp [moved from android/service/engine/jni/Tests/HardwareDetectionTest.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/OpenCVEngineTest.cpp [moved from android/service/engine/jni/Tests/OpenCVEngineTest.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/PackageInfoTest.cpp [moved from android/service/engine/jni/Tests/PackageInfoTest.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/PackageManagerStub.cpp [moved from android/service/engine/jni/Tests/PackageManagerStub.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/PackageManagerStub.h [moved from android/service/engine/jni/Tests/PackageManagerStub.h with 100% similarity]
platforms/android/service/engine/jni/Tests/PackageManagmentTest.cpp [moved from android/service/engine/jni/Tests/PackageManagmentTest.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/TestMain.cpp [moved from android/service/engine/jni/Tests/TestMain.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/Tests.mk [moved from android/service/engine/jni/Tests/Tests.mk with 100% similarity]
platforms/android/service/engine/jni/Tests/gtest/gtest-all.cpp [moved from android/service/engine/jni/Tests/gtest/gtest-all.cpp with 100% similarity]
platforms/android/service/engine/jni/Tests/gtest/gtest.h [moved from android/service/engine/jni/Tests/gtest/gtest.h with 100% similarity]
platforms/android/service/engine/jni/include/EngineCommon.h [moved from android/service/engine/jni/include/EngineCommon.h with 100% similarity]
platforms/android/service/engine/jni/include/IOpenCVEngine.h [moved from android/service/engine/jni/include/IOpenCVEngine.h with 100% similarity]
platforms/android/service/engine/jni/include/IPackageManager.h [moved from android/service/engine/jni/include/IPackageManager.h with 100% similarity]
platforms/android/service/engine/jni/include/OpenCVEngineHelper.h [moved from android/service/engine/jni/include/OpenCVEngineHelper.h with 100% similarity]
platforms/android/service/engine/project.properties [moved from android/service/engine_test/project.properties with 100% similarity]
platforms/android/service/engine/res/drawable/icon.png [moved from android/package/res/drawable/icon.png with 100% similarity]
platforms/android/service/engine/res/layout-small/info.xml [moved from android/service/engine/res/layout-small/info.xml with 100% similarity]
platforms/android/service/engine/res/layout-small/main.xml [moved from android/service/engine/res/layout-small/main.xml with 100% similarity]
platforms/android/service/engine/res/layout/info.xml [moved from android/service/engine/res/layout/info.xml with 100% similarity]
platforms/android/service/engine/res/layout/main.xml [moved from android/service/engine/res/layout/main.xml with 100% similarity]
platforms/android/service/engine/res/values/strings.xml [moved from android/service/engine/res/values/strings.xml with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/BinderConnector.java [moved from android/service/engine/src/org/opencv/engine/BinderConnector.java with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/HardwareDetector.java [moved from android/service/engine/src/org/opencv/engine/HardwareDetector.java with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/MarketConnector.java [moved from android/service/engine/src/org/opencv/engine/MarketConnector.java with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineInterface.aidl [moved from android/service/engine/src/org/opencv/engine/OpenCVEngineInterface.aidl with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java [moved from android/service/engine/src/org/opencv/engine/OpenCVEngineService.java with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/OpenCVLibraryInfo.java [moved from android/service/engine/src/org/opencv/engine/OpenCVLibraryInfo.java with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java [moved from android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java with 100% similarity]
platforms/android/service/engine/src/org/opencv/engine/manager/PackageListAdapter.java [moved from android/service/engine/src/org/opencv/engine/manager/PackageListAdapter.java with 100% similarity]
platforms/android/service/engine_test/.classpath [moved from android/service/engine_test/.classpath with 100% similarity]
platforms/android/service/engine_test/.project [moved from android/service/engine_test/.project with 100% similarity]
platforms/android/service/engine_test/AndroidManifest.xml [moved from android/service/engine_test/AndroidManifest.xml with 100% similarity]
platforms/android/service/engine_test/build.xml [moved from android/service/engine_test/build.xml with 100% similarity]
platforms/android/service/engine_test/project.properties [moved from android/service/engine/project.properties with 100% similarity]
platforms/android/service/engine_test/res/drawable-hdpi/ic_launcher.png [moved from android/service/engine_test/res/drawable-hdpi/ic_launcher.png with 100% similarity]
platforms/android/service/engine_test/res/drawable-ldpi/ic_launcher.png [moved from android/service/engine_test/res/drawable-ldpi/ic_launcher.png with 100% similarity]
platforms/android/service/engine_test/res/drawable-mdpi/ic_launcher.png [moved from android/service/engine_test/res/drawable-mdpi/ic_launcher.png with 100% similarity]
platforms/android/service/engine_test/res/layout/main.xml [moved from android/service/engine_test/res/layout/main.xml with 100% similarity]
platforms/android/service/engine_test/res/values/strings.xml [moved from android/service/engine_test/res/values/strings.xml with 100% similarity]
platforms/android/service/engine_test/src/org/opencv/engine/test/EngineInterfaceTest.java [moved from android/service/engine_test/src/org/opencv/engine/test/EngineInterfaceTest.java with 100% similarity]
platforms/android/service/push_native.py [moved from android/service/push_native.py with 100% similarity]
platforms/android/service/readme.txt [moved from android/service/readme.txt with 100% similarity]
platforms/android/service/test_native.py [moved from android/service/test_native.py with 100% similarity]

index 93549c9..e9aa14f 100644 (file)
@@ -456,15 +456,15 @@ if(BUILD_EXAMPLES OR BUILD_ANDROID_EXAMPLES OR INSTALL_PYTHON_EXAMPLES)
 endif()
 
 if(ANDROID)
-  add_subdirectory(android/service)
+  add_subdirectory(platforms/android/service)
 endif()
 
 if(BUILD_ANDROID_PACKAGE)
-  add_subdirectory(android/package)
+  add_subdirectory(platforms/android/package)
 endif()
 
 if (ANDROID)
-  add_subdirectory(android/libinfo)
+  add_subdirectory(platforms/android/libinfo)
 endif()
 
 # ----------------------------------------------------------------------------
diff --git a/android/refman.rst b/android/refman.rst
deleted file mode 100644 (file)
index 12d7ea6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-############################
-OpenCV4Android Reference
-############################
-
-.. toctree::
-   :maxdepth: 2
-
-   service/doc/index.rst
-   java.rst
\ No newline at end of file
index 705ccc8..c99cae7 100644 (file)
@@ -162,7 +162,7 @@ if(UNIX)
 endif()
 
 if(ANDROID)
-  install(FILES "${OpenCV_SOURCE_DIR}/android/android.toolchain.cmake" DESTINATION ${OPENCV_CONFIG_INSTALL_PATH}/)
+  install(FILES "${OpenCV_SOURCE_DIR}/platforms/android/android.toolchain.cmake" DESTINATION ${OPENCV_CONFIG_INSTALL_PATH}/)
 endif()
 
 # --------------------------------------------------------------------------------------------
index 0f2695f..70f4809 100644 (file)
@@ -53,8 +53,8 @@ if(BUILD_DOCS AND HAVE_SPHINX)
     endif()
   endforeach()
 
-  file(GLOB_RECURSE _OPENCV_FILES_REF "${OpenCV_SOURCE_DIR}/android/service/doc/*.rst")
-  file(GLOB_RECURSE _OPENCV_FILES_REF_PICT "${OpenCV_SOURCE_DIR}/android/service/doc/*.png" "${OpenCV_SOURCE_DIR}/android/service/doc/*.jpg")
+  file(GLOB_RECURSE _OPENCV_FILES_REF "${OpenCV_SOURCE_DIR}/platforms/android/service/doc/*.rst")
+  file(GLOB_RECURSE _OPENCV_FILES_REF_PICT "${OpenCV_SOURCE_DIR}/platforms/android/service/doc/*.png" "${OpenCV_SOURCE_DIR}/platforms/android/service/doc/*.jpg")
   list(APPEND OPENCV_FILES_REF ${_OPENCV_FILES_REF})
   list(APPEND OPENCV_FILES_REF_PICT ${_OPENCV_FILES_REF_PICT})
 
index 4c7a15c..f3f7aec 100755 (executable)
@@ -239,7 +239,7 @@ latex_documents = [
    u'', 'manual'),
   ('doc/tutorials/tutorials', 'opencv_tutorials.tex', u'The OpenCV Tutorials',
    u'', 'manual'),
-  ('android/refman', 'opencv2manager.tex', u'The OpenCV Manager Manual',
+  ('platforms/android/refman', 'opencv2manager.tex', u'The OpenCV Manager Manual',
    u'', 'manual'),
 ]
 
index 909bf90..5f50b66 100644 (file)
--- a/index.rst
+++ b/index.rst
@@ -10,7 +10,7 @@ Welcome to opencv documentation!
    :maxdepth: 2
 
    modules/refman.rst
-   android/refman.rst
+   platforms/android/refman.rst
    doc/user_guide/user_guide.rst
    doc/tutorials/tutorials.rst
 
index d54dd5d..8ac8ced 100644 (file)
@@ -6,7 +6,7 @@ set(the_description "Auxiliary module for Android native camera support")
 set(OPENCV_MODULE_TYPE STATIC)
 
 ocv_define_module(androidcamera INTERNAL opencv_core log dl)
-ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/camera_wrapper" "${OpenCV_SOURCE_DIR}/android/service/engine/jni/include")
+ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/camera_wrapper" "${OpenCV_SOURCE_DIR}/platforms/android/service/engine/jni/include")
 
 # Android source tree for native camera
 SET (ANDROID_SOURCE_TREE "ANDROID_SOURCE_TREE-NOTFOUND" CACHE PATH
similarity index 100%
rename from android/java.rst
rename to platforms/android/java.rst
similarity index 75%
rename from android/scripts/cmake_android.sh
rename to platforms/android/scripts/cmake_android.sh
index 101ba3c..941a665 100755 (executable)
@@ -4,5 +4,5 @@ cd `dirname $0`/..
 mkdir -p build
 cd build
 
-cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
+cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../../..
 
similarity index 92%
rename from android/scripts/cmake_android_all_cameras.py
rename to platforms/android/scripts/cmake_android_all_cameras.py
index afcab63..5941894 100755 (executable)
@@ -49,7 +49,7 @@ for s in ConfFile.readlines():
 
     os.chdir(BuildDir)
     BuildLog = os.path.join(BuildDir, "build.log")
-    CmakeCmdLine = "cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_SOURCE_TREE=\"%s\" -DANDROID_NATIVE_API_LEVEL=\"%s\" -DANDROID_ABI=\"%s\" -DANDROID_STL=stlport_static ../../ > \"%s\" 2>&1" % (AndroidTreeRoot, NativeApiLevel, Arch, BuildLog)
+    CmakeCmdLine = "cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_SOURCE_TREE=\"%s\" -DANDROID_NATIVE_API_LEVEL=\"%s\" -DANDROID_ABI=\"%s\" -DANDROID_STL=stlport_static ../../../ > \"%s\" 2>&1" % (AndroidTreeRoot, NativeApiLevel, Arch, BuildLog)
     MakeCmdLine = "make %s >> \"%s\" 2>&1" % (MakeTarget, BuildLog);
     #print(CmakeCmdLine)
     os.system(CmakeCmdLine)
@@ -59,7 +59,7 @@ for s in ConfFile.readlines():
     CameraLib = os.path.join(BuildDir, "lib", Arch, "lib" + MakeTarget + ".so")
     if (os.path.exists(CameraLib)):
         try:
-            shutil.copyfile(CameraLib, os.path.join("..", "3rdparty", "lib", Arch, "lib" + MakeTarget + ".so"))
+            shutil.copyfile(CameraLib, os.path.join("..", "..", "3rdparty", "lib", Arch, "lib" + MakeTarget + ".so"))
             print("Building %s for %s\t[\033[92mOK\033[0m]" % (MakeTarget, Arch));
         except:
             print("Building %s for %s\t[\033[91mFAILED\033[0m]" % (MakeTarget, Arch));
similarity index 83%
rename from android/scripts/cmake_android_armeabi.sh
rename to platforms/android/scripts/cmake_android_armeabi.sh
index 9c711d8..dec0ce3 100755 (executable)
@@ -4,5 +4,5 @@ cd `dirname $0`/..
 mkdir -p build_armeabi
 cd build_armeabi
 
-cmake -DANDROID_ABI=armeabi -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
+cmake -DANDROID_ABI=armeabi -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../../..
 
diff --git a/platforms/android/scripts/cmake_android_debug.sh b/platforms/android/scripts/cmake_android_debug.sh
new file mode 100755 (executable)
index 0000000..dc5a3a1
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+cd `dirname $0`/..
+
+mkdir -p build_debug
+cd build_debug
+
+cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../../..
+
similarity index 84%
rename from android/scripts/cmake_android_mips.sh
rename to platforms/android/scripts/cmake_android_mips.sh
index 17d2ff9..5c4195d 100755 (executable)
@@ -4,5 +4,5 @@ cd `dirname $0`/..
 mkdir -p build_mips
 cd build_mips
 
-cmake -DANDROID_ABI=mips -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
+cmake -DANDROID_ABI=mips -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../../..
 
similarity index 75%
rename from android/scripts/cmake_android_neon.sh
rename to platforms/android/scripts/cmake_android_neon.sh
index 5e85605..716809a 100755 (executable)
@@ -4,5 +4,5 @@ cd `dirname $0`/..
 mkdir -p build_neon
 cd build_neon
 
-cmake -DANDROID_ABI="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
+cmake -DANDROID_ABI="armeabi-v7a with NEON" -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../../..
 
similarity index 95%
rename from android/scripts/cmake_android_service.sh
rename to platforms/android/scripts/cmake_android_service.sh
index 0dbd482..c702e65 100755 (executable)
@@ -4,4 +4,4 @@ cd `dirname $0`/..
 mkdir -p build_service
 cd build_service
 
-cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.4.3" -DANDROID_STL=stlport_static -DANDROID_STL_FORCE_FEATURES=OFF -DBUILD_ANDROID_SERVICE=ON -DANDROID_SOURCE_TREE=~/Projects/AndroidSource/ServiceStub/ $@ ../..
+cmake -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.4.3" -DANDROID_STL=stlport_static -DANDROID_STL_FORCE_FEATURES=OFF -DBUILD_ANDROID_SERVICE=ON -DANDROID_SOURCE_TREE=~/Projects/AndroidSource/ServiceStub/ $@ ../../..
diff --git a/platforms/android/scripts/cmake_android_service_x86.sh b/platforms/android/scripts/cmake_android_service_x86.sh
new file mode 100755 (executable)
index 0000000..89b1f7e
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+cd `dirname $0`/..
+
+mkdir -p build_service_x86
+cd build_service_x86
+
+cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME="x86-4.4.3" -DANDROID_STL=stlport_static -DANDROID_STL_FORCE_FEATURES=OFF -DBUILD_ANDROID_SERVICE=ON -DANDROID_SOURCE_TREE=~/Projects/AndroidSource/ServiceStub/ $@ ../../..
+
similarity index 85%
rename from android/scripts/cmake_android_x86.sh
rename to platforms/android/scripts/cmake_android_x86.sh
index a01df2e..5390600 100755 (executable)
@@ -5,5 +5,5 @@ cd `dirname $0`/..
 mkdir -p build_x86
 cd build_x86
 
-cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../..
+cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../android.toolchain.cmake $@ ../../..
 
similarity index 97%
rename from android/service/engine/CMakeLists.txt
rename to platforms/android/service/engine/CMakeLists.txt
index 8b88393..793c433 100644 (file)
@@ -24,7 +24,7 @@ else()
   message(WARNING "Can not automatically determine the value for ANDROID_PLATFORM_VERSION_CODE")
 endif()
 
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${ANDROID_MANIFEST_FILE}" "${OpenCV_BINARY_DIR}/android/service/engine/.build/${ANDROID_MANIFEST_FILE}"  @ONLY)
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${ANDROID_MANIFEST_FILE}" "${OpenCV_BINARY_DIR}/platforms/android/service/engine/.build/${ANDROID_MANIFEST_FILE}"  @ONLY)
 
 link_directories("${ANDROID_SOURCE_TREE}/out/target/product/generic/system/lib" "${ANDROID_SOURCE_TREE}/out/target/product/${ANDROID_PRODUCT}/system/lib" "${ANDROID_SOURCE_TREE}/bin/${ANDROID_ARCH_NAME}")