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

Issue 361633002: [Android][gn] Add android resources templates (Closed)

Created:
6 years, 5 months ago by cjhopman
Modified:
6 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gn-java
Visibility:
Public.

Description

[Android][gn] Add android resources templates This adds support for android resources to gn. Two new templates are introduced: java_string_grd: This is like gyp's build/java_strings_grd.gypi. It runs grit and generates Android strings.xml files and then zips them together. android_resources: This is the target for android resources. It is mostly a wrapper around process_resources.py. This is *not part* of android_library (like it is in gyp). Making these two things separate is more like facebook's BUCK and google's internal build rules (and gyp's java.gypi and java_apk.gypi have gotten way too big and complicated). Changes to the actual build scripts are very minor except for the added support for andoid_resources to write_build_config.py. Building resources requires getting all the transitive resource dependencies, and so this reuses the simple sorted transitive dependency thing from write_ordered_libraries.py. TBR=rch@chromium.org BUG=359249 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283293

Patch Set 1 #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Fix bad rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -113 lines) Patch
M BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M base/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M base/test/BUILD.gn View 1 1 chunk +4 lines, -1 line 0 comments Download
A build/android/gyp/find.py View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M build/android/gyp/javac.py View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download
M build/android/gyp/process_resources.py View 1 2 3 4 5 6 11 chunks +65 lines, -37 lines 0 comments Download
M build/android/gyp/util/build_utils.py View 1 2 3 3 chunks +48 lines, -0 lines 0 comments Download
M build/android/gyp/write_build_config.py View 1 2 3 chunks +73 lines, -19 lines 0 comments Download
M build/android/gyp/write_ordered_libraries.py View 1 2 3 4 5 6 2 chunks +13 lines, -32 lines 0 comments Download
M build/config/android/config.gni View 1 1 chunk +6 lines, -1 line 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 7 chunks +84 lines, -2 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 8 chunks +139 lines, -9 lines 0 comments Download
M build/secondary/tools/grit/grit_rule.gni View 1 2 3 4 5 chunks +28 lines, -7 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
A ui/android/BUILD.gn View 1 2 3 4 5 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
cjhopman
newt: *
6 years, 5 months ago (2014-07-01 22:18:46 UTC) #1
newt (away)
https://codereview.chromium.org/361633002/diff/20001/build/android/gyp/find.py File build/android/gyp/find.py (right): https://codereview.chromium.org/361633002/diff/20001/build/android/gyp/find.py#newcode14 build/android/gyp/find.py:14: two newlines https://codereview.chromium.org/361633002/diff/20001/build/android/gyp/process_resources.py File build/android/gyp/process_resources.py (right): https://codereview.chromium.org/361633002/diff/20001/build/android/gyp/process_resources.py#newcode92 build/android/gyp/process_resources.py:92: raise ...
6 years, 5 months ago (2014-07-07 21:47:12 UTC) #2
cjhopman
https://codereview.chromium.org/361633002/diff/20001/build/android/gyp/find.py File build/android/gyp/find.py (right): https://codereview.chromium.org/361633002/diff/20001/build/android/gyp/find.py#newcode14 build/android/gyp/find.py:14: On 2014/07/07 21:47:11, newt wrote: > two newlines Done. ...
6 years, 5 months ago (2014-07-08 00:16:27 UTC) #3
newt (away)
remember to add back ANDROID_JAVA_TAGGED_ONLY="false" lgtm https://codereview.chromium.org/361633002/diff/60001/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/361633002/diff/60001/build/android/gyp/util/build_utils.py#newcode250 build/android/gyp/util/build_utils.py:250: A list of ...
6 years, 5 months ago (2014-07-09 00:25:50 UTC) #4
cjhopman
brettw: for OWNERS of build/config (and others) https://codereview.chromium.org/361633002/diff/60001/build/android/gyp/util/build_utils.py File build/android/gyp/util/build_utils.py (right): https://codereview.chromium.org/361633002/diff/60001/build/android/gyp/util/build_utils.py#newcode250 build/android/gyp/util/build_utils.py:250: A list ...
6 years, 5 months ago (2014-07-09 23:42:19 UTC) #5
brettw
lgtm https://codereview.chromium.org/361633002/diff/80001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/361633002/diff/80001/build/config/android/rules.gni#newcode278 build/config/android/rules.gni:278: # build/android/gyp/generate_v14_compatible_resources.py). Defaults to false. 80 cols here ...
6 years, 5 months ago (2014-07-11 20:00:44 UTC) #6
cjhopman
The CQ bit was checked by cjhopman@chromium.org
6 years, 5 months ago (2014-07-11 23:24:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/361633002/100001
6 years, 5 months ago (2014-07-11 23:26:29 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-12 00:07:31 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-12 00:11:19 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/92109) android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/160450) android_dbg ...
6 years, 5 months ago (2014-07-12 00:11:20 UTC) #11
cjhopman
rch@: TBR for net/ OWNERS
6 years, 5 months ago (2014-07-14 20:07:55 UTC) #12
cjhopman
The CQ bit was checked by cjhopman@chromium.org
6 years, 5 months ago (2014-07-14 20:08:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/361633002/120001
6 years, 5 months ago (2014-07-14 20:08:58 UTC) #14
cjhopman
The CQ bit was checked by cjhopman@chromium.org
6 years, 5 months ago (2014-07-14 22:19:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/361633002/140001
6 years, 5 months ago (2014-07-14 22:21:32 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-15 10:48:08 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-15 16:50:06 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/170687) mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/41060) mac_chromium_rel ...
6 years, 5 months ago (2014-07-15 16:50:07 UTC) #19
cjhopman
The CQ bit was checked by cjhopman@chromium.org
6 years, 5 months ago (2014-07-15 17:05:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/361633002/140001
6 years, 5 months ago (2014-07-15 17:08:16 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-15 20:01:41 UTC) #22
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 00:11:12 UTC) #23
Message was sent while issue was closed.
Change committed as 283293

Powered by Google App Engine
This is Rietveld 408576698