Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Issue 132803008: Work on GN iOS GYP generation. (Closed)

Created:
6 years, 10 months ago by brettw
Modified:
6 years, 10 months ago
Reviewers:
Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Work on GN iOS GYP generation. This adds support for more XCODE flags to GN's GYP generator which XCode needs to be happy. With this patch, XCode can actually compile targets now and seems to do basically the right things (to the limited extent of my understanding). TBR=thakis Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248840

Patch Set 1 #

Patch Set 2 : #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -18 lines) Patch
M tools/gn/gyp_binary_target_writer.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/gyp_binary_target_writer.cc View 1 9 chunks +86 lines, -17 lines 8 comments Download

Messages

Total messages: 7 (0 generated)
brettw
Sadly there's much more weird hardcoding in this patch. There's likely to be one more ...
6 years, 10 months ago (2014-02-04 08:42:29 UTC) #1
brettw
I'm TBRing this so I can start work on the next phase.
6 years, 10 months ago (2014-02-05 04:08:52 UTC) #2
brettw
Committed patchset #2 manually as r248840 (presubmit successful).
6 years, 10 months ago (2014-02-05 04:11:51 UTC) #3
Nico
sorry, lgtm (It's "Xcode", not "XCODE" or "XCode" :-P) https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_target_writer.cc File tools/gn/gyp_binary_target_writer.cc (right): https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_target_writer.cc#newcode142 tools/gn/gyp_binary_target_writer.cc:142: ...
6 years, 10 months ago (2014-02-05 04:19:35 UTC) #4
brettw
https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_target_writer.cc File tools/gn/gyp_binary_target_writer.cc (right): https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_target_writer.cc#newcode479 tools/gn/gyp_binary_target_writer.cc:479: Indent(indent + kExtraIndent) << "'TARGETED_DEVICE_FAMILY': '1,2',\n"; On 2014/02/05 04:19:35, ...
6 years, 10 months ago (2014-02-05 04:29:30 UTC) #5
Nico
https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_target_writer.cc File tools/gn/gyp_binary_target_writer.cc (right): https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_target_writer.cc#newcode479 tools/gn/gyp_binary_target_writer.cc:479: Indent(indent + kExtraIndent) << "'TARGETED_DEVICE_FAMILY': '1,2',\n"; On 2014/02/05 04:29:30, ...
6 years, 10 months ago (2014-02-05 04:55:27 UTC) #6
brettw
6 years, 10 months ago (2014-02-05 06:18:53 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_targ...
File tools/gn/gyp_binary_target_writer.cc (right):

https://codereview.chromium.org/132803008/diff/30001/tools/gn/gyp_binary_targ...
tools/gn/gyp_binary_target_writer.cc:495: Indent(indent + kExtraIndent) <<
"'ARCHS': [ 'x86_64' ],\n";
I *think* the way to do this in GN would be to just make a "fat" mac toolchain
and everything should work fine. The main issue would be to find the best way to
invoke this (like maybe have a target in the default toolchain with the name
"remoting" that references the one in the other toolchain and copies the result
to the main build dir).

Powered by Google App Engine
This is Rietveld 408576698