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

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed)

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

Description

Add support for Mac/iOS application bundles to GN tool. Add a new property to all targets named "bundle_data". The values are propagated down the dependency chain, stopping at executable, shared_library and loadable_modules. Add a new target "copy_bundle_data" similar to "copy" except that the list of files to copy comes from the "bundle_data" property of its dependencies (it can be empty). Add a new tool "copy_bundle_data" used by "copy_bundle_data" target. BUG=546283, 297668

Patch Set 1 #

Patch Set 2 : base_unittests builds and pass all tests with GN #

Total comments: 12

Patch Set 3 : Split CL to only include tool change & address comments #

Total comments: 2

Patch Set 4 : Address comments and update documentation #

Total comments: 4

Patch Set 5 : Add unit tests & support for bundle_data_filter #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -50 lines) Patch
M tools/gn/action_values.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/command_desc.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M tools/gn/command_format.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/commands.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/copy_target_generator.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/copy_target_generator.cc View 1 2 3 4 1 chunk +21 lines, -10 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 3 4 8 chunks +83 lines, -10 lines 0 comments Download
M tools/gn/function_forward_variables_from.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/function_toolchain.cc View 2 chunks +7 lines, -4 lines 1 comment Download
M tools/gn/functions.h View 1 chunk +8 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 4 2 chunks +64 lines, -2 lines 0 comments Download
M tools/gn/ninja_copy_target_writer.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M tools/gn/ninja_copy_target_writer.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M tools/gn/ninja_copy_target_writer_unittest.cc View 1 2 3 4 4 chunks +34 lines, -3 lines 0 comments Download
M tools/gn/ninja_target_writer.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M tools/gn/runtime_deps.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/gn/target.h View 1 2 3 4 5 chunks +16 lines, -0 lines 0 comments Download
M tools/gn/target.cc View 1 2 3 4 5 chunks +32 lines, -0 lines 0 comments Download
M tools/gn/target_generator.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M tools/gn/target_generator.cc View 1 2 3 4 3 chunks +38 lines, -2 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
M tools/gn/test_with_scope.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M tools/gn/toolchain.h View 2 chunks +2 lines, -0 lines 0 comments Download
M tools/gn/toolchain.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/variables.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/variables.cc View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (4 generated)
sdefresne
This is not yet ready for in-depth review, but I'd like high-level comment on whether ...
4 years, 11 months ago (2016-01-18 16:08:32 UTC) #2
brettw
I think this general concept seems fine. Let me know if you want me to ...
4 years, 11 months ago (2016-01-20 18:35:36 UTC) #3
sdefresne
I think the CL is now ready for review as I was able to build ...
4 years, 11 months ago (2016-01-20 21:02:25 UTC) #5
brettw
We need to split apart the tools/gn changes from the build changes. We need to ...
4 years, 11 months ago (2016-01-20 21:31:48 UTC) #6
brettw
https://codereview.chromium.org/1606553002/diff/20001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1606553002/diff/20001/build/toolchain/mac/BUILD.gn#newcode235 build/toolchain/mac/BUILD.gn:235: command = "rm -rf {{output}} && ./gyp-mac-tool copy-bundle-resource {{source}} ...
4 years, 11 months ago (2016-01-20 22:23:17 UTC) #7
sdefresne
Ok, I've split the CL in two as suggested. The other half (.gn/.gni changes) can ...
4 years, 11 months ago (2016-01-21 22:00:56 UTC) #10
brettw
https://codereview.chromium.org/1606553002/diff/20001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1606553002/diff/20001/build/toolchain/mac/BUILD.gn#newcode235 build/toolchain/mac/BUILD.gn:235: command = "rm -rf {{output}} && ./gyp-mac-tool copy-bundle-resource {{source}} ...
4 years, 11 months ago (2016-01-25 21:06:09 UTC) #11
sdefresne
Thank you for the review, please take another look. https://codereview.chromium.org/1606553002/diff/20001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1606553002/diff/20001/build/toolchain/mac/BUILD.gn#newcode235 build/toolchain/mac/BUILD.gn:235: ...
4 years, 11 months ago (2016-01-26 12:11:55 UTC) #12
brettw
https://codereview.chromium.org/1606553002/diff/60001/tools/gn/ninja_copy_target_writer_unittest.cc File tools/gn/ninja_copy_target_writer_unittest.cc (right): https://codereview.chromium.org/1606553002/diff/60001/tools/gn/ninja_copy_target_writer_unittest.cc#newcode89 tools/gn/ninja_copy_target_writer_unittest.cc:89: NinjaCopyTargetWriter writer(&target, out, Toolchain::TYPE_COPY); Can you add a case ...
4 years, 11 months ago (2016-01-26 23:51:41 UTC) #13
sdefresne
Added unit tests, please take another look. https://codereview.chromium.org/1606553002/diff/60001/tools/gn/ninja_copy_target_writer_unittest.cc File tools/gn/ninja_copy_target_writer_unittest.cc (right): https://codereview.chromium.org/1606553002/diff/60001/tools/gn/ninja_copy_target_writer_unittest.cc#newcode89 tools/gn/ninja_copy_target_writer_unittest.cc:89: NinjaCopyTargetWriter writer(&target, ...
4 years, 11 months ago (2016-01-27 13:13:45 UTC) #14
brettw
LGTM. I'm hazy: were we going to wait on this until we get some higher-level ...
4 years, 10 months ago (2016-02-02 22:44:35 UTC) #15
brettw
https://codereview.chromium.org/1606553002/diff/80001/tools/gn/function_toolchain.cc File tools/gn/function_toolchain.cc (right): https://codereview.chromium.org/1606553002/diff/80001/tools/gn/function_toolchain.cc#newcode408 tools/gn/function_toolchain.cc:408: " \"copy\": Tool to copy files.\n" Please also add ...
4 years, 10 months ago (2016-02-02 23:28:38 UTC) #16
sdefresne
Sorry, yes, this CL is pending on writing a proper design document to addresses some ...
4 years, 10 months ago (2016-02-03 17:43:14 UTC) #17
sdefresne
4 years, 9 months ago (2016-03-10 18:22:31 UTC) #18
Message was sent while issue was closed.
Obsolete.

Powered by Google App Engine
This is Rietveld 408576698