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

Issue 26895006: ninja/mac: Support iOS codesign for ninja builds. (Closed)

Created:
7 years, 2 months ago by Justin Cohen (wrong one)
Modified:
7 years, 2 months ago
Reviewers:
Nico, justincohen
CC:
gyp-developer_googlegroups.com, Ami GONE FROM CHROMIUM
Visibility:
Public.

Description

ninja/mac: Support iOS codesign for ninja builds. Also: Warn for unimplemented code sign keys (Resource Rules, Entitlements, and Other) Add partial support for conditional keys for loading CODE_SIGN_IDENTITY[sdk=iphoneos*] Fix UIDeviceFamily extra plist bug, should be per target, not global. Add sig_test target which will only run if valid certs are found. R=thakis@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1756

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 24

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -19 lines) Patch
M pylib/gyp/generator/make.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M pylib/gyp/generator/ninja.py View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M pylib/gyp/xcode_emulation.py View 1 2 3 4 5 6 7 8 5 chunks +75 lines, -12 lines 0 comments Download
A test/ios/app-bundle/TestApp/check_no_signature.py View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M test/ios/app-bundle/test-device.gyp View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M test/ios/gyptest-per-config-settings.py View 1 2 3 4 5 6 7 8 3 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
justincohen
This feels rather hacky. Before I go down the path of setting up unit tests, ...
7 years, 2 months ago (2013-10-14 14:23:39 UTC) #1
justincohen
7 years, 2 months ago (2013-10-14 14:23:59 UTC) #2
Nico
https://codereview.chromium.org/26895006/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/26895006/diff/1/pylib/gyp/generator/ninja.py#newcode1217 pylib/gyp/generator/ninja.py:1217: if self.target.type == "executable" and output_binary is not None: ...
7 years, 2 months ago (2013-10-14 16:54:55 UTC) #3
justincohen
https://codereview.chromium.org/26895006/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/26895006/diff/1/pylib/gyp/generator/ninja.py#newcode1217 pylib/gyp/generator/ninja.py:1217: if self.target.type == "executable" and output_binary is not None: ...
7 years, 2 months ago (2013-10-14 16:59:12 UTC) #4
Nico
https://codereview.chromium.org/26895006/diff/1/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/1/pylib/gyp/xcode_emulation.py#newcode53 pylib/gyp/xcode_emulation.py:53: else: On 2013/10/14 16:59:12, justincohen wrote: > I wasn't ...
7 years, 2 months ago (2013-10-14 17:00:07 UTC) #5
justincohen
https://codereview.chromium.org/26895006/diff/1/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/1/pylib/gyp/xcode_emulation.py#newcode53 pylib/gyp/xcode_emulation.py:53: else: I'll change it not warn for ios/sdk=iphoneos*, but ...
7 years, 2 months ago (2013-10-14 17:01:49 UTC) #6
Nico
https://codereview.chromium.org/26895006/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/26895006/diff/1/pylib/gyp/generator/ninja.py#newcode1217 pylib/gyp/generator/ninja.py:1217: if self.target.type == "executable" and output_binary is not None: ...
7 years, 2 months ago (2013-10-14 17:02:24 UTC) #7
justincohen
Do we have, or can we add, certificates to the bots so we can codesign ...
7 years, 2 months ago (2013-10-14 22:29:09 UTC) #8
Nico
I like this CL. https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py#newcode58 pylib/gyp/xcode_emulation.py:58: def _ConvertConditionalKeys(self, configname): docstring https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py#newcode62 ...
7 years, 2 months ago (2013-10-15 02:12:56 UTC) #9
Nico
https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py#newcode778 pylib/gyp/xcode_emulation.py:778: '-v'], stdout=subprocess.PIPE) why -v here?
7 years, 2 months ago (2013-10-15 02:19:28 UTC) #10
Nico
https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py#newcode778 pylib/gyp/xcode_emulation.py:778: '-v'], stdout=subprocess.PIPE) On 2013/10/15 02:19:29, Nico wrote: > why ...
7 years, 2 months ago (2013-10-15 02:22:28 UTC) #11
Nico
Do you want to add "not implemented" warnings for CODE_SIGN_RESOURCE_RULES_PATH , OTHER_CODE_SIGN_FLAGS , CODE_SIGN_ENTITLEMENTS ?
7 years, 2 months ago (2013-10-15 02:31:31 UTC) #12
Nico
https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py#newcode775 pylib/gyp/xcode_emulation.py:775: return [] On 2013/10/15 02:12:57, Nico wrote: > now ...
7 years, 2 months ago (2013-10-15 02:33:27 UTC) #13
Nico
For the keys, I think for now you can build the targets needing signing only ...
7 years, 2 months ago (2013-10-15 03:21:17 UTC) #14
justincohen
Done! PTAL! https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py File pylib/gyp/xcode_emulation.py (right): https://codereview.chromium.org/26895006/diff/29001/pylib/gyp/xcode_emulation.py#newcode58 pylib/gyp/xcode_emulation.py:58: def _ConvertConditionalKeys(self, configname): On 2013/10/15 02:12:57, Nico ...
7 years, 2 months ago (2013-10-15 16:47:33 UTC) #15
Nico
7 years, 2 months ago (2013-10-15 17:05:47 UTC) #16
lgtm

Powered by Google App Engine
This is Rietveld 408576698