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

Issue 2060273002: [GN] Add support for code signing to "create_bundle" targets. (Closed)

Created:
4 years, 6 months ago by sdefresne
Modified:
4 years, 6 months ago
Reviewers:
brettw
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@ios-strings-binary
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GN] Add support for code signing to "create_bundle" targets. To be able to run iOS application on device, they have to be code signed. The code signature needs all the files to have been copied in the bundle (as it embeds a manifest) and embeds the signature in the binary. This prevents running the code signature as a separate action (as it either run before the file have been copied into the bundle, or it modify the output of another target). This CL adds support for running a script to perform the code signing as the last step of creating the application bundle. If a script is defined, it is run after all files have been copied into the bundle. The script can add new file in the bundle but must not modify any file already there (on iOS this means that the script will copy the binary into the bundle). While adding support for code signing, found and fixed an issue where the input dependencies of the create_bundle targets was incorrect (files that are not generated were not listed as inputs). BUG=600491 Committed: https://crrev.com/14ddbb64afb087115791aeb2237dc880eac6de12 Cr-Commit-Position: refs/heads/master@{#399755}

Patch Set 1 #

Patch Set 2 : Update documentation & validate that output is in $root_out_dir #

Patch Set 3 : Use the correct dependency type #

Patch Set 4 : Fix unit tests and add a new one #

Patch Set 5 : Rename NinjaCreateBundleTargetWriter.OrderOnlyDeps test #

Total comments: 2

Patch Set 6 : Remove superfluous \n #

Unified diffs Side-by-side diffs Delta from patch set Stats (+741 lines, -137 lines) Patch
M tools/gn/bundle_data.h View 1 2 3 3 chunks +32 lines, -1 line 0 comments Download
M tools/gn/bundle_data.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M tools/gn/command_desc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/create_bundle_target_generator.h View 1 chunk +10 lines, -3 lines 0 comments Download
M tools/gn/create_bundle_target_generator.cc View 1 3 chunks +135 lines, -19 lines 0 comments Download
M tools/gn/docs/reference.md View 1 8 chunks +124 lines, -29 lines 0 comments Download
M tools/gn/functions_target.cc View 3 chunks +57 lines, -17 lines 0 comments Download
M tools/gn/ninja_create_bundle_target_writer.h View 1 chunk +35 lines, -0 lines 0 comments Download
M tools/gn/ninja_create_bundle_target_writer.cc View 1 2 3 4 chunks +182 lines, -60 lines 0 comments Download
M tools/gn/ninja_create_bundle_target_writer_unittest.cc View 1 2 3 4 6 chunks +82 lines, -6 lines 0 comments Download
M tools/gn/variables.h View 1 chunk +16 lines, -0 lines 0 comments Download
M tools/gn/variables.cc View 1 2 3 4 5 2 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
sdefresne
Please take a look.
4 years, 6 months ago (2016-06-13 14:34:13 UTC) #2
sdefresne
On 2016/06/13 14:34:13, sdefresne wrote: > Please take a look. This is how it will ...
4 years, 6 months ago (2016-06-13 16:37:49 UTC) #3
brettw
My recollection is that there are multiple bundle_data targets all over that get combined into ...
4 years, 6 months ago (2016-06-13 21:16:27 UTC) #4
sdefresne
On 2016/06/13 21:16:27, brettw wrote: > My recollection is that there are multiple bundle_data targets ...
4 years, 6 months ago (2016-06-14 07:34:01 UTC) #5
sdefresne
On 2016/06/14 07:34:01, sdefresne wrote: > On 2016/06/13 21:16:27, brettw wrote: > > My recollection ...
4 years, 6 months ago (2016-06-14 07:37:10 UTC) #6
brettw
Yes, that explains my confusion. LGTM https://codereview.chromium.org/2060273002/diff/80001/tools/gn/variables.cc File tools/gn/variables.cc (right): https://codereview.chromium.org/2060273002/diff/80001/tools/gn/variables.cc#newcode678 tools/gn/variables.cc:678: "code_signing_sources: [file list] ...
4 years, 6 months ago (2016-06-14 17:36:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060273002/100001
4 years, 6 months ago (2016-06-14 17:51:04 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-14 18:33:44 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 18:34:05 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 18:35:00 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/14ddbb64afb087115791aeb2237dc880eac6de12
Cr-Commit-Position: refs/heads/master@{#399755}

Powered by Google App Engine
This is Rietveld 408576698