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

Issue 138533006: Improve ninja's Xcode emulation (Closed)

Created:
6 years, 10 months ago by sdefresne
Modified:
6 years, 10 months ago
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Improve ninja's Xcode emulation When cloning the target dictionaries for "iphoneos", correctly filter the ARCHS value to only include value that apply to the SDK (iphoneos or iphonesimulator). Take into consideration the VALID_ARCHS filter if defined and support the $(ARCHS_STANDARD) and $(ARCHS_STANDARD_INCLUDING_64_BIT) defaults from Xcode 5.0. If ARCHS is not set (which is the default for most of the projects) then result will be identical, but it can now be set to the macro $(ARCHS_STANDARD_INCLUDING_64_BIT) to build correctly for arm64 and armv7 with both ninja and Xcode (including xcodebuild). Update test/ios/gyptest-archs.py to test build for both simulator and device, with different configuration (no ARCHS and filter that only keep 32-bit platforms, explicit ARCHS with filters for 32-bit or 64-bit platforms, and explicit ARCHS with no filter). This breaks the test with the "make" generator as its support for Xcode emulation is inexistant. BUG=http://crbug.com/339477 R=justincohen@chromium.org, mark@chromium.org, thakist@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1850

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix unittests on bots #

Patch Set 3 : Expand $(ARCHS_STANDARD) for all toolset, both "host" and "target" #

Total comments: 8

Patch Set 4 : Rebase & rename targets names in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -98 lines) Patch
M pylib/gyp/xcode_emulation.py View 1 2 3 1 chunk +58 lines, -10 lines 0 comments Download
M test/ios/app-bundle/test-archs.gyp View 1 2 3 1 chunk +67 lines, -62 lines 0 comments Download
M test/ios/gyptest-archs.py View 1 2 3 2 chunks +65 lines, -26 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sdefresne
PTAL
6 years, 10 months ago (2014-02-05 21:48:02 UTC) #1
Mark Mentovai
+thakis too https://codereview.chromium.org/138533006/diff/1/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/138533006/diff/1/pylib/gyp/xcode_emulation.py#newcode1423 pylib/gyp/xcode_emulation.py:1423: return sdkroot == 'iphoneos' Shouldn’t this test ...
6 years, 10 months ago (2014-02-05 21:51:46 UTC) #2
sdefresne
Also fixed the tests on the bots since older version of Xcode does not support ...
6 years, 10 months ago (2014-02-06 09:53:19 UTC) #3
Nico
Thanks for the patch! Justin wrote this code, he should review. As a general point: ...
6 years, 10 months ago (2014-02-07 18:57:56 UTC) #4
sdefresne
Thank you for the review. I usually try to break my CLs in individual parts ...
6 years, 10 months ago (2014-02-07 20:19:33 UTC) #5
justincohen
The ARCHS changes LGTM. I don't know about the @classmethod changes, are you fine with ...
6 years, 10 months ago (2014-02-10 21:41:32 UTC) #6
sdefresne
Thank you all for the reviews. I've rebased my code, so my CL no longer ...
6 years, 10 months ago (2014-02-11 16:30:45 UTC) #7
Mark Mentovai
LGTM
6 years, 10 months ago (2014-02-11 17:20:53 UTC) #8
justincohen
LGTM. I wonder when the bots will move to Xcode 5?
6 years, 10 months ago (2014-02-11 17:37:36 UTC) #9
sdefresne
6 years, 10 months ago (2014-02-12 08:15:17 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as r1850 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698