Add bundle_contents_dir property to create_bundle.

Chrome on iOS needs to generate bundle with the same name (variants
of the same application bundle with different resources). They need
to be generated in a sub-directory of $root_out_dir breaking the
assumption that the name of the bundle is the first component of
$bundle_root_dir relative to $root_out_dir.

Introduce a separate property $bundle_contents_dir to create_bundle
target that will correspond to the directory containing the bundle
content ($bundle_root_dir on iOS, $bundle_root_dir/Content on macOS).

Leave the old heuristic if $bundle_contents_dir is undefined to
be able to roll this change without breaking Chrome compilation for
macOS. It will be removed in a followup CL once the templates used
by Chrome have been fixed.

Bug: 764286
Change-Id: I2a6047bb18ee77e6f51ee7a40acf2ed7f0ee016e
Reviewed-on: https://chromium-review.googlesource.com/675369
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#503391}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 338348fc127f437bdd1089dbc6641f6cff66df09
12 files changed
tree: 33bc02a508d2120cfb9d2b1b26b5afa0089f65d8
  1. tools/