Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Build Lite
提交
0922630a
B
Build Lite
项目概览
OpenHarmony
/
Build Lite
9 个月 前同步成功
通知
22
Star
24
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Build Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
0922630a
编写于
12月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!641 enable rust compilation
Merge pull request !641 from haotuo/dev_rust
上级
d117bcc8
11e41f60
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
0 deletion
+9
-0
hb_internal/build/build.py
hb_internal/build/build.py
+7
-0
hb_internal/build/build_process.py
hb_internal/build/build_process.py
+2
-0
未找到文件。
hb_internal/build/build.py
浏览文件 @
0922630a
...
@@ -102,6 +102,11 @@ def add_options(parser):
...
@@ -102,6 +102,11 @@ def add_options(parser):
help
=
'specifies the log level during compilation'
help
=
'specifies the log level during compilation'
'you can select three levels: debug, info and error'
,
'you can select three levels: debug, info and error'
,
default
=
'info'
)
default
=
'info'
)
parser
.
add_argument
(
'--export-rust-project'
,
action
=
'store_true'
,
default
=
False
,
help
=
'specifies if export rust project json during compilation'
'set to true if you want to generate rust-project.json'
)
parser
.
add_argument
(
'--fast-rebuild'
,
parser
.
add_argument
(
'--fast-rebuild'
,
action
=
'store_true'
,
action
=
'store_true'
,
default
=
False
,
default
=
False
,
...
@@ -215,6 +220,8 @@ def exec_command(args):
...
@@ -215,6 +220,8 @@ def exec_command(args):
ninja
=
False
ninja
=
False
if
args
.
fast_rebuild
:
if
args
.
fast_rebuild
:
cmd_args
[
'fast_rebuild'
]
=
args
.
fast_rebuild
cmd_args
[
'fast_rebuild'
]
=
args
.
fast_rebuild
if
args
.
export_rust_project
:
cmd_args
[
'export_rust_project'
]
=
args
.
export_rust_project
if
args
.
disable_package_image
:
if
args
.
disable_package_image
:
cmd_args
[
'disable_package_image'
]
=
args
.
disable_package_image
cmd_args
[
'disable_package_image'
]
=
args
.
disable_package_image
if
args
.
disable_post_build
:
if
args
.
disable_post_build
:
...
...
hb_internal/build/build_process.py
浏览文件 @
0922630a
...
@@ -233,6 +233,8 @@ class Build():
...
@@ -233,6 +233,8 @@ class Build():
gn_args
.
append
(
'-v'
)
gn_args
.
append
(
'-v'
)
gn_args
.
append
(
'--tracelog={}/gn_trace.log'
.
format
(
self
.
config
.
_out_path
))
gn_args
.
append
(
'--tracelog={}/gn_trace.log'
.
format
(
self
.
config
.
_out_path
))
os_level
=
self
.
config
.
os_level
os_level
=
self
.
config
.
os_level
if
cmd_args
.
get
(
'export_rust_project'
):
gn_args
.
append
(
'--export-rust-project'
)
if
cmd_args
.
get
(
'build_variant'
):
if
cmd_args
.
get
(
'build_variant'
):
self
.
register_args
(
'build_variant'
,
cmd_args
.
get
(
'build_variant'
))
self
.
register_args
(
'build_variant'
,
cmd_args
.
get
(
'build_variant'
))
if
cmd_args
.
get
(
'device_type'
):
if
cmd_args
.
get
(
'device_type'
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录