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

Issue 183883024: android: Make dex_action.gypi not call md5sum. (Closed)

Created:
6 years, 9 months ago by Nico
Modified:
6 years, 9 months ago
Reviewers:
cjhopman
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

android: Make dex_action.gypi not call md5sum. No intended behavior change. dex_action.gypi didn't pass its input_paths variable to dex.py, but that was only set in a single place, and only to a single file there. It was only used in java_apk.gypi which does manual threading of stamp files to order actions (since it's a gypi, it can't easily use type none targets with dependencies). Since dex.py doesn't look at this stamp file at all, it doesn't need to rerun when the stamp file disappears. To make this a bit more obvious, remove dex_action.gypi's input_paths variable and set 'inputs' directly in the one place with the stamp file. (dex.py will still rerun if the name of the stamp file changes, due to regular timestamp handling.) java_apk.gypi used to set input_paths to two files in proguard-enabled files – change it to depend only on obfuscate_stamp in proguard builds, as the step that writes that already depends on instr_stamp. (This isn't necessary as the proguard state is part of the dex.py commandline, so toggling between proguard and no proguard would rebuild correctly anyways, but it's conceptually a bit nicer.) Also set proguard_enabled_input_path unconditionally. Again, no behavior change, but keeps the gyp a bit shorter. BUG=177552 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255325 R=cjhopman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255403

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix clobber #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -15 lines) Patch
M build/android/dex_action.gypi View 4 chunks +0 lines, -7 lines 0 comments Download
M build/android/gyp/dex.py View 1 chunk +0 lines, -3 lines 0 comments Download
M build/java_apk.gypi View 1 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nico
6 years, 9 months ago (2014-03-05 23:38:14 UTC) #1
cjhopman
lgtm https://codereview.chromium.org/183883024/diff/1/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/183883024/diff/1/build/java_apk.gypi#newcode679 build/java_apk.gypi:679: 'inputs': [ '<(instr_stamp)', ], I think I like ...
6 years, 9 months ago (2014-03-06 02:16:32 UTC) #2
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 9 months ago (2014-03-06 03:52:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/183883024/1
6 years, 9 months ago (2014-03-06 03:54:13 UTC) #4
commit-bot: I haz the power
Change committed as 255325
6 years, 9 months ago (2014-03-06 13:11:14 UTC) #5
pkotwicz
A revert of this CL has been created in https://codereview.chromium.org/185563012/ by pkotwicz@chromium.org. The reason for ...
6 years, 9 months ago (2014-03-06 15:52:39 UTC) #6
Nico
https://codereview.chromium.org/183883024/diff/1/build/java_apk.gypi File build/java_apk.gypi (right): https://codereview.chromium.org/183883024/diff/1/build/java_apk.gypi#newcode665 build/java_apk.gypi:665: 'input_paths': [ '<(obfuscate_stamp)' ], Aha, I missed this reference ...
6 years, 9 months ago (2014-03-06 16:51:38 UTC) #7
Nico
Ok, patch set 2 should fix clobber builds, with minor tweaks. I sent a clobber ...
6 years, 9 months ago (2014-03-06 17:10:18 UTC) #8
Nico
I guess I'd need a proguard tryjob though. I'll try doing one at my desktop ...
6 years, 9 months ago (2014-03-06 17:15:42 UTC) #9
Nico
I checked that gypping with GYP_DEFINES='OS=android proguard_enabled=1' and building multiple_proguards_test_apk reproduces the builder error with ...
6 years, 9 months ago (2014-03-06 18:35:32 UTC) #10
Nico
6 years, 9 months ago (2014-03-06 18:47:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 manually as r255403 (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698