Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
8b2dc47a
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8b2dc47a
编写于
8月 26, 2020
作者:
L
liuwenhao4
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add Convertor function for windows enviroment
上级
9f131702
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
7 deletion
+14
-7
build.bat
build.bat
+3
-0
cmake/package_lite.cmake
cmake/package_lite.cmake
+9
-5
mindspore/lite/CMakeLists.txt
mindspore/lite/CMakeLists.txt
+2
-2
未找到文件。
build.bat
浏览文件 @
8b2dc47a
...
...
@@ -55,6 +55,9 @@ IF "%1%" == "lite" (
IF
errorlevel
1
(
echo
"build fail."
goto
run_fail
)
ELSE
(
cd
%BASEPATH%
/output
rd
/s /q
_CPack_Packages
)
)
ELSE
(
cmake
-DCMAKE
_BUILD_TYPE
=
Release
-DENABLE
_CPU
=
ON
-DENABLE
_MINDDATA
=
ON
-DUSE
_GLOG
=
ON
^
...
...
cmake/package_lite.cmake
浏览文件 @
8b2dc47a
...
...
@@ -45,9 +45,9 @@ elseif (PLATFORM_ARM32)
elseif
(
CMAKE_SYSTEM_NAME MATCHES
"Windows"
)
get_filename_component
(
CXX_DIR
${
CMAKE_CXX_COMPILER
}
PATH
)
file
(
GLOB LIB_LIST
${
CXX_DIR
}
/libstdc++-6.dll
${
CXX_DIR
}
/libwinpthread-1.dll
${
CXX_DIR
}
/libssp-0.dll
${
CXX_DIR
}
/libgcc_s_seh-1.dll
)
install
(
FILES
${
TOP_DIR
}
/build/mindspore/tools/converter/converter_lite.exe DESTINATION
${
TOP_DIR
}
/
output
COMPONENT
${
COMPONENT_NAME
}
)
install
(
FILES
${
LIB_LIST
}
DESTINATION
${
TOP_DIR
}
/
output
COMPONENT
${
COMPONENT_NAME
}
)
install
(
FILES
${
TOP_DIR
}
/build/mindspore/tools/converter/libconverter_parser.a DESTINATION
${
TOP_DIR
}
/
output
COMPONENT
${
PARSER_NAME
}
)
install
(
FILES
${
TOP_DIR
}
/build/mindspore/tools/converter/converter_lite.exe DESTINATION
${
TOP_DIR
}
/
build/mindspore/package
COMPONENT
${
COMPONENT_NAME
}
)
install
(
FILES
${
LIB_LIST
}
DESTINATION
${
TOP_DIR
}
/
build/mindspore/package
COMPONENT
${
COMPONENT_NAME
}
)
install
(
FILES
${
TOP_DIR
}
/build/mindspore/tools/converter/libconverter_parser.a DESTINATION
${
TOP_DIR
}
/
build/mindspore/package
COMPONENT
${
PARSER_NAME
}
)
else
()
install
(
FILES
${
TOP_DIR
}
/mindspore/lite/build/src/libmindspore-lite.so DESTINATION
${
LIB_DIR_RUN_X86
}
COMPONENT
${
RUN_X86_COMPONENT_NAME
}
)
install
(
FILES
${
TOP_DIR
}
/third_party/protobuf/build/lib/libprotobuf.so.19.0.0 DESTINATION
${
PROTOBF_DIR
}
/lib RENAME libprotobuf.so.19 COMPONENT
${
COMPONENT_NAME
}
)
...
...
@@ -62,11 +62,15 @@ set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
if
(
PLATFORM_ARM64 OR PLATFORM_ARM32
)
set
(
CPACK_COMPONENTS_ALL
${
COMPONENT_NAME
}
)
elseif
(
WIN32
)
set
(
CPACK_COMPONENTS_ALL
${
COMPONENT_NAME
}
${
PARSER_NAME
}
)
set
(
CPACK_COMPONENTS_ALL
${
COMPONENT_NAME
}
)
else
()
set
(
CPACK_COMPONENTS_ALL
${
COMPONENT_NAME
}
${
RUN_X86_COMPONENT_NAME
}
)
endif
()
set
(
CPACK_PACKAGE_FILE_NAME
${
MAIN_DIR
}
)
set
(
CPACK_PACKAGE_DIRECTORY
${
TOP_DIR
}
/output/tmp
)
if
(
WIN32
)
set
(
CPACK_PACKAGE_DIRECTORY
${
TOP_DIR
}
/output
)
else
()
set
(
CPACK_PACKAGE_DIRECTORY
${
TOP_DIR
}
/output/tmp
)
endif
()
set
(
CPACK_PACKAGE_CHECKSUM SHA256
)
include
(
CPack
)
\ No newline at end of file
mindspore/lite/CMakeLists.txt
浏览文件 @
8b2dc47a
...
...
@@ -26,8 +26,8 @@ if (PLATFORM_ARM64)
elseif
(
PLATFORM_ARM32
)
set
(
COMPONENT_NAME runtime-arm32-
${
PROCESS_UNIT
}
)
elseif
(
WIN32
)
set
(
PARSER_NAME libconverter-parser-win
32
-
${
PROCESS_UNIT
}
)
set
(
COMPONENT_NAME converter-win
32
-
${
PROCESS_UNIT
}
)
set
(
PARSER_NAME libconverter-parser-win-
${
PROCESS_UNIT
}
)
set
(
COMPONENT_NAME converter-win-
${
PROCESS_UNIT
}
)
else
()
set
(
COMPONENT_NAME convert-ubuntu
)
endif
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录