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
e8032fa8
Commit
e8032fa8
authored
Oct 21, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Android build with SDK revision 14
parent
17761898
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
60 additions
and
5 deletions
+60
-5
package.sh
android/scripts/package.sh
+15
-4
CMakeLists.txt
modules/java/CMakeLists.txt
+11
-1
project.properties
modules/java/android/project.properties
+12
-0
project.properties
samples/android/15-puzzle/project.properties
+3
-0
project.properties
samples/android/face-detection/project.properties
+3
-0
project.properties
samples/android/image-manipulations/project.properties
+3
-0
project.properties
samples/android/tutorial-0-androidcamera/project.properties
+2
-0
project.properties
samples/android/tutorial-1-addopencv/project.properties
+3
-0
project.properties
samples/android/tutorial-2-opencvcamera/project.properties
+3
-0
project.properties
samples/android/tutorial-3-native/project.properties
+2
-0
project.properties
samples/android/tutorial-4-mixed/project.properties
+3
-0
No files found.
android/scripts/package.sh
View file @
e8032fa8
...
...
@@ -33,7 +33,7 @@ cmake -C "$ANDROID_DIR/CMakeCache.android.initial.cmake" -DARM_TARGET="armeabi-v
make
-j8
install
/strip
||
exit
1
cd
"
$PRG_DIR
/opencv"
rm
-rf
doc include src .classpath .project AndroidManifest.xml default.properties share/OpenCV/haarcascades share/OpenCV/lbpcascades share/OpenCV/
*
.cmake share/OpenCV/OpenCV.mk
rm
-rf
doc include src .classpath .project AndroidManifest.xml default.properties
project.properties
share/OpenCV/haarcascades share/OpenCV/lbpcascades share/OpenCV/
*
.cmake share/OpenCV/OpenCV.mk
# armeabi build
...
...
@@ -67,15 +67,26 @@ for dir in `ls -1`
do
if
[
-f
"
$dir
/default.properties"
]
then
HAS_REFERENCE
=
`
cat
"
$dir
/
defaul
t.properties"
|
grep
-c
android.library.reference.1
`
HAS_REFERENCE
=
`
cat
"
$dir
/
projec
t.properties"
|
grep
-c
android.library.reference.1
`
if
[
$HAS_REFERENCE
=
1
]
then
echo
-n
>
"
$dir
/
defaul
t.properties"
echo
-n
>
"
$dir
/
projec
t.properties"
android update project
--name
"
$dir
"
--target
"android-8"
--library
"../../
$OPENCV_NAME
"
--path
"
$dir
"
#echo 'android update project --name "$dir" --target "android-8" --library "../opencv$CV_VERSION" --path "$dir"'
fi
else
rm
-rf
"
$dir
"
if
[
-f
"
$dir
/default.properties"
]
then
HAS_REFERENCE
=
`
cat
"
$dir
/default.properties"
|
grep
-c
android.library.reference.1
`
if
[
$HAS_REFERENCE
=
1
]
then
echo
-n
>
"
$dir
/default.properties"
android update project
--name
"
$dir
"
--target
"android-8"
--library
"../../
$OPENCV_NAME
"
--path
"
$dir
"
#echo 'android update project --name "$dir" --target "android-8" --library "../opencv$CV_VERSION" --path "$dir"'
fi
else
rm
-rf
"
$dir
"
fi
fi
done
...
...
modules/java/CMakeLists.txt
View file @
e8032fa8
...
...
@@ -214,7 +214,17 @@ if(ANDROID)
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
CMAKE_BINARY_DIR
}
/res"
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
CMAKE_BINARY_DIR
}
/gen"
DEPENDS
${
lib_proj_files
}
)
)
if
(
ANT_EXECUTABLE AND ANDROID_EXECUTABLE AND ANDROID_TOOLS_Pkg_Revision GREATER 13
)
add_custom_command
(
TARGET
${
target
}
COMMAND
${
ANDROID_EXECUTABLE
}
update lib-project --path
"
${
CMAKE_BINARY_DIR
}
"
COMMAND
${
ANT_EXECUTABLE
}
debug
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
"
DEPENDS
${
lib_target
}
)
endif
()
add_dependencies
(
${
lib_target
}
${
api_target
}
)
add_dependencies
(
${
target
}
${
lib_target
}
)
...
...
modules/java/android/project.properties
0 → 100644
View file @
e8032fa8
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
android.library
=
true
# Project target.
target
=
android-8
samples/android/15-puzzle/project.properties
0 → 100644
View file @
e8032fa8
android.library.reference.1
=
../../../android/build
# Project target.
target
=
android-8
samples/android/face-detection/project.properties
0 → 100644
View file @
e8032fa8
android.library.reference.1
=
../../OpenCV-2.3.1
# Project target.
target
=
android-8
samples/android/image-manipulations/project.properties
0 → 100644
View file @
e8032fa8
android.library.reference.1
=
../../../android/build
# Project target.
target
=
android-8
samples/android/tutorial-0-androidcamera/project.properties
0 → 100644
View file @
e8032fa8
# Project target.
target
=
android-8
samples/android/tutorial-1-addopencv/project.properties
0 → 100644
View file @
e8032fa8
android.library.reference.1
=
../../../android/build
# Project target.
target
=
android-8
samples/android/tutorial-2-opencvcamera/project.properties
0 → 100644
View file @
e8032fa8
android.library.reference.1
=
../../../android/build
# Project target.
target
=
android-8
samples/android/tutorial-3-native/project.properties
0 → 100644
View file @
e8032fa8
# Project target.
target
=
android-8
samples/android/tutorial-4-mixed/project.properties
0 → 100644
View file @
e8032fa8
android.library.reference.1
=
../../../android/build
# Project target.
target
=
android-8
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