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

Issue 748793002: Fixed Gyp Xcode generator for libraries with identical names. (Closed)

Created:
6 years ago by jsartisohn
Modified:
5 years, 11 months ago
Reviewers:
Mark Mentovai, Nico, scottmg
CC:
gyp-developer_googlegroups.com, adaubert
Visibility:
Public.

Description

Fixed Gyp Xcode generator for libraries with identical names. The Xcode generator produces the same hash for library target products that have identical names and are defined in .gyp files with identical names that have different source tree roots. The fix consists of setting the (already defined) 'projectRoot' property on the PBXProject object and adding it to the hashables of this class. Patch by Johannes Sartisohn <jsartisohn@google.com>; R=mark@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=2011

Patch Set 1 #

Total comments: 6

Patch Set 2 : Reworked the CL to make less assumptions and add the correct things to the _hashables of the correc… #

Patch Set 3 : Added minor modifications on top of Patch Set 2, pulling the hashables up to PBXGroup. #

Patch Set 4 : Fixed Indentation error. #

Patch Set 5 : Hashes are no only changed if _all_ targets have a unique SYMROOT. #

Patch Set 6 : Rebased onto HEAD of origin/master. #

Patch Set 7 : Added comments in the empty CLs for them to be correctly patched. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -0 lines) Patch
M pylib/gyp/xcodeproj_file.py View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A test/mac/gyptest-identical-name.py View 1 chunk +45 lines, -0 lines 0 comments Download
A + test/mac/identical-name/proxy/proxy.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A test/mac/identical-name/proxy/proxy.gyp View 1 chunk +9 lines, -0 lines 0 comments Download
A + test/mac/identical-name/proxy/testlib/testlib.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A test/mac/identical-name/proxy/testlib/testlib.gyp View 1 chunk +8 lines, -0 lines 0 comments Download
A test/mac/identical-name/test.gyp View 1 chunk +11 lines, -0 lines 0 comments Download
A test/mac/identical-name/test.gypi View 1 1 chunk +7 lines, -0 lines 0 comments Download
A test/mac/identical-name/test-should-fail.gyp View 1 chunk +10 lines, -0 lines 0 comments Download
A test/mac/identical-name/testlib/main.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A test/mac/identical-name/testlib/testlib.gyp View 1 chunk +14 lines, -0 lines 0 comments Download
A + test/mac/identical-name/testlib/void.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
jsartisohn
6 years ago (2014-11-21 13:05:25 UTC) #2
jsartisohn
+adaubert
6 years ago (2014-11-21 13:06:24 UTC) #3
jsartisohn
+Nico and friendly ping
6 years ago (2014-11-25 12:28:05 UTC) #5
M-A Ruel
Is that a good idea at all? Having two libraries with the same name is ...
6 years ago (2014-11-25 13:46:16 UTC) #6
jsartisohn
On 2014/11/25 13:46:16, M-A Ruel wrote: > Is that a good idea at all? Having ...
6 years ago (2014-11-25 14:27:39 UTC) #7
Nico
Mark owns the Xcode generator, it's up to him if he wants to allow this. ...
6 years ago (2014-11-25 15:12:13 UTC) #8
Mark Mentovai
On one hand, I’m not very enthusiastic about this. It doesn’t help Chrome out at ...
6 years ago (2014-11-25 15:59:31 UTC) #9
jsartisohn
On 2014/11/25 15:59:31, Mark Mentovai wrote: > On one hand, I’m not very enthusiastic about ...
6 years ago (2014-11-27 15:04:42 UTC) #10
jsartisohn
On 2014/11/27 15:04:42, jsartisohn wrote: > On 2014/11/25 15:59:31, Mark Mentovai wrote: > > On ...
6 years ago (2014-11-27 17:06:09 UTC) #11
jsartisohn
Made another change with even stricter rules for changing the hash. Now _all_ targets must ...
6 years ago (2014-12-01 16:38:41 UTC) #14
Mark Mentovai
I think we can go with this now. LGTM.
6 years ago (2014-12-01 21:38:31 UTC) #15
jsartisohn
On 2014/12/01 21:38:31, Mark Mentovai wrote: > I think we can go with this now. ...
6 years ago (2014-12-02 10:26:18 UTC) #16
commit-bot: I haz the power
Commit queue rejected this change because it did not recognize the base URL. Please commit ...
6 years ago (2014-12-02 17:02:03 UTC) #19
jsartisohn
On 2014/12/02 17:02:03, I haz the power (commit-bot) wrote: > Commit queue rejected this change ...
6 years ago (2014-12-02 17:09:10 UTC) #20
scottmg
On 2014/12/02 17:09:10, jsartisohn wrote: > On 2014/12/02 17:02:03, I haz the power (commit-bot) wrote: ...
6 years ago (2014-12-02 17:49:13 UTC) #21
scottmg
On 2014/12/02 17:49:13, scottmg wrote: > On 2014/12/02 17:09:10, jsartisohn wrote: > > On 2014/12/02 ...
6 years ago (2014-12-02 17:51:57 UTC) #22
Mark Mentovai
I’ve been trying to land this but the svn server isn’t taking it. Authentication realm: ...
6 years ago (2014-12-02 17:52:00 UTC) #23
scottmg
Committed patchset #7 (id:160001) manually as 2011 (presubmit successful).
6 years ago (2014-12-02 18:38:16 UTC) #24
scottmg
On 2014/12/02 17:52:00, Mark Mentovai wrote: > I’ve been trying to land this but the ...
6 years ago (2014-12-02 18:38:37 UTC) #25
Nico
5 years, 11 months ago (2015-01-15 18:43:23 UTC) #26
Message was sent while issue was closed.
I'm reverting this for now as it made the xcode generator very slow for larger
projects (see https://code.google.com/p/chromium/issues/detail?id=447801)

Powered by Google App Engine
This is Rietveld 408576698