Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
b16b50d6
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b16b50d6
编写于
9月 07, 2012
作者:
A
Alexander Smorkalov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Build script for all native cameras added.
上级
568d9583
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
67 addition
and
0 deletion
+67
-0
android/scripts/camera_build.conf
android/scripts/camera_build.conf
+16
-0
android/scripts/cmake_android_all_cameras.py
android/scripts/cmake_android_all_cameras.py
+51
-0
未找到文件。
android/scripts/camera_build.conf
0 → 100644
浏览文件 @
b16b50d6
native_camera_r2
.
2
.
0
;
armeabi
;
8
;/
home
/
alexander
/
Projects
/
AndroidSource
/
2
.
2
.
2
native_camera_r2
.
2
.
0
;
armeabi
-
v7a
;
8
;/
home
/
alexander
/
Projects
/
AndroidSource
/
2
.
2
.
2
native_camera_r2
.
3
.
3
;
armeabi
;
9
;/
home
/
alexander
/
Projects
/
AndroidSource
/
2
.
3
.
3
native_camera_r2
.
3
.
3
;
armeabi
-
v7a
;
9
;/
home
/
alexander
/
Projects
/
AndroidSource
/
2
.
3
.
3
native_camera_r2
.
3
.
3
;
x86
;
9
;/
home
/
alexander
/
Projects
/
AndroidSource
/
2
.
3
.
3
native_camera_r3
.
0
.
1
;
armeabi
;
9
;/
home
/
alexander
/
Projects
/
AndroidSource
/
3
.
0
.
1
native_camera_r3
.
0
.
1
;
armeabi
-
v7a
;
9
;/
home
/
alexander
/
Projects
/
AndroidSource
/
3
.
0
.
1
native_camera_r3
.
0
.
1
;
x86
;
9
;/
home
/
alexander
/
Projects
/
AndroidSource
/
3
.
0
.
1
native_camera_r4
.
0
.
3
;
armeabi
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
0
.
3
native_camera_r4
.
0
.
3
;
armeabi
-
v7a
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
0
.
3
native_camera_r4
.
0
.
3
;
x86
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
0
.
3
native_camera_r4
.
0
.
0
;
armeabi
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
0
.
0
native_camera_r4
.
0
.
0
;
armeabi
-
v7a
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
0
.
0
native_camera_r4
.
1
.
1
;
armeabi
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
1
.
1
native_camera_r4
.
1
.
1
;
armeabi
-
v7a
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
1
.
1
native_camera_r4
.
1
.
1
;
x86
;
14
;/
home
/
alexander
/
Projects
/
AndroidSource
/
4
.
1
.
1
\ No newline at end of file
android/scripts/cmake_android_all_cameras.py
0 → 100755
浏览文件 @
b16b50d6
#!/usr/bin/python
import
os
import
sys
import
shutil
ScriptHome
=
os
.
path
.
split
(
sys
.
argv
[
0
])[
0
]
ConfFile
=
open
(
os
.
path
.
join
(
ScriptHome
,
"camera_build.conf"
),
"rt"
)
HomeDir
=
os
.
getcwd
()
for
s
in
ConfFile
.
readlines
():
keys
=
s
.
split
(
";"
)
if
(
len
(
keys
)
<
4
):
print
(
"Error: invalid config line:
\"
%s
\"
"
%
s
)
continue
MakeTarget
=
keys
[
0
]
Arch
=
keys
[
1
]
NativeApiLevel
=
keys
[
2
]
AndroidTreeRoot
=
keys
[
3
]
AndroidTreeRoot
=
str
.
strip
(
AndroidTreeRoot
,
"
\n
"
)
print
(
"Building %s for %s"
%
(
MakeTarget
,
Arch
))
BuildDir
=
os
.
path
.
join
(
HomeDir
,
MakeTarget
+
"_"
+
Arch
)
if
(
os
.
path
.
exists
(
BuildDir
)):
shutil
.
rmtree
(
BuildDir
)
try
:
os
.
mkdir
(
BuildDir
)
except
:
print
(
"Error: cannot create direcotry
\"
%s
\"
"
%
BuildDir
)
continue
shutil
.
rmtree
(
os
.
path
.
join
(
AndroidTreeRoot
,
"out"
,
"target"
,
"product"
,
"generic"
,
"system"
),
ignore_errors
=
True
)
if
(
Arch
==
"x86"
):
shutil
.
copytree
(
os
.
path
.
join
(
AndroidTreeRoot
,
"bin_x86"
,
"system"
),
os
.
path
.
join
(
AndroidTreeRoot
,
"out"
,
"target"
,
"product"
,
"generic"
,
"system"
))
else
:
shutil
.
copytree
(
os
.
path
.
join
(
AndroidTreeRoot
,
"bin_arm"
,
"system"
),
os
.
path
.
join
(
AndroidTreeRoot
,
"out"
,
"target"
,
"product"
,
"generic"
,
"system"
))
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_USE_STLPORT=ON ../../ >
\"
%s
\"
2>&1"
%
(
AndroidTreeRoot
,
NativeApiLevel
,
Arch
,
BuildLog
)
MakeCmdLine
=
"make %s >>
\"
%s
\"
2>&1"
%
(
MakeTarget
,
BuildLog
);
#print(CmakeCmdLine)
os
.
system
(
CmakeCmdLine
)
#print(MakeCmdLine)
os
.
system
(
MakeCmdLine
)
os
.
chdir
(
HomeDir
)
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"
))
print
(
"Building %s for %s
\t
[OK]"
%
(
MakeTarget
,
Arch
));
except
:
print
(
"Building %s for %s
\t
[FAILED]"
%
(
MakeTarget
,
Arch
));
ConfFile
.
close
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录