Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(152)

Issue 6553044: Pull out SDKROOT into a gyp variable (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by Stephen White
Modified:
11 years, 8 months ago
Reviewers:
epoger, EricB, thakis, caryclark1
CC:
skia-reviews_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This change allows you to specify SDKROOT using a GYP variable, so the default setting (macos10.6) can be overridden. This allows building on Lion or Mountain Lion using XCode 4. (Ideally, we should be sniffing the OS version and setting it automatically, but I didn't do that here.)

Patch Set 1 #

Total comments: 1

Patch Set 2 : skia_sdkroot -> skia_osx_sdkroot #

Total comments: 1

Patch Set 3 : trim to macosx #

Patch Set 4 : change the default back to macosx10.6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M gyp/common_conditions.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
M gyp/common_variables.gypi View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15
Stephen White
11 years, 8 months ago (2012-09-20 14:57:31 UTC) #1
epoger
Adding Cary... I think he said we could just make it "macosx" instead of "macosx10.6" ...
11 years, 8 months ago (2012-09-20 14:59:07 UTC) #2
EricB
https://codereview.appspot.com/6553044/diff/1/gyp/common_variables.gypi File gyp/common_variables.gypi (right): https://codereview.appspot.com/6553044/diff/1/gyp/common_variables.gypi#newcode81 gyp/common_variables.gypi:81: 'skia_sdkroot%': 'macos10.6', I suggest something more descriptive like "skia_osx_sdk" ...
11 years, 8 months ago (2012-09-20 14:59:32 UTC) #3
Stephen White
On 2012/09/20 14:59:32, EricB wrote: > https://codereview.appspot.com/6553044/diff/1/gyp/common_variables.gypi > File gyp/common_variables.gypi (right): > > https://codereview.appspot.com/6553044/diff/1/gyp/common_variables.gypi#newcode81 > ...
11 years, 8 months ago (2012-09-20 15:14:03 UTC) #4
Stephen White
On 2012/09/20 14:59:07, epoger wrote: > Adding Cary... I think he said we could just ...
11 years, 8 months ago (2012-09-20 15:15:43 UTC) #5
Stephen White
On 2012/09/20 15:15:43, Stephen White wrote: > On 2012/09/20 14:59:07, epoger wrote: > > Adding ...
11 years, 8 months ago (2012-09-20 15:21:08 UTC) #6
epoger
http://codereview.appspot.com/6553044/diff/2002/gyp/common_variables.gypi File gyp/common_variables.gypi (right): http://codereview.appspot.com/6553044/diff/2002/gyp/common_variables.gypi#newcode81 gyp/common_variables.gypi:81: 'skia_osx_sdkroot%': 'macos10.6', I'm pretty sure this is wrong... its ...
11 years, 8 months ago (2012-09-20 15:26:09 UTC) #7
Stephen White
On 2012/09/20 15:26:09, epoger wrote: > http://codereview.appspot.com/6553044/diff/2002/gyp/common_variables.gypi > File gyp/common_variables.gypi (right): > > http://codereview.appspot.com/6553044/diff/2002/gyp/common_variables.gypi#newcode81 > ...
11 years, 8 months ago (2012-09-20 15:34:04 UTC) #8
epoger
> > My suggestion: > > 1. change this to 'macosx' > > 2. test ...
11 years, 8 months ago (2012-09-20 15:45:39 UTC) #9
Stephen White
On 2012/09/20 15:45:39, epoger wrote: > > > My suggestion: > > > 1. change ...
11 years, 8 months ago (2012-09-20 15:53:08 UTC) #10
epoger
LGTM
11 years, 8 months ago (2012-09-20 15:53:41 UTC) #11
epoger
On 2012/09/20 15:53:41, epoger wrote: > LGTM thanks for wading into the muck :-)
11 years, 8 months ago (2012-09-20 15:53:53 UTC) #12
EricB
On 2012/09/20 15:53:53, epoger wrote: > On 2012/09/20 15:53:41, epoger wrote: > > LGTM > ...
11 years, 8 months ago (2012-09-20 15:54:53 UTC) #13
Stephen White
On 2012/09/20 15:54:53, EricB wrote: > On 2012/09/20 15:53:53, epoger wrote: > > On 2012/09/20 ...
11 years, 8 months ago (2012-09-20 19:47:01 UTC) #14
thakis
11 years, 8 months ago (2012-09-21 01:49:44 UTC) #15
> Done.  Seems to work fine on 10.8.
> 
> I think this does mean that on all versions of MacOS, we'll be compiling
against
> the native SDK for that version (ie., 10.6 SDK on 10.6, 10.7 SDK on 10.7,
etc). 
> Which is different than what Chrome does, where it builds always with the 10.6
> SDK (I think -- thakis@, can you confirm?) in order to produce a single binary
> that runs on all versions.

Chrome has a variable "mac_sdk" that works like the thing you're adding in the
last patchset. For unofficial builds, it's set to the output of a small python
script that automatically detects the lowest available sdk >= 10.6 (see
https://chromiumcodereview.appspot.com/10824055), so devs usually don't have to
set it manually. It's always set to 10.6 on bots.

> The danger there being that we accidentally start using a 10.7 or 10.8 API in
> Skia and don't notice it until we try to roll into Chrome.  (Although that
would
> probably also break the Skia 10.6 buildbots, so I suppose we'd notice it
> earlier, so maybe not a problem).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b