Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
28426189
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看板
未验证
提交
28426189
编写于
7月 20, 2018
作者:
W
WangLiu
提交者:
GitHub
7月 20, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into develop
上级
55302b33
834a0930
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
6 deletion
+10
-6
CMakeLists.txt
CMakeLists.txt
+0
-1
tools/build.sh
tools/build.sh
+10
-4
tools/ios-cmake/ios.toolchain.cmake
tools/ios-cmake/ios.toolchain.cmake
+0
-1
未找到文件。
CMakeLists.txt
浏览文件 @
28426189
...
...
@@ -110,7 +110,6 @@ endif()
if
(
ANDROID_NDK_TOOLCHAIN_INCLUDED
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-llog"
)
add_definitions
(
-DARMV7
)
else
()
list
(
REMOVE_ITEM PADDLE_MOBILE_H
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/jni/paddle_mobile_jni.h
)
list
(
REMOVE_ITEM PADDLE_MOBILE_CC
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/jni/paddle_mobile_jni.cpp
)
...
...
tools/build.sh
浏览文件 @
28426189
...
...
@@ -38,7 +38,8 @@ build_for_android() {
fi
if
[
-z
"
$PLATFORM
"
]
;
then
PLATFORM
=
"arm-v7a"
# Users could choose "arm-v8a" or other platforms from the command line.
PLATFORM
=
"arm-v7a"
# Users could choose "arm-v8a" platform.
# PLATFORM="arm-v8a"
fi
if
[
"
${
PLATFORM
}
"
=
"arm-v7a"
]
;
then
...
...
@@ -92,23 +93,28 @@ build_for_ios() {
# rm -rf "../build"
PLATFORM
=
"ios"
MODE
=
"Release"
BUILD_DIR
=
../build/release/
"
${
PLATFORM
}
"
# IOS_ARCH="armv7"
# IOS_ARCH="armv7s"
IOS_ARCH
=
"arm64"
# Users could choose "armv7" or "armv7s" platforms.
BUILD_DIR
=
../build/release/
"
${
PLATFORM
}
"
/
"
${
IOS_ARCH
}
"
TOOLCHAIN_FILE
=
"./tools/ios-cmake/ios.toolchain.cmake"
mkdir
-p
"
${
BUILD_DIR
}
"
if
[
$#
-eq
1
]
;
then
cmake ..
\
-B
"
${
BUILD_DIR
}
"
\
-DCMAKE_BUILD_TYPE
=
"
${
MODE
}
"
\
-DCMAKE_TOOLCHAIN_FILE
=
"
${
TOOLCHAIN_FILE
}
"
\
-DIOS_PLATFORM
=
OS
\
-DIOS_ARCH
=
"
${
IOS_ARCH
}
"
\
-DCMAKE_TOOLCHAIN_FILE
=
"
${
TOOLCHAIN_FILE
}
"
\
-DNET
=
$1
\
-DIS_IOS
=
"true"
else
cmake ..
\
-B
"
${
BUILD_DIR
}
"
\
-DCMAKE_BUILD_TYPE
=
"
${
MODE
}
"
\
-DCMAKE_TOOLCHAIN_FILE
=
"
${
TOOLCHAIN_FILE
}
"
\
-DIOS_PLATFORM
=
OS
\
-DIOS_ARCH
=
"
${
IOS_ARCH
}
"
\
-DCMAKE_TOOLCHAIN_FILE
=
"
${
TOOLCHAIN_FILE
}
"
\
-DIS_IOS
=
"true"
fi
cd
"
${
BUILD_DIR
}
"
...
...
tools/ios-cmake/ios.toolchain.cmake
浏览文件 @
28426189
...
...
@@ -159,7 +159,6 @@ set (CMAKE_OSX_SYSROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Sysroot used for iOS su
# set the architecture for iOS
if
(
${
IOS_PLATFORM
}
STREQUAL
"OS"
)
set
(
IOS_ARCH armv7 armv7s
)
elseif
(
${
IOS_PLATFORM
}
STREQUAL
"SIMULATOR"
)
set
(
IOS_ARCH i386
)
elseif
(
${
IOS_PLATFORM
}
STREQUAL
"SIMULATOR64"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录