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

Issue 12725005: improve xcode_emulation.py (Closed)

Created:
7 years, 9 months ago by kal
Modified:
7 years, 8 months ago
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

improve xcode_emulation.py + Improved SDK path lookup: now also supports iPhoneOS and iPhoneSimulator SDKs + Adds support for options CLANG_CXX_LANGUAGE_STANDARD, CLANG_CXX_LIBRARY, CLANG_WARN_CONSTANT_CONVERSION + Adds support for IPHONEOS_DEPLOYMENT_TARGET (iphoneos and iphonesimulator) BUG=

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added tests #

Total comments: 5

Patch Set 3 : xcode_emulation.py clean-ups #

Patch Set 4 : test/{xcode => mac}, fixed ios tests with 'xcode' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -41 lines) Patch
M pylib/gyp/xcode_emulation.py View 1 2 7 chunks +51 lines, -32 lines 5 comments Download
A test/ios/deployment-target/check-version-min.c View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A test/ios/deployment-target/deployment-target.gyp View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A test/ios/gyptest-deployment-target.py View 1 1 chunk +23 lines, -0 lines 0 comments Download
A + test/mac/clang-cxx-language-standard/c++11.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
A test/mac/clang-cxx-language-standard/c++98.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A test/mac/clang-cxx-language-standard/clang-cxx-language-standard.gyp View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A test/mac/clang-cxx-library/clang-cxx-library.gyp View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A + test/mac/clang-cxx-library/libc++.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
A + test/mac/clang-cxx-library/libstdc++.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
A test/mac/deployment-target/check-version-min.c View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A test/mac/deployment-target/deployment-target.gyp View 1 1 chunk +28 lines, -0 lines 0 comments Download
A test/mac/gyptest-clang-cxx-language-standard.py View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A test/mac/gyptest-clang-cxx-library.py View 1 2 3 1 chunk +23 lines, -0 lines 1 comment Download
A test/mac/gyptest-deployment-target.py View 1 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
kal
Please review my code.
7 years, 9 months ago (2013-03-10 09:00:25 UTC) #1
Nico
Thanks for the patch! This looks really good. Can you add a few tests? We ...
7 years, 9 months ago (2013-03-11 17:14:40 UTC) #2
kal
On 2013/03/11 17:14:40, Nico wrote: > Thanks for the patch! This looks really good. > ...
7 years, 9 months ago (2013-03-11 20:33:23 UTC) #3
Nico
On 2013/03/11 20:33:23, kal wrote: > On 2013/03/11 17:14:40, Nico wrote: > > Thanks for ...
7 years, 9 months ago (2013-03-11 20:35:44 UTC) #4
kal
On 2013/03/11 20:35:44, Nico wrote: > On 2013/03/11 20:33:23, kal wrote: > > On 2013/03/11 ...
7 years, 9 months ago (2013-03-11 21:14:31 UTC) #5
kal
I have added some tests. Open issues: + File 'check-version-min.c' is used in both test/ios/deployment-target ...
7 years, 9 months ago (2013-03-12 13:10:08 UTC) #6
Sam Clegg
https://codereview.chromium.org/12725005/diff/9001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/12725005/diff/9001/pylib/gyp/xcode_emulation.py#newcode227 pylib/gyp/xcode_emulation.py:227: out, nul = job.communicate() The convention here is to ...
7 years, 9 months ago (2013-03-12 19:06:24 UTC) #7
kal
Made changes suggested by Sam. https://codereview.chromium.org/12725005/diff/9001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/12725005/diff/9001/pylib/gyp/xcode_emulation.py#newcode227 pylib/gyp/xcode_emulation.py:227: out, nul = job.communicate() ...
7 years, 9 months ago (2013-03-12 23:07:23 UTC) #8
kal
Changes: + mv test/xcode/* test/mac/ + Changed test/ios/deployment-target to build as 'static_library'. The error: target ...
7 years, 9 months ago (2013-03-13 17:36:51 UTC) #9
Nico
LGTM Have you signed https://developers.google.com/open-source/cla/individual ? Once you've done this, I'm happy to land this ...
7 years, 9 months ago (2013-03-13 17:45:25 UTC) #10
kal
On 2013/03/13 17:45:25, Nico wrote: > LGTM > > Have you signed https://developers.google.com/open-source/cla/individual ? I ...
7 years, 9 months ago (2013-03-13 18:02:07 UTC) #11
kal
On 2013/03/13 18:02:07, kal wrote: > On 2013/03/13 17:45:25, Nico wrote: > > LGTM > ...
7 years, 9 months ago (2013-03-13 18:04:19 UTC) #12
Nico
https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py#newcode226 pylib/gyp/xcode_emulation.py:226: job = subprocess.Popen(['xcodebuild', '-version', '-sdk', sdk, infoitem], As it ...
7 years, 9 months ago (2013-03-18 15:17:05 UTC) #13
Nico
https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py#newcode226 pylib/gyp/xcode_emulation.py:226: job = subprocess.Popen(['xcodebuild', '-version', '-sdk', sdk, infoitem], On 2013/03/18 ...
7 years, 9 months ago (2013-03-18 15:32:31 UTC) #14
kal
https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py#newcode226 pylib/gyp/xcode_emulation.py:226: job = subprocess.Popen(['xcodebuild', '-version', '-sdk', sdk, infoitem], On 2013/03/18 ...
7 years, 9 months ago (2013-03-18 15:32:32 UTC) #15
Nico
https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py#newcode226 pylib/gyp/xcode_emulation.py:226: job = subprocess.Popen(['xcodebuild', '-version', '-sdk', sdk, infoitem], Zombie thread: ...
7 years, 8 months ago (2013-04-12 20:28:39 UTC) #16
kal
On 2013/04/12 20:28:39, Nico wrote: > https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py > File pylib/gyp/xcode_emulation.py (right): > > https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py#newcode226 > ...
7 years, 8 months ago (2013-04-12 22:16:38 UTC) #17
kal
On 2013/04/12 20:28:39, Nico wrote: > https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py > File pylib/gyp/xcode_emulation.py (right): > > https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py#newcode226 > ...
7 years, 8 months ago (2013-04-12 22:24:24 UTC) #18
Nico
7 years, 8 months ago (2013-04-12 22:31:53 UTC) #19
Message was sent while issue was closed.
On 2013/04/12 22:24:24, kal wrote:
> On 2013/04/12 20:28:39, Nico wrote:
> >
>
https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation.py
> > File pylib/gyp/xcode_emulation.py (right):
> > 
> >
>
https://codereview.chromium.org/12725005/diff/28001/pylib/gyp/xcode_emulation...
> > pylib/gyp/xcode_emulation.py:226: job = subprocess.Popen(['xcodebuild',
> > '-version', '-sdk', sdk, infoitem],
> > Zombie thread: Why do you redirect stderr at all?
> > 
> > We just had some confusion because xcodebuild would error out:
> > 
> > https://gist.github.com/5374843
> > 
> > """xcodebuild[39147:f07] Error loading
> > /Users/alexisme/Library/Developer/Xcode/Third-Party
> > Plug-ins/CodePilot2.xcplugin/Contents/MacOS/CodePilot2: 
> > dlopen(/Users/alexisme/Library/Developer/Xcode/Third-Party
> > Plug-ins/CodePilot2.xcplugin/Contents/MacOS/CodePilot2, 265): Symbol not
> found:
> > _IDEEditorDocumentDidChangeNotification
> >   Referenced from: /Users/alexisme/Library/Developer/Xcode/Third-Party
> > Plug-ins/CodePilot2.xcplugin/Contents/MacOS/CodePilot2
> >   Expected in: flat namespace
> >  in /Users/alexisme/Library/Developer/Xcode/Third-Party
> > Plug-ins/CodePilot2.xcplugin/Contents/MacOS/CodePilot2
> > 2013-04-12 17:18:59.804 xcodebuild[39147:f07] WARNING: Failed to load plugin
> at:
> > /Users/alexisme/Library/Developer/Xcode/Third-Party
> > Plug-ins/CodePilot2.xcplugin, skipping.  Could not load bundle.
> >
>
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"""
> > 
> > …which silently got copied into the sdk version output, which then later
> caused
> > an assertion about a newline being in some env var string. What's the
downside
> > of not redirecting stderr?
> > 
> > (Weird that this didn't cause a nonzero exit code though.)
> 
> I think the zero exit code makes sense because this is a non-fatal error. The
> last line of output seems to be the correct stdout value?

Looks like it. I sent you https://codereview.chromium.org/14163004/ to remove
the stderr piping.

Powered by Google App Engine
This is Rietveld 408576698