未验证 提交 8ac7cbdd 编写于 作者: C Chinmay Garde 提交者: GitHub

Fix warning about settings unavailable GN arg build_glfw_shell (#9642)

This is only available on Darwin & Linux host targets. On Android target builds, the logic amounted to says “Don’t build GLFW on Android targets”. Since GLFW on Android does not make sense and the target does not exist, GN was generating a warning.
上级 f6657178
......@@ -253,7 +253,8 @@ def to_gn_args(args):
if sys.platform == 'darwin':
gn_args['mac_sdk_path'] = args.mac_sdk_path
gn_args['build_glfw_shell'] = args.build_glfw_shell
if args.build_glfw_shell:
gn_args['build_glfw_shell'] = True
if gn_args['mac_sdk_path'] == '':
gn_args['mac_sdk_path'] = os.getenv('FLUTTER_MAC_SDK_PATH', '')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册