android -> plarforms/android

pull/920/head
Alexander Smorkalov 12 years ago
parent 324cafdda6
commit 20fef00a77
  1. 6
      CMakeLists.txt
  2. 9
      android/refman.rst
  3. 2
      cmake/OpenCVGenConfig.cmake
  4. 4
      doc/CMakeLists.txt
  5. 2
      doc/conf.py
  6. 2
      index.rst
  7. 2
      modules/androidcamera/CMakeLists.txt
  8. 0
      platforms/android/README.android
  9. 0
      platforms/android/android.toolchain.cmake
  10. 0
      platforms/android/java.rst
  11. 0
      platforms/android/libinfo/CMakeLists.txt
  12. 0
      platforms/android/libinfo/info.c
  13. 0
      platforms/android/package/AndroidManifest.xml
  14. 0
      platforms/android/package/CMakeLists.txt
  15. 0
      platforms/android/package/res/drawable/icon.png
  16. 0
      platforms/android/package/res/values/strings.xml
  17. 0
      platforms/android/scripts/ABI_compat_generator.py
  18. 0
      platforms/android/scripts/build.cmd
  19. 0
      platforms/android/scripts/camera_build.conf
  20. 0
      platforms/android/scripts/cmake_android.cmd
  21. 2
      platforms/android/scripts/cmake_android.sh
  22. 4
      platforms/android/scripts/cmake_android_all_cameras.py
  23. 2
      platforms/android/scripts/cmake_android_armeabi.sh
  24. 8
      platforms/android/scripts/cmake_android_debug.sh
  25. 2
      platforms/android/scripts/cmake_android_mips.sh
  26. 2
      platforms/android/scripts/cmake_android_neon.sh
  27. 2
      platforms/android/scripts/cmake_android_service.sh
  28. 8
      platforms/android/scripts/cmake_android_service_x86.sh
  29. 2
      platforms/android/scripts/cmake_android_x86.sh
  30. 0
      platforms/android/scripts/wincfg.cmd.tmpl
  31. 0
      platforms/android/service/CMakeLists.txt
  32. 0
      platforms/android/service/all.py
  33. 0
      platforms/android/service/device.conf
  34. 0
      platforms/android/service/doc/AndroidAppUsageModel.dia
  35. 0
      platforms/android/service/doc/BaseLoaderCallback.rst
  36. 0
      platforms/android/service/doc/InstallCallbackInterface.rst
  37. 0
      platforms/android/service/doc/Intro.rst
  38. 0
      platforms/android/service/doc/JavaHelper.rst
  39. 0
      platforms/android/service/doc/LibInstallAproved.dia
  40. 0
      platforms/android/service/doc/LibInstallCanceled.dia
  41. 0
      platforms/android/service/doc/LibInstalled.dia
  42. 0
      platforms/android/service/doc/LoaderCallbackInterface.rst
  43. 0
      platforms/android/service/doc/Makefile
  44. 0
      platforms/android/service/doc/NoService.dia
  45. 0
      platforms/android/service/doc/Structure.dia
  46. 0
      platforms/android/service/doc/UseCases.rst
  47. 0
      platforms/android/service/doc/build_uml.py
  48. 0
      platforms/android/service/doc/img/AndroidAppUsageModel.png
  49. 0
      platforms/android/service/doc/img/LibInstallAproved.png
  50. 0
      platforms/android/service/doc/img/LibInstallCanceled.png
  51. 0
      platforms/android/service/doc/img/LibInstalled.png
  52. 0
      platforms/android/service/doc/img/NoService.png
  53. 0
      platforms/android/service/doc/img/Structure.png
  54. 0
      platforms/android/service/doc/index.rst
  55. 0
      platforms/android/service/engine/.classpath
  56. 0
      platforms/android/service/engine/.project
  57. 0
      platforms/android/service/engine/AndroidManifest.xml
  58. 2
      platforms/android/service/engine/CMakeLists.txt
  59. 0
      platforms/android/service/engine/build.xml
  60. 0
      platforms/android/service/engine/jni/Android.mk
  61. 0
      platforms/android/service/engine/jni/Application.mk
  62. 0
      platforms/android/service/engine/jni/BinderComponent/BnOpenCVEngine.cpp
  63. 0
      platforms/android/service/engine/jni/BinderComponent/BnOpenCVEngine.h
  64. 0
      platforms/android/service/engine/jni/BinderComponent/BpOpenCVEngine.cpp
  65. 0
      platforms/android/service/engine/jni/BinderComponent/BpOpenCVEngine.h
  66. 0
      platforms/android/service/engine/jni/BinderComponent/HardwareDetector.cpp
  67. 0
      platforms/android/service/engine/jni/BinderComponent/HardwareDetector.h
  68. 0
      platforms/android/service/engine/jni/BinderComponent/OpenCVEngine.cpp
  69. 0
      platforms/android/service/engine/jni/BinderComponent/OpenCVEngine.h
  70. 0
      platforms/android/service/engine/jni/BinderComponent/ProcReader.cpp
  71. 0
      platforms/android/service/engine/jni/BinderComponent/ProcReader.h
  72. 0
      platforms/android/service/engine/jni/BinderComponent/StringUtils.cpp
  73. 0
      platforms/android/service/engine/jni/BinderComponent/StringUtils.h
  74. 0
      platforms/android/service/engine/jni/BinderComponent/TegraDetector.cpp
  75. 0
      platforms/android/service/engine/jni/BinderComponent/TegraDetector.h
  76. 0
      platforms/android/service/engine/jni/JNIWrapper/HardwareDetector_jni.cpp
  77. 0
      platforms/android/service/engine/jni/JNIWrapper/HardwareDetector_jni.h
  78. 0
      platforms/android/service/engine/jni/JNIWrapper/JavaBasedPackageManager.cpp
  79. 0
      platforms/android/service/engine/jni/JNIWrapper/JavaBasedPackageManager.h
  80. 0
      platforms/android/service/engine/jni/JNIWrapper/OpenCVEngine_jni.cpp
  81. 0
      platforms/android/service/engine/jni/JNIWrapper/OpenCVEngine_jni.h
  82. 0
      platforms/android/service/engine/jni/JNIWrapper/OpenCVLibraryInfo.cpp
  83. 0
      platforms/android/service/engine/jni/JNIWrapper/OpenCVLibraryInfo.h
  84. 0
      platforms/android/service/engine/jni/NativeClient/ClientMain.cpp
  85. 0
      platforms/android/service/engine/jni/NativeService/CommonPackageManager.cpp
  86. 0
      platforms/android/service/engine/jni/NativeService/CommonPackageManager.h
  87. 0
      platforms/android/service/engine/jni/NativeService/NativePackageManager.cpp
  88. 0
      platforms/android/service/engine/jni/NativeService/NativePackageManager.h
  89. 0
      platforms/android/service/engine/jni/NativeService/PackageInfo.cpp
  90. 0
      platforms/android/service/engine/jni/NativeService/PackageInfo.h
  91. 0
      platforms/android/service/engine/jni/NativeService/ServiceMain.cpp
  92. 0
      platforms/android/service/engine/jni/Tests/HardwareDetectionTest.cpp
  93. 0
      platforms/android/service/engine/jni/Tests/OpenCVEngineTest.cpp
  94. 0
      platforms/android/service/engine/jni/Tests/PackageInfoTest.cpp
  95. 0
      platforms/android/service/engine/jni/Tests/PackageManagerStub.cpp
  96. 0
      platforms/android/service/engine/jni/Tests/PackageManagerStub.h
  97. 0
      platforms/android/service/engine/jni/Tests/PackageManagmentTest.cpp
  98. 0
      platforms/android/service/engine/jni/Tests/TestMain.cpp
  99. 0
      platforms/android/service/engine/jni/Tests/Tests.mk
  100. 0
      platforms/android/service/engine/jni/Tests/gtest/gtest-all.cpp
  101. Some files were not shown because too many files have changed in this diff Show More

@ -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()
# ----------------------------------------------------------------------------

@ -1,9 +0,0 @@
############################
OpenCV4Android Reference
############################
.. toctree::
:maxdepth: 2
service/doc/index.rst
java.rst

@ -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()
# --------------------------------------------------------------------------------------------

@ -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})

@ -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'),
]

@ -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

@ -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

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@ -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 $@ ../../..

@ -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));

@ -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 $@ ../../..

@ -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 $@ ../../..

@ -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 $@ ../../..

@ -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 $@ ../../..

@ -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/ $@ ../../..

@ -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/ $@ ../../..

@ -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 $@ ../../..

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

@ -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}")

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save