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

Issue 2063243002: [GN] Add deployment target in generated project. (Closed)

Created:
4 years, 6 months ago by sdefresne
Modified:
4 years, 4 months ago
Reviewers:
brettw
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@{1}
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GN] Add deployment target in generated project. If deployment target is not specified, Xcode defaults to the most recent SDK and prevent running the application on a device running an older version. This CL change the XcodeWriter object to build a scope from all declared arguments (with declared_args) and override the them with the values from build arguments (in $output_dir/args.gn). Before that, XcodeWriter only looked at build arguments and returned wrong values (i.e. most of the time the Value from build arguments was not set and the default value was returned). BUG=619072

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -52 lines) Patch
M tools/gn/xcode_writer.h View 4 chunks +8 lines, -9 lines 0 comments Download
M tools/gn/xcode_writer.cc View 8 chunks +107 lines, -43 lines 1 comment Download

Messages

Total messages: 6 (2 generated)
sdefresne
Please take a look. https://codereview.chromium.org/2063243002/diff/1/tools/gn/xcode_writer.cc File tools/gn/xcode_writer.cc (right): https://codereview.chromium.org/2063243002/diff/1/tools/gn/xcode_writer.cc#newcode227 tools/gn/xcode_writer.cc:227: Settings* null_settings = nullptr; I'm ...
4 years, 6 months ago (2016-06-14 17:45:10 UTC) #3
brettw
It seems like we might be adding this kind of thing forever. What about a ...
4 years, 6 months ago (2016-06-14 17:55:15 UTC) #4
sdefresne
On 2016/06/14 17:55:15, brettw wrote: > It seems like we might be adding this kind ...
4 years, 6 months ago (2016-06-14 18:02:47 UTC) #5
brettw
4 years, 6 months ago (2016-06-14 21:06:56 UTC) #6
I would allow only one call per IDE type. The toolchain files should only loaded
in the default toolchain (and we can always put a conditional around them if
necessary). Hopefully everything that xcode needs can be plumbed in one place.

Powered by Google App Engine
This is Rietveld 408576698