Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
6e885e57
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
6e885e57
编写于
11月 23, 2015
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5682 from ilya-lavrenov:lintian-overrides
上级
5c0cdd4d
969f0c44
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
82 addition
and
0 deletion
+82
-0
cmake/OpenCVPackaging.cmake
cmake/OpenCVPackaging.cmake
+82
-0
未找到文件。
cmake/OpenCVPackaging.cmake
浏览文件 @
6e885e57
...
...
@@ -178,6 +178,85 @@ if(NOT OPENCV_CUSTOM_PACKAGE_INFO)
set
(
CPACK_DEBIAN_COMPONENT_TESTS_SECTION
"misc"
)
endif
(
NOT OPENCV_CUSTOM_PACKAGE_INFO
)
set
(
CPACK_DEBIAN_COMPONENT_DOCS_ARCHITECTURE
"all"
)
# lintian stuff
#
# ocv_generate_lintian_overrides_file: generates lintian overrides file for
# the specified component (deb-package). It's assumed that <comp>_LINTIAN_OVERRIDES
# variable with suppressed tags is defined.
#
# Usage: ocv_generate_lintian_overrides_file(<component name>)
#
function
(
ocv_generate_lintian_overrides_file comp
)
string
(
TOUPPER
${
comp
}
comp_upcase
)
set
(
package_name
${
CPACK_DEBIAN_COMPONENT_
${
comp_upcase
}
_NAME
}
)
set
(
suppressions
${${
comp_upcase
}
_LINTIAN_OVERRIDES
}
)
if
(
suppressions
)
if
(
NOT package_name
)
message
(
FATAL_ERROR
"Package name for the
${
comp
}
component is not defined"
)
endif
()
# generate content of lintian overrides file
foreach
(
suppression
${
suppressions
}
)
set
(
line
"
${
package_name
}
:
${
suppression
}
"
)
if
(
content
)
set
(
content
"
${
content
}
\n
${
line
}
"
)
else
()
set
(
content
"
${
line
}
"
)
endif
()
endforeach
()
# create file and install it
set
(
cpack_tmp_dir
"
${
CMAKE_BINARY_DIR
}
/deb-packages-gen/
${
comp
}
"
)
set
(
overrides_filename
"
${
cpack_tmp_dir
}
/
${
package_name
}
"
)
file
(
WRITE
"
${
overrides_filename
}
"
"
${
content
}
"
)
# install generated file
install
(
FILES
"
${
overrides_filename
}
"
DESTINATION share/lintian/overrides/
COMPONENT
${
comp
}
)
unset
(
content
)
endif
()
endfunction
()
set
(
LIBS_LINTIAN_OVERRIDES
"binary-or-shlib-defines-rpath"
# usr/lib/libopencv_core.so.2.4.12
"package-name-doesnt-match-sonames"
)
# libopencv-calib3d2.4 libopencv-contrib2.4
if
(
HAVE_opencv_python
)
set
(
PYTHON_LINTIAN_OVERRIDES
"binary-or-shlib-defines-rpath"
# usr/lib/python2.7/dist-packages/cv2.so
"missing-dependency-on-numpy-abi"
)
else
()
set
(
PYTHON_LINTIAN_OVERRIDES
"empty-binary-package"
)
# python module is off
endif
()
if
(
NOT HAVE_opencv_java
)
set
(
JAVA_LINTIAN_OVERRIDES
"empty-binary-package"
)
# Java is off
else
()
# TODO: add smht here
endif
()
set
(
DEV_LINTIAN_OVERRIDES
"binary-or-shlib-defines-rpath"
# usr/bin/opencv_traincascade
"binary-without-manpage"
)
# usr/bin/opencv_traincascade
if
(
NOT INSTALL_C_EXAMPLES
)
set
(
SAMPLES_LINTIAN_OVERRIDES
"empty-binary-package"
)
# samples are not installed
endif
()
if
(
INSTALL_TESTS
)
set
(
TESTS_LINTIAN_OVERRIDES
"arch-dependent-file-in-usr-share"
# usr/share/OpenCV/bin/opencv_test_ml
"binary-or-shlib-defines-rpath"
)
# usr/share/OpenCV/bin/opencv_test_ml
else
()
set
(
TESTS_LINTIAN_OVERRIDES
"empty-binary-package"
)
# there is no tests
endif
()
if
(
CPACK_GENERATOR STREQUAL
"DEB"
)
find_program
(
GZIP_TOOL NAMES
"gzip"
PATHS
"/bin"
"/usr/bin"
"/usr/local/bin"
)
if
(
NOT GZIP_TOOL
)
...
...
@@ -192,6 +271,7 @@ if(CPACK_GENERATOR STREQUAL "DEB")
set
(
ALL_COMPONENTS
"libs"
"dev"
"docs"
"python"
"java"
"samples"
"tests"
)
foreach
(
comp
${
ALL_COMPONENTS
}
)
string
(
TOUPPER
"
${
comp
}
"
comp_upcase
)
set
(
DEBIAN_CHANGELOG_OUT_FILE
"
${
CMAKE_BINARY_DIR
}
/deb-packages-gen/
${
comp
}
/changelog.Debian"
)
set
(
DEBIAN_CHANGELOG_OUT_FILE_GZ
"
${
CMAKE_BINARY_DIR
}
/deb-packages-gen/
${
comp
}
/changelog.Debian.gz"
)
set
(
CHANGELOG_PACKAGE_NAME
"
${
CPACK_DEBIAN_COMPONENT_
${
comp_upcase
}
_NAME
}
"
)
...
...
@@ -223,6 +303,8 @@ if(CPACK_GENERATOR STREQUAL "DEB")
COMPONENT
"
${
comp
}
"
)
endif
()
ocv_generate_lintian_overrides_file
(
"
${
comp
}
"
)
endforeach
()
endif
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录