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

Issue 51413002: Adds generator support for Xcode 5 xctest targets. (Closed)

Created:
7 years, 1 month ago by jonwall
Modified:
7 years, 1 month ago
Reviewers:
Mark Mentovai, TVL
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Adds generator support for Xcode 5 xctest targets. Update the xcode generator to set the target productType in the pbxproj file to "com.apple.product-type.bundle.unit-test", if the target sets the "xctest_bundle" property. Patch by Jon Wall <jonwall@google.com>; BUG= R=mark@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1774

Patch Set 1 #

Total comments: 10

Patch Set 2 : handle case where both xctest_bundle and mac_bundle are set #

Patch Set 3 : remove xctest_host, dependency pruning logic #

Patch Set 4 : add copyright boilerplate #

Total comments: 8

Patch Set 5 : s/xctest_bundle/mac_xctest_bundle/, mac_xctest_bundle implies mac_bundle, whitespace #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -16 lines) Patch
M pylib/gyp/generator/xcode.py View 1 2 3 4 5 4 chunks +14 lines, -2 lines 0 comments Download
M pylib/gyp/xcodeproj_file.py View 1 2 3 4 5 2 chunks +21 lines, -14 lines 0 comments Download
A test/mac/gyptest-xctest.py View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A test/mac/xctest/MyClass.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A test/mac/xctest/MyClass.m View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A test/mac/xctest/TestCase.m View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A test/mac/xctest/resource.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A test/mac/xctest/test.gyp View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A test/mac/xctest/test.xcodeproj/xcshareddata/xcschemes/classes.xcscheme View 1 2 3 4 5 1 chunk +69 lines, -0 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
jonwall
7 years, 1 month ago (2013-10-30 16:32:08 UTC) #1
Mark Mentovai
https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py File pylib/gyp/generator/xcode.py (right): https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py#newcode664 pylib/gyp/generator/xcode.py:664: type_bundle_key += '+xctest' This code snippet seems to say ...
7 years, 1 month ago (2013-10-30 16:40:27 UTC) #2
jonwall
https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py File pylib/gyp/generator/xcode.py (right): https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py#newcode664 pylib/gyp/generator/xcode.py:664: type_bundle_key += '+xctest' On 2013/10/30 16:40:27, Mark Mentovai wrote: ...
7 years, 1 month ago (2013-10-30 19:07:38 UTC) #3
Mark Mentovai
https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py File pylib/gyp/generator/xcode.py (right): https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py#newcode730 pylib/gyp/generator/xcode.py:730: 'xctest_host (%s) must be listed as a dependency. (target ...
7 years, 1 month ago (2013-10-30 19:57:31 UTC) #4
jonwall
Updated to remove the dependency pruning logic. PTAL. https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py File pylib/gyp/generator/xcode.py (right): https://codereview.chromium.org/51413002/diff/1/pylib/gyp/generator/xcode.py#newcode730 pylib/gyp/generator/xcode.py:730: 'xctest_host ...
7 years, 1 month ago (2013-10-30 21:04:57 UTC) #5
Mark Mentovai
Thanks. I can LG this after these minor changes. https://codereview.chromium.org/51413002/diff/170001/pylib/gyp/generator/xcode.py File pylib/gyp/generator/xcode.py (right): https://codereview.chromium.org/51413002/diff/170001/pylib/gyp/generator/xcode.py#newcode656 pylib/gyp/generator/xcode.py:656: ...
7 years, 1 month ago (2013-10-30 21:31:16 UTC) #6
jonwall
https://codereview.chromium.org/51413002/diff/170001/pylib/gyp/generator/xcode.py File pylib/gyp/generator/xcode.py (right): https://codereview.chromium.org/51413002/diff/170001/pylib/gyp/generator/xcode.py#newcode656 pylib/gyp/generator/xcode.py:656: is_bundle = int(spec.get('mac_bundle', 0)) On 2013/10/30 21:31:16, Mark Mentovai ...
7 years, 1 month ago (2013-10-30 22:03:14 UTC) #7
Mark Mentovai
Perfect. LGTM.
7 years, 1 month ago (2013-10-30 22:08:36 UTC) #8
Mark Mentovai
https://codereview.chromium.org/51413002/diff/340001/test/prune_targets/lib1.cc File test/prune_targets/lib1.cc (right): https://codereview.chromium.org/51413002/diff/340001/test/prune_targets/lib1.cc#newcode5 test/prune_targets/lib1.cc:5: #import "MyClass.h" Ah, there’s something weird with your patch. ...
7 years, 1 month ago (2013-10-30 22:16:51 UTC) #9
Mark Mentovai
Committed patchset #7 manually as r1774 (presubmit successful).
7 years, 1 month ago (2013-10-30 22:45:15 UTC) #10
Mark Mentovai
7 years, 1 month ago (2013-10-30 22:45:33 UTC) #11
Message was sent while issue was closed.
Committed GYP r1774.

https://codereview.chromium.org/51413002/diff/450001/test/mac/xctest/test.xco...
File test/mac/xctest/test.xcodeproj/xcshareddata/xcschemes/classes.xcscheme
(right):

https://codereview.chromium.org/51413002/diff/450001/test/mac/xctest/test.xco...
test/mac/xctest/test.xcodeproj/xcshareddata/xcschemes/classes.xcscheme:1: <?xml
version="1.0" encoding="UTF-8"?>
It might be nice, for future additions, to not have to supply this file but to
have it be generated somehow.

Powered by Google App Engine
This is Rietveld 408576698