Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
e27c6e89
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
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,发现更多精彩内容 >>
未验证
提交
e27c6e89
编写于
5月 28, 2019
作者:
C
Chinmay Garde
提交者:
GitHub
5月 28, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Forward custom IDE flags to GN. (#9023)
上级
6b4ca8da
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
6 deletion
+11
-6
tools/gn
tools/gn
+11
-6
未找到文件。
tools/gn
浏览文件 @
e27c6e89
...
...
@@ -315,6 +315,10 @@ def parse_args(args):
help
=
'On the mac, the SDK is inferred from the Xcode location unless this flag is specified. '
+
' Setting the FLUTTER_MAC_SDK_PATH environment variable achieves the same effect.'
)
parser
.
add_argument
(
'--ide'
,
default
=
''
,
type
=
str
,
help
=
'The IDE files to generate using GN. Use `gn gen help` and look for the --ide flag to'
+
' see supported IDEs. If this flag is not specified, a platform specific default is selected.'
)
return
parser
.
parse_args
(
args
)
def
main
(
argv
):
...
...
@@ -335,19 +339,20 @@ def main(argv):
'--check'
,
]
if
sys
.
platform
==
'darwin'
:
# On the Mac, also generate Xcode projects for ease of editing.
if
args
.
ide
!=
''
:
command
.
append
(
'--ide=%s'
%
args
.
ide
)
elif
sys
.
platform
==
'darwin'
:
# On the Mac, generate an Xcode project by default.
command
.
append
(
'--ide=xcode'
)
if
sys
.
platform
.
startswith
(
'win'
):
# On Windows, also generate Visual Studio project for ease of editing.
elif
sys
.
platform
.
startswith
(
'win'
):
# On Windows, generate a Visual Studio project.
command
.
append
(
'--ide=vs'
)
gn_args
=
to_command_line
(
to_gn_args
(
args
))
out_dir
=
get_out_dir
(
args
)
print
"gn gen --check in %s"
%
out_dir
command
.
append
(
out_dir
)
command
.
append
(
'--args=%s'
%
' '
.
join
(
gn_args
))
print
"Generating GN files in: %s"
%
out_dir
gn_call_result
=
subprocess
.
call
(
command
,
cwd
=
SRC_ROOT
)
if
gn_call_result
==
0
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录