Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
ab508fcc
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
ab508fcc
编写于
11月 07, 2019
作者:
Y
Yuan Shuai
提交者:
GitHub
11月 07, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[LITE][CMAKE] Add strip check for publish_inference_cxx_lib, publish_inference_java_lib (#2328)
* Add CMAKE_BUILD_TYPE check for strip. test=develop
上级
916e80c2
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
4 deletion
+8
-4
lite/CMakeLists.txt
lite/CMakeLists.txt
+8
-4
未找到文件。
lite/CMakeLists.txt
浏览文件 @
ab508fcc
...
@@ -143,9 +143,11 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
...
@@ -143,9 +143,11 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
COMMAND cp
${
CMAKE_BINARY_DIR
}
/lite/api/*.so
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib
)
COMMAND cp
${
CMAKE_BINARY_DIR
}
/lite/api/*.so
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib
)
endif
()
endif
()
add_dependencies
(
publish_inference publish_inference_cxx_lib
)
add_dependencies
(
publish_inference publish_inference_cxx_lib
)
if
(
NOT
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
add_custom_command
(
TARGET publish_inference_cxx_lib POST_BUILD
add_custom_command
(
TARGET publish_inference_cxx_lib POST_BUILD
COMMAND
${
CMAKE_STRIP
}
"--strip-debug"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib/*.a
)
COMMAND
${
CMAKE_STRIP
}
"--strip-debug"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib/*.a
)
endif
()
endif
()
endif
()
else
()
else
()
if
(
IOS
)
if
(
IOS
)
add_custom_target
(
tiny_publish_lib
${
TARGET
}
add_custom_target
(
tiny_publish_lib
${
TARGET
}
...
@@ -183,9 +185,11 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
...
@@ -183,9 +185,11 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
)
)
add_dependencies
(
publish_inference_java_lib paddle_lite_jni PaddlePredictor
)
add_dependencies
(
publish_inference_java_lib paddle_lite_jni PaddlePredictor
)
add_dependencies
(
publish_inference publish_inference_java_lib
)
add_dependencies
(
publish_inference publish_inference_java_lib
)
if
(
NOT
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
"Debug"
)
add_custom_command
(
TARGET publish_inference_java_lib POST_BUILD
add_custom_command
(
TARGET publish_inference_java_lib POST_BUILD
COMMAND
${
CMAKE_STRIP
}
"-s"
${
INFER_LITE_PUBLISH_ROOT
}
/java/so/libpaddle_lite_jni.so
)
COMMAND
${
CMAKE_STRIP
}
"-s"
${
INFER_LITE_PUBLISH_ROOT
}
/java/so/libpaddle_lite_jni.so
)
endif
()
endif
()
endif
()
if
((
ARM_TARGET_OS STREQUAL
"android"
)
AND
(
NOT LITE_WITH_OPENCL
)
AND
if
((
ARM_TARGET_OS STREQUAL
"android"
)
AND
(
NOT LITE_WITH_OPENCL
)
AND
((
ARM_TARGET_ARCH_ABI STREQUAL armv7
)
OR
(
ARM_TARGET_ARCH_ABI STREQUAL armv8
)))
((
ARM_TARGET_ARCH_ABI STREQUAL armv7
)
OR
(
ARM_TARGET_ARCH_ABI STREQUAL armv8
)))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录