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

Issue 1278573002: [Android] Add gyp support for multidex. (Closed)

Created:
5 years, 4 months ago by jbudorick
Modified:
5 years, 4 months ago
Reviewers:
cjhopman, Yaron, Nico, agrieve, mmenke
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add gyp support for multidex. Note that this does not enable multidex builds yet. BUG=272790 Committed: https://crrev.com/e40294eca50d57360a2bb0718adcd5cde7810fbd Cr-Commit-Position: refs/heads/master@{#345357}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : separate gyp target for main dex list generation #

Patch Set 6 : per-library main dex generation #

Patch Set 7 : minor cleanup #

Total comments: 10

Patch Set 8 : yfriedman comments #

Total comments: 1

Patch Set 9 : main_dex_action.gypi #

Patch Set 10 : Remove changes to --android-sdk-tools & fix GN. #

Patch Set 11 : rebase + robolectric shadow for MultiDex #

Total comments: 4

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -22 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +19 lines, -1 line 0 comments Download
M base/android/java/src/org/chromium/base/BaseChromiumApplication.java View 2 chunks +11 lines, -0 lines 0 comments Download
A + base/android/java/src/org/chromium/base/annotations/MainDex.java View 2 chunks +7 lines, -6 lines 0 comments Download
A base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
M base/android/junit/src/org/chromium/base/BaseChromiumApplicationTest.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -2 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +19 lines, -0 lines 0 comments Download
M base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
A base/test/android/junit/src/org/chromium/base/test/shadows/ShadowMultiDex.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
M build/android/ant/apk-package.xml View 1 2 3 4 5 6 7 3 chunks +31 lines, -2 lines 0 comments Download
M build/android/apkbuilder_action.gypi View 1 chunk +5 lines, -0 lines 0 comments Download
M build/android/gyp/dex.py View 1 2 3 4 5 6 7 8 9 3 chunks +50 lines, -2 lines 0 comments Download
A build/android/gyp/main_dex_list.py View 1 2 3 4 5 6 7 8 9 1 chunk +84 lines, -0 lines 0 comments Download
A build/android/main_dex_action.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
A build/android/main_dex_classes.flags View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M build/android/pylib/constants/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M build/java.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +48 lines, -4 lines 0 comments Download
M build/secondary/third_party/android_tools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteControllerTest.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M net/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M net/android/junit/src/org/chromium/net/HttpNegotiateAuthenticatorTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (12 generated)
jbudorick
Working on the GN side of this. I'll probably wind up doing that as a ...
5 years, 4 months ago (2015-08-05 20:08:48 UTC) #2
Yaron
https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/annotations/MainDex.java File base/android/java/src/org/chromium/base/annotations/MainDex.java (right): https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/annotations/MainDex.java#newcode13 base/android/java/src/org/chromium/base/annotations/MainDex.java:13: * An annotation that signals that a class should ...
5 years, 4 months ago (2015-08-05 21:56:41 UTC) #3
jbudorick
https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/annotations/MainDex.java File base/android/java/src/org/chromium/base/annotations/MainDex.java (right): https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/annotations/MainDex.java#newcode13 base/android/java/src/org/chromium/base/annotations/MainDex.java:13: * An annotation that signals that a class should ...
5 years, 4 months ago (2015-08-05 22:55:23 UTC) #4
jbudorick
ping?
5 years, 4 months ago (2015-08-10 18:40:38 UTC) #5
Yaron
https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java File base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java (right): https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java#newcode42 base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java:42: Log.e(TAG, "Failed multidex installation", e); On 2015/08/05 22:55:22, jbudorick ...
5 years, 4 months ago (2015-08-10 20:15:40 UTC) #6
jbudorick
https://codereview.chromium.org/1278573002/diff/60001/base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java File base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java (right): https://codereview.chromium.org/1278573002/diff/60001/base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java#newcode33 base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java:33: // TODO(jbudorick): Back out this version check once support ...
5 years, 4 months ago (2015-08-10 22:00:49 UTC) #7
jbudorick
https://codereview.chromium.org/1278573002/diff/60001/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/1278573002/diff/60001/build/java_apk.gypi#newcode1045 build/java_apk.gypi:1045: '--excluded-paths', '@FileArg(>(tested_apk_dex_path).inputs)' This doesn't quite work as-is, so hold ...
5 years, 4 months ago (2015-08-11 00:26:58 UTC) #8
Yaron
https://codereview.chromium.org/1278573002/diff/60001/build/android/gyp/dex.py File build/android/gyp/dex.py (right): https://codereview.chromium.org/1278573002/diff/60001/build/android/gyp/dex.py#newcode30 build/android/gyp/dex.py:30: proguard_cmd = [ On 2015/08/10 22:00:49, jbudorick wrote: > ...
5 years, 4 months ago (2015-08-11 13:38:36 UTC) #9
jbudorick
https://codereview.chromium.org/1278573002/diff/60001/build/android/gyp/dex.py File build/android/gyp/dex.py (right): https://codereview.chromium.org/1278573002/diff/60001/build/android/gyp/dex.py#newcode30 build/android/gyp/dex.py:30: proguard_cmd = [ On 2015/08/11 at 13:38:36, Yaron wrote: ...
5 years, 4 months ago (2015-08-11 13:42:22 UTC) #10
Yaron
+agrieve The idea was that if we already have multidex set up, we can make ...
5 years, 4 months ago (2015-08-11 13:49:40 UTC) #12
agrieve
On 2015/08/11 13:49:40, Yaron wrote: > +agrieve > > The idea was that if we ...
5 years, 4 months ago (2015-08-11 14:01:32 UTC) #13
cjhopman
On 2015/08/11 14:01:32, agrieve wrote: > On 2015/08/11 13:49:40, Yaron wrote: > > +agrieve > ...
5 years, 4 months ago (2015-08-11 21:59:34 UTC) #14
jbudorick
On 2015/08/11 at 21:59:34, cjhopman wrote: > On 2015/08/11 14:01:32, agrieve wrote: > > On ...
5 years, 4 months ago (2015-08-11 22:46:06 UTC) #15
Yaron
On 2015/08/11 22:46:06, jbudorick wrote: > On 2015/08/11 at 21:59:34, cjhopman wrote: > > On ...
5 years, 4 months ago (2015-08-12 19:21:45 UTC) #16
agrieve
On 2015/08/12 19:21:45, Yaron wrote: > On 2015/08/11 22:46:06, jbudorick wrote: > > On 2015/08/11 ...
5 years, 4 months ago (2015-08-13 00:28:51 UTC) #17
jbudorick
On 2015/08/13 at 00:28:51, agrieve wrote: > On 2015/08/12 19:21:45, Yaron wrote: > > On ...
5 years, 4 months ago (2015-08-13 00:34:46 UTC) #18
jbudorick
Switched to generating a main dex list per library target, then merging them all at ...
5 years, 4 months ago (2015-08-13 14:26:12 UTC) #19
agrieve
On 2015/08/13 14:26:12, jbudorick wrote: > Switched to generating a main dex list per library ...
5 years, 4 months ago (2015-08-13 15:11:05 UTC) #20
Yaron
just a few minor things but lgtm with those fixed. would be great if Chris ...
5 years, 4 months ago (2015-08-13 20:12:11 UTC) #21
Yaron
https://codereview.chromium.org/1278573002/diff/120001/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/1278573002/diff/120001/build/java_apk.gypi#newcode1048 build/java_apk.gypi:1048: '>@(main_dex_list_paths)', Actually, does this include the file created from ...
5 years, 4 months ago (2015-08-13 20:18:28 UTC) #22
jbudorick
https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java File base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java (right): https://codereview.chromium.org/1278573002/diff/1/base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java#newcode42 base/android/java/src/org/chromium/base/multidex/ChromiumMultiDex.java:42: Log.e(TAG, "Failed multidex installation", e); On 2015/08/13 at 20:12:10, ...
5 years, 4 months ago (2015-08-14 21:01:21 UTC) #23
jbudorick
https://codereview.chromium.org/1278573002/diff/140001/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/1278573002/diff/140001/build/java_apk.gypi#newcode886 build/java_apk.gypi:886: # TODO(jbudorick): main_dex_action.gypi? er... new patchset coming with this ...
5 years, 4 months ago (2015-08-14 21:08:04 UTC) #24
Yaron
lgtm
5 years, 4 months ago (2015-08-15 02:18:31 UTC) #25
jbudorick
+thakis for base/base.gyp OWNERS
5 years, 4 months ago (2015-08-16 14:44:55 UTC) #27
Nico
base.gyp lgtm (feel free to tbr changes like this)
5 years, 4 months ago (2015-08-17 17:02:52 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278573002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278573002/160001
5 years, 4 months ago (2015-08-17 17:05:29 UTC) #31
jbudorick
On 2015/08/17 at 17:02:52, thakis wrote: > base.gyp lgtm (feel free to tbr changes like ...
5 years, 4 months ago (2015-08-17 17:07:33 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/103776)
5 years, 4 months ago (2015-08-17 17:12:36 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278573002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278573002/180001
5 years, 4 months ago (2015-08-17 20:37:19 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/99203)
5 years, 4 months ago (2015-08-17 21:14:11 UTC) #39
jbudorick
+mmenke for net/ OWNERS yfriedman: ptal again at the revised changes to base/test/android. I had ...
5 years, 4 months ago (2015-08-18 21:28:21 UTC) #41
mmenke
On 2015/08/18 21:28:21, jbudorick wrote: > +mmenke for net/ OWNERS > > yfriedman: ptal again ...
5 years, 4 months ago (2015-08-18 21:36:09 UTC) #42
Yaron
https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni#newcode1088 build/config/android/rules.gni:1088: # supports_android: If true, Android targets (android_library, android_apk) Am ...
5 years, 4 months ago (2015-08-24 15:28:44 UTC) #43
jbudorick
https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni File build/config/android/rules.gni (right): https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni#newcode1088 build/config/android/rules.gni:1088: # supports_android: If true, Android targets (android_library, android_apk) On ...
5 years, 4 months ago (2015-08-24 21:13:51 UTC) #44
Yaron
On 2015/08/24 21:13:51, jbudorick wrote: > https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni > File build/config/android/rules.gni (right): > > https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni#newcode1088 > ...
5 years, 4 months ago (2015-08-25 15:49:20 UTC) #45
jbudorick
On 2015/08/25 at 15:49:20, yfriedman wrote: > On 2015/08/24 21:13:51, jbudorick wrote: > > https://codereview.chromium.org/1278573002/diff/200001/build/config/android/rules.gni ...
5 years, 4 months ago (2015-08-25 15:51:53 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1278573002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1278573002/220001
5 years, 4 months ago (2015-08-25 15:52:43 UTC) #49
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 4 months ago (2015-08-25 17:03:58 UTC) #50
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/e40294eca50d57360a2bb0718adcd5cde7810fbd Cr-Commit-Position: refs/heads/master@{#345357}
5 years, 4 months ago (2015-08-25 17:04:31 UTC) #51
jbudorick
5 years, 4 months ago (2015-08-25 17:38:55 UTC) #52
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.chromium.org/1315833007/ by jbudorick@chromium.org.

The reason for reverting is: Somehow broke compilation on the main waterfall:
https://build.chromium.org/p/chromium/builders/Android/builds/45388.

Powered by Google App Engine
This is Rietveld 408576698