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

Issue 1752033002: Add "create_bundle" target in order to support bundle with gn. (Closed)

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

Description

Add "create_bundle" target in order to support bundle with gn. The "create_bundle" target recursively collect information from all the "bundle_data" targets it depends and create a bundle from them. This is configurable in many way to support all kinds of bundles on OS X or iOS. Design: https://docs.google.com/document/d/1bKh57hg6TSBsEmeh0zWpOO5SVGA2INu-D3FGgsyICzk/view BUG=297668 Committed: https://crrev.com/1232aaeb49f5ec11e0e9fcc527bfa96de21904ca Cr-Commit-Position: refs/heads/master@{#380454}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 16

Patch Set 3 : Add unit tests and fix documentation #

Total comments: 22

Patch Set 4 : Add unit tests, address comments, update docs and format with clang-format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1410 lines, -13 lines) Patch
M tools/gn/BUILD.gn View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
A tools/gn/bundle_data.h View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A tools/gn/bundle_data.cc View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download
A tools/gn/bundle_file_rule.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A tools/gn/bundle_file_rule.cc View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M tools/gn/command_desc.cc View 3 chunks +9 lines, -2 lines 0 comments Download
A tools/gn/create_bundle_target_generator.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A tools/gn/create_bundle_target_generator.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 3 7 chunks +242 lines, -2 lines 0 comments Download
M tools/gn/function_toolchain.cc View 1 2 3 4 chunks +27 lines, -4 lines 0 comments Download
M tools/gn/functions.h View 1 chunk +9 lines, -0 lines 0 comments Download
M tools/gn/functions.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/functions_target.cc View 1 2 3 2 chunks +150 lines, -3 lines 0 comments Download
M tools/gn/gn.gyp View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
A tools/gn/ninja_create_bundle_target_writer.h View 1 chunk +23 lines, -0 lines 0 comments Download
A tools/gn/ninja_create_bundle_target_writer.cc View 1 2 3 1 chunk +115 lines, -0 lines 0 comments Download
A tools/gn/ninja_create_bundle_target_writer_unittest.cc View 1 2 3 1 chunk +173 lines, -0 lines 0 comments Download
M tools/gn/ninja_target_writer.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/substitution_type.h View 2 chunks +2 lines, -1 line 0 comments Download
M tools/gn/substitution_type.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/gn/target.h View 5 chunks +11 lines, -1 line 0 comments Download
M tools/gn/target.cc View 5 chunks +44 lines, -0 lines 0 comments Download
M tools/gn/target_generator.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M tools/gn/test_with_scope.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M tools/gn/toolchain.h View 2 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/toolchain.cc View 4 chunks +7 lines, -0 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 2 chunks +79 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (4 generated)
sdefresne
Please take a look. Second CL implementing support for bundle to GN.
4 years, 9 months ago (2016-03-01 19:18:05 UTC) #2
brettw
https://codereview.chromium.org/1752033002/diff/40001/tools/gn/bundle_data.h File tools/gn/bundle_data.h (right): https://codereview.chromium.org/1752033002/diff/40001/tools/gn/bundle_data.h#newcode65 tools/gn/bundle_data.h:65: std::string root_dir_; Can this have a comment that these ...
4 years, 9 months ago (2016-03-02 21:12:42 UTC) #4
sdefresne
Please take another look. I think I addressed all comments. https://codereview.chromium.org/1752033002/diff/40001/tools/gn/bundle_data.h File tools/gn/bundle_data.h (right): https://codereview.chromium.org/1752033002/diff/40001/tools/gn/bundle_data.h#newcode65 ...
4 years, 9 months ago (2016-03-07 20:47:35 UTC) #5
brettw
I still don't see a test for NinjaCreateBundleTargetWriter. The other target writers test that the ...
4 years, 9 months ago (2016-03-07 21:57:30 UTC) #6
sdefresne
> I still don't see a test for NinjaCreateBundleTargetWriter. The > other target writers test ...
4 years, 9 months ago (2016-03-08 14:33:31 UTC) #7
sdefresne
Ping?
4 years, 9 months ago (2016-03-10 03:51:54 UTC) #8
brettw
LGTM (was on vacation for last 2 days)
4 years, 9 months ago (2016-03-10 19:09:49 UTC) #9
sdefresne
On 2016/03/10 at 19:09:49, brettw wrote: > LGTM (was on vacation for last 2 days) ...
4 years, 9 months ago (2016-03-10 19:13:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1752033002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1752033002/80001
4 years, 9 months ago (2016-03-10 19:15:07 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 9 months ago (2016-03-10 20:16:45 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 20:17:49 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1232aaeb49f5ec11e0e9fcc527bfa96de21904ca
Cr-Commit-Position: refs/heads/master@{#380454}

Powered by Google App Engine
This is Rietveld 408576698