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

Issue 1418243003: Add GN template for android_assets(). Use it in content_shell_apk. (Closed)

Created:
5 years, 2 months ago by agrieve
Modified:
5 years, 1 month ago
Reviewers:
pkotwicz, brettw
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vmpstr+watch_chromium.org, jam, jbudorick+watch_chromium.org, darin-cc_chromium.org, yfriedman+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, klundberg+watch_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add GN template for android_assets() The new rule is meant to work the same way as android_resources, and allow easy sharing of assets between targets. Does not remove support for android_apk()'s asset_location parameter, but the intention is to remove it eventually. Note that this does cause assets to appear later in the zip file than they would when added by aapt. ContentShell.apk ran fine though. BUG=547162 Committed: https://crrev.com/6c2686ba7fa6d655306a0dc6e876ceae7dc3664b Cr-Commit-Position: refs/heads/master@{#357266}

Patch Set 1 #

Total comments: 18

Patch Set 2 : review1 #

Total comments: 2

Patch Set 3 : add support for asset merging and renaming. Pass via @FileArg. #

Patch Set 4 : remove usages of android_assets() #

Total comments: 3

Patch Set 5 : outputs -> renaming_destination #

Total comments: 17

Patch Set 6 : review comments & two-pass _AddAssets #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -24 lines) Patch
M build/android/gyp/apkbuilder.py View 1 2 3 4 5 7 chunks +71 lines, -2 lines 0 comments Download
M build/android/gyp/write_build_config.py View 1 2 3 4 5 7 chunks +74 lines, -12 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 8 chunks +51 lines, -8 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 3 chunks +87 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (5 generated)
agrieve
5 years, 2 months ago (2015-10-23 19:52:00 UTC) #2
pkotwicz
It is going to take me a while to review the CL. All of the ...
5 years, 2 months ago (2015-10-23 23:17:22 UTC) #4
pkotwicz
Looks good in general https://codereview.chromium.org/1418243003/diff/1/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1418243003/diff/1/base/BUILD.gn#newcode1025 base/BUILD.gn:1025: if (is_android) { Shouldn't this ...
5 years, 2 months ago (2015-10-24 03:46:03 UTC) #5
agrieve
https://codereview.chromium.org/1418243003/diff/1/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1418243003/diff/1/base/BUILD.gn#newcode1025 base/BUILD.gn:1025: if (is_android) { On 2015/10/24 03:46:03, pkotwicz wrote: > ...
5 years, 1 month ago (2015-10-25 17:32:10 UTC) #6
brettw
https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn#newcode1037 base/BUILD.gn:1037: android_assets("icu_assets") { Can this be in the ICU file ...
5 years, 1 month ago (2015-10-25 23:51:22 UTC) #7
agrieve
https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn#newcode1037 base/BUILD.gn:1037: android_assets("icu_assets") { On 2015/10/25 23:51:22, brettw wrote: > Can ...
5 years, 1 month ago (2015-10-26 15:43:48 UTC) #8
agrieve
On 2015/10/26 15:43:48, agrieve wrote: > https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn > File base/BUILD.gn (right): > > https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn#newcode1037 > ...
5 years, 1 month ago (2015-10-28 13:41:29 UTC) #9
agrieve
On 2015/10/28 13:41:29, agrieve wrote: > On 2015/10/26 15:43:48, agrieve wrote: > > https://codereview.chromium.org/1418243003/diff/20001/base/BUILD.gn > ...
5 years, 1 month ago (2015-10-29 20:01:49 UTC) #10
pkotwicz
https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni#newcode696 build/config/android/rules.gni:696: # values than exist in sources, remaining sources will ...
5 years, 1 month ago (2015-10-29 22:57:47 UTC) #11
pkotwicz
https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni#newcode696 build/config/android/rules.gni:696: # values than exist in sources, remaining sources will ...
5 years, 1 month ago (2015-10-29 23:23:33 UTC) #12
agrieve
https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni#newcode696 build/config/android/rules.gni:696: # values than exist in sources, remaining sources will ...
5 years, 1 month ago (2015-10-30 00:04:45 UTC) #14
agrieve
On 2015/10/30 00:04:45, agrieve wrote: > https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni > File build/config/android/rules.gni (right): > > https://codereview.chromium.org/1418243003/diff/60001/build/config/android/rules.gni#newcode696 > ...
5 years, 1 month ago (2015-10-30 16:10:42 UTC) #15
pkotwicz
LGTM with nits https://codereview.chromium.org/1418243003/diff/80001/build/android/gyp/apkbuilder.py File build/android/gyp/apkbuilder.py (right): https://codereview.chromium.org/1418243003/diff/80001/build/android/gyp/apkbuilder.py#newcode79 build/android/gyp/apkbuilder.py:79: Nit: Extra new line https://codereview.chromium.org/1418243003/diff/80001/build/android/gyp/apkbuilder.py#newcode85 build/android/gyp/apkbuilder.py:85: ...
5 years, 1 month ago (2015-10-30 20:35:54 UTC) #16
pkotwicz
https://codereview.chromium.org/1418243003/diff/80001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1418243003/diff/80001/build/config/android/internal_rules.gni#newcode676 build/config/android/internal_rules.gni:676: # android_asset() everywhere (http://crbug.com/547162). Nit: android_asset() -> android_assets()
5 years, 1 month ago (2015-10-30 20:37:42 UTC) #17
agrieve
https://codereview.chromium.org/1418243003/diff/80001/build/android/gyp/apkbuilder.py File build/android/gyp/apkbuilder.py (right): https://codereview.chromium.org/1418243003/diff/80001/build/android/gyp/apkbuilder.py#newcode79 build/android/gyp/apkbuilder.py:79: On 2015/10/30 20:35:53, pkotwicz wrote: > Nit: Extra new ...
5 years, 1 month ago (2015-10-31 02:40:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418243003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418243003/100001
5 years, 1 month ago (2015-10-31 02:40:31 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-10-31 04:15:56 UTC) #22
commit-bot: I haz the power
5 years, 1 month ago (2015-10-31 04:16:50 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6c2686ba7fa6d655306a0dc6e876ceae7dc3664b
Cr-Commit-Position: refs/heads/master@{#357266}

Powered by Google App Engine
This is Rietveld 408576698