Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_34031325
engine
提交
a6a7c854
E
engine
项目概览
qq_34031325
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
a6a7c854
编写于
7月 30, 2019
作者:
K
Kaushik Iska
提交者:
GitHub
7月 30, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fuchsia] Add arm64 builds for flutter and dart runner (#10260)
上级
e77e4f0e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
25 deletion
+40
-25
.cirrus.yml
.cirrus.yml
+2
-2
DEPS
DEPS
+1
-1
tools/fuchsia/build_fuchsia_artifacts.py
tools/fuchsia/build_fuchsia_artifacts.py
+31
-22
tools/gn
tools/gn
+6
-0
未找到文件。
.cirrus.yml
浏览文件 @
a6a7c854
...
...
@@ -105,11 +105,11 @@ task:
build_script
:
|
cd $ENGINE_PATH/src/flutter
./ci/build.sh
-
name
:
build_fuchsia_unopt_profile
-
name
:
build_fuchsia_unopt_profile
_x64
compile_host_script
:
|
cd $ENGINE_PATH/src
./flutter/tools/gn --runtime-mode profile --fuchsia --no-lto --unopt
ninja -C out/fuchsia_profile_unopt
ninja -C out/fuchsia_profile_unopt
_x64
# WINDOWS
task
:
...
...
DEPS
浏览文件 @
a6a7c854
...
...
@@ -136,7 +136,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
de2a399cf6fbc24c2fa5dc7e93dabde5c436cfb3
',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
87840fd4ac6974537339969486acdbf9613b3c9e
',
# Fuchsia compatibility
#
...
...
tools/fuchsia/build_fuchsia_artifacts.py
浏览文件 @
a6a7c854
...
...
@@ -131,12 +131,11 @@ def CopyToBucket(src, dst, product=False):
CopyToBucketWithMode
(
src
,
dst
,
False
,
product
,
'dart'
)
def
BuildBucket
():
def
BuildBucket
(
runtime_mode
,
arch
,
product
):
RemoveDirectoryIfExists
(
_bucket_directory
)
CopyToBucket
(
'fuchsia_debug/'
,
'flutter/debug/'
)
CopyToBucket
(
'fuchsia_profile/'
,
'flutter/profile/'
)
CopyToBucket
(
'fuchsia_release/'
,
'flutter/release/'
,
True
)
out_dir
=
'fuchsia_%s_%s/'
%
(
runtime_mode
,
arch
)
bucket_dir
=
'flutter/%s/%s/'
%
(
arch
,
runtime_mode
)
CopyToBucket
(
out_dir
,
bucket_dir
,
product
)
def
ProcessCIPDPakcage
(
upload
,
engine_version
):
...
...
@@ -187,6 +186,24 @@ def GetTargetsToBuild(product=False):
return
targets_to_build
def
BuildTarget
(
runtime_mode
,
arch
,
product
):
out_dir
=
'fuchsia_%s_%s'
%
(
runtime_mode
,
arch
)
flags
=
[
'--fuchsia'
,
# The source does not require LTO and LTO is not wired up for targets.
'--no-lto'
,
'--fuchsia-cpu'
,
arch
,
'--runtime-mode'
,
runtime_mode
]
RunGN
(
out_dir
,
flags
)
BuildNinjaTargets
(
out_dir
,
GetTargetsToBuild
(
product
))
return
def
main
():
parser
=
argparse
.
ArgumentParser
()
...
...
@@ -203,23 +220,15 @@ def main():
args
=
parser
.
parse_args
()
common_flags
=
[
'--fuchsia'
,
# The source does not require LTO and LTO is not wired up for targets.
'--no-lto'
,
]
RunGN
(
'fuchsia_debug'
,
common_flags
+
[
'--runtime-mode'
,
'debug'
])
RunGN
(
'fuchsia_profile'
,
common_flags
+
[
'--runtime-mode'
,
'profile'
])
RunGN
(
'fuchsia_release'
,
common_flags
+
[
'--runtime-mode'
,
'release'
])
BuildNinjaTargets
(
'fuchsia_debug'
,
GetTargetsToBuild
())
BuildNinjaTargets
(
'fuchsia_profile'
,
GetTargetsToBuild
())
BuildNinjaTargets
(
'fuchsia_release'
,
GetTargetsToBuild
(
True
))
BuildBucket
()
archs
=
[
'x64'
,
'arm64'
]
runtime_modes
=
[
'debug'
,
'profile'
,
'release'
]
product_modes
=
[
False
,
False
,
True
]
for
arch
in
archs
:
for
i
in
range
(
3
):
runtime_mode
=
runtime_modes
[
i
]
product
=
product_modes
[
i
]
BuildTarget
(
runtime_mode
,
arch
,
product
)
BuildBucket
(
runtime_mode
,
arch
,
product
)
ProcessCIPDPakcage
(
args
.
upload
,
args
.
engine_version
)
...
...
tools/gn
浏览文件 @
a6a7c854
...
...
@@ -40,6 +40,9 @@ def get_out_dir(args):
if
args
.
linux_cpu
is
not
None
:
target_dir
.
append
(
args
.
linux_cpu
)
if
args
.
target_os
==
'fuchsia'
and
args
.
fuchsia_cpu
is
not
None
:
target_dir
.
append
(
args
.
fuchsia_cpu
)
if
args
.
enable_vulkan
:
target_dir
.
append
(
'vulkan'
)
...
...
@@ -166,6 +169,8 @@ def to_gn_args(args):
gn_args
[
'target_cpu'
]
=
args
.
ios_cpu
elif
args
.
target_os
==
'linux'
:
gn_args
[
'target_cpu'
]
=
args
.
linux_cpu
elif
args
.
target_os
==
'fuchsia'
:
gn_args
[
'target_cpu'
]
=
args
.
fuchsia_cpu
else
:
# Building host artifacts
gn_args
[
'target_cpu'
]
=
'x64'
...
...
@@ -290,6 +295,7 @@ def parse_args(args):
parser
.
add_argument
(
'--simulator'
,
action
=
'store_true'
,
default
=
False
)
parser
.
add_argument
(
'--fuchsia'
,
dest
=
'target_os'
,
action
=
'store_const'
,
const
=
'fuchsia'
)
parser
.
add_argument
(
'--linux-cpu'
,
type
=
str
,
choices
=
[
'x64'
,
'x86'
,
'arm64'
,
'arm'
])
parser
.
add_argument
(
'--fuchsia-cpu'
,
type
=
str
,
choices
=
[
'x64'
,
'arm64'
],
default
=
'x64'
)
parser
.
add_argument
(
'--arm-float-abi'
,
type
=
str
,
choices
=
[
'hard'
,
'soft'
,
'softfp'
])
parser
.
add_argument
(
'--goma'
,
default
=
True
,
action
=
'store_true'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录