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
85c8a69f
Commit
85c8a69f
authored
Jul 14, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Android packaging script
parent
20ec29f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
package.sh
android/scripts/package.sh
+24
-2
No files found.
android/scripts/package.sh
View file @
85c8a69f
...
...
@@ -51,6 +51,8 @@ rm -rf opencv/doc/CMakeLists.txt
cp
"
$ANDROID_DIR
/README.android"
opencv/
cp
"
$ANDROID_DIR
/../README"
opencv/
# get opencv version
CV_VERSION
=
`
grep
-o
"[0-9]
\+\.
[0-9]
\+\.
[0-9]
\+
"
opencv/share/OpenCV/OpenCVConfig-version.cmake
`
mv
opencv opencv
$CV_VERSION
...
...
@@ -62,7 +64,7 @@ cd "$PRG_DIR/samples"
#enable for loops over items with spaces in their name
IFS
=
"
"
for
dir
in
`
ls
-1
|
grep
-v
hello-android
`
for
dir
in
`
ls
-1
`
do
if
[
-f
"
$dir
/default.properties"
]
then
...
...
@@ -71,13 +73,17 @@ do
then
echo
-n
>
"
$dir
/default.properties"
android update project
--name
"
$dir
"
--target
"android-8"
--library
"../../opencv
$CV_VERSION
"
--path
"
$dir
"
echo
'android update project --name "$dir" --target "android-8" --library "../opencv$CV_VERSION" --path "$dir"'
#
echo 'android update project --name "$dir" --target "android-8" --library "../opencv$CV_VERSION" --path "$dir"'
fi
else
rm
-rf
"
$dir
"
fi
done
echo
"OPENCV_MK_PATH:=../../opencv
$CV_VERSION
/share/OpenCV/OpenCV.mk"
>
includeOpenCV.mk
#clean samples
cd
"
$PRG_DIR
/samples"
#remove ignored files/folders
svn status
--no-ignore
|
grep
^I |
cut
-c9-
| xargs
-d
\\
n
rm
-rf
...
...
@@ -87,6 +93,22 @@ svn status | grep ^\? | cut -c9- | xargs -d \\n rm -rf
rm
CMakeLists.txt
#generate "gen" folders to eliminate eclipse warnings
cd
"
$PRG_DIR
/samples"
for
dir
in
`
ls
-1
`
do
if
[
-d
"
$dir
"
]
then
mkdir
"
$dir
/gen"
fi
done
#generate folders "gen" and "res" for opencv (dummy eclipse stiff)
cd
$PRG_DIR
mkdir
"opencv
$CV_VERSION
/gen"
mkdir
"opencv
$CV_VERSION
/res"
# pack all files
cd
$PRG_DIR
tar
cjpf opencv
$CV_VERSION
.tar.bz2
--exclude-vcs
opencv
$CV_VERSION
samples
||
exit
-1
...
...
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