From 064a35c0133b7a5906f92bb1e54225778ff1d4c8 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 3 Jan 2017 16:40:15 -0800 Subject: [PATCH] Make GN generate Xcode projects on Mac. (flutter/engine#3320) --- engine/src/flutter/tools/gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 907c2e8a6f..c3503c3e30 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -161,8 +161,13 @@ def main(argv): command = [ '%s/buildtools/%s/gn' % (SRC_ROOT, subdir), 'gen', - '--check' + '--check', ] + + if sys.platform == 'darwin': + # On the Mac, also generate Xcode projects for ease of editing. + command.append('--ide=xcode') + gn_args = to_command_line(to_gn_args(args)) out_dir = get_out_dir(args) print "gn gen --check in %s" % out_dir