Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
5b148083
Commit
5b148083
authored
Nov 20, 2012
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Libinfo build fix;
Libinfo revision formating fix; HW dependent VersionCode for Manager implemented.
parent
f172947e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
info.c
android/libinfo/info.c
+1
-1
AndroidManifest.xml
android/service/engine/AndroidManifest.xml
+2
-2
CMakeLists.txt
android/service/engine/CMakeLists.txt
+18
-0
No files found.
CMakeLists.txt
View file @
5b148083
...
...
@@ -467,7 +467,7 @@ if(BUILD_ANDROID_PACKAGE)
add_subdirectory
(
android/package
)
endif
()
if
(
ANDROID
AND NOT BUILD_ANDROID_SERVICE AND NOT BUILD_ANDROID_PACKAGE AND NOT BUILD_CAMERA_WRAPER
)
if
(
ANDROID
)
add_subdirectory
(
android/libinfo
)
endif
()
...
...
android/libinfo/info.c
View file @
5b148083
...
...
@@ -7,7 +7,7 @@ const char* GetLibraryList(void);
JNIEXPORT
jstring
JNICALL
Java_org_opencv_android_StaticHelper_getLibraryList
(
JNIEnv
*
,
jclass
);
#define PACKAGE_NAME "org.opencv.lib_v" CVAUX_STR(CV_MAJOR_VERSION) CVAUX_STR(CV_MINOR_VERSION) "_" ANDROID_PACKAGE_PLATFORM
#define PACKAGE_REVISION CVAUX_STR(CV_SUBMINOR_VERSION) CVAUX_STR(ANDROID_PACKAGE_RELEASE)
#define PACKAGE_REVISION CVAUX_STR(CV_SUBMINOR_VERSION)
"."
CVAUX_STR(ANDROID_PACKAGE_RELEASE)
const
char
*
GetPackageName
(
void
)
{
...
...
android/service/engine/AndroidManifest.xml
View file @
5b148083
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.opencv.engine"
android:versionCode=
"2
1
"
android:versionName=
"2.
1
"
>
android:versionCode=
"2
2@ANDROID_PLATFORM_VERSION_CODE@
"
android:versionName=
"2.
2
"
>
<uses-sdk
android:minSdkVersion=
"8"
/>
<uses-feature
android:name=
"android.hardware.touchscreen"
android:required=
"false"
/>
...
...
android/service/engine/CMakeLists.txt
View file @
5b148083
...
...
@@ -4,6 +4,24 @@ set(JNI_LIB_NAME ${engine} ${engine}_jni)
unset
(
__android_project_chain CACHE
)
add_android_project
(
opencv_engine
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
SDK_TARGET 8
${
ANDROID_SDK_TARGET
}
IGNORE_JAVA ON
)
set
(
ANDROID_PLATFORM_VERSION_CODE
"0"
)
if
(
ARMEABI_V7A
)
set
(
ANDROID_PLATFORM_VERSION_CODE
"2"
)
elseif
(
ARMEABI_V6
)
set
(
ANDROID_PLATFORM_VERSION_CODE
"1"
)
elseif
(
ARMEABI
)
set
(
ANDROID_PLATFORM_VERSION_CODE
"1"
)
elseif
(
X86
)
set
(
ANDROID_PLATFORM_VERSION_CODE
"3"
)
elseif
(
MIPS
)
set
(
ANDROID_PLATFORM_VERSION_CODE
"4"
)
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
)
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
}
"
)
# -D__SUPPORT_ARMEABI_FEATURES key is also available
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment