Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
caeb9c82
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看板
提交
caeb9c82
编写于
10月 23, 2019
作者:
G
guofei
提交者:
hong19860320
10月 23, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make armlinux compile libpaddle_light_api_shared.so (#2238)
* Make armlinux compile libpaddle_light_api_shared.so test=develop
上级
351a7743
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
6 deletion
+6
-6
lite/CMakeLists.txt
lite/CMakeLists.txt
+5
-5
lite/api/CMakeLists.txt
lite/api/CMakeLists.txt
+1
-1
未找到文件。
lite/CMakeLists.txt
浏览文件 @
caeb9c82
...
...
@@ -93,7 +93,7 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
COMMAND
${
CMAKE_STRIP
}
"--strip-debug"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib/*.a
)
endif
()
else
()
if
(
IOS
OR
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
)
if
(
IOS
)
add_custom_target
(
tiny_publish_lib
${
TARGET
}
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/lib"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/include"
...
...
@@ -103,17 +103,17 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
add_dependencies
(
tiny_publish_lib bundle_light_api
)
add_dependencies
(
publish_inference tiny_publish_lib
)
else
()
if
(
ARM_TARGET_OS STREQUAL
"android"
)
if
(
(
ARM_TARGET_OS STREQUAL
"android"
)
OR
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
)
add_custom_target
(
tiny_publish_cxx_lib
${
TARGET
}
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/include"
COMMAND mkdir -p
"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib"
COMMAND cp
"
${
CMAKE_SOURCE_DIR
}
/lite/api/paddle_*.h"
"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/include"
COMMAND cp
"
${
CMAKE_BINARY_DIR
}
/lite/api/libpaddle_light_api_shared.so"
"
${
INFER_LITE_PUBLISH_ROOT
}
/cxx/lib"
)
)
add_dependencies
(
tiny_publish_cxx_lib paddle_light_api_shared
)
add_dependencies
(
publish_inference tiny_publish_cxx_lib
)
endif
()
add_dependencies
(
publish_inference tiny_publish_cxx_lib
)
endif
()
endif
()
endif
()
...
...
lite/api/CMakeLists.txt
浏览文件 @
caeb9c82
...
...
@@ -23,7 +23,7 @@ if ((NOT LITE_ON_TINY_PUBLISH) AND (ARM_TARGET_OS STREQUAL "android"))
ARM_DEPS
${
arm_kernels
}
NPU_DEPS
${
npu_kernels
}
)
target_link_libraries
(
paddle_light_api_shared
${
light_lib_DEPS
}
${
arm_kernels
}
${
npu_kernels
}
)
else
()
if
(
ARM_TARGET_OS STREQUAL
"android"
)
if
(
(
ARM_TARGET_OS STREQUAL
"android"
)
OR
(
ARM_TARGET_OS STREQUAL
"armlinux"
)
)
add_library
(
paddle_light_api_shared SHARED
""
)
target_sources
(
paddle_light_api_shared PUBLIC
${
__lite_cc_files
}
paddle_api.cc light_api.cc light_api_impl.cc
)
add_dependencies
(
paddle_light_api_shared op_list_h kernel_list_h
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录