[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix warning about settings unavailable GN arg build_glfw_shell (flutt…
Browse files Browse the repository at this point in the history
…er#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.
  • Loading branch information
chinmaygarde committed Jul 1, 2019
1 parent f665717 commit 8ac7cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -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', '')

Expand Down

0 comments on commit 8ac7cbd

Please sign in to comment.