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

Issue 10690092: Fix Java file generation rule in java_aidl.gypi (Closed)

Created:
8 years, 5 months ago by Steve Block
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Fix Java file generation rule in java_aidl.gypi The Java file generation rule in java_aidl.gypi assumes the wrong output path for the generated file. This leads to spurious rebuilds. The problem is that by default, the aidl tool outputs the Java file to <output-path>/<package-path>/<input-file-root>.java, not to <output-path>/<input-file-root>.java as assumed by the rule. This change fixes the problem by explicitly specifying the output path to aidl. Also remove superfluous path components on input files. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=145982

Patch Set 1 #

Total comments: 5

Patch Set 2 : Explicitly set output path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -10 lines) Patch
M build/java_aidl.gypi View 1 2 chunks +9 lines, -7 lines 0 comments Download
M content/content.gyp View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Steve Block
8 years, 5 months ago (2012-07-05 18:25:31 UTC) #1
michaelbai
http://codereview.chromium.org/10690092/diff/1/content/content.gyp File content/content.gyp (right): http://codereview.chromium.org/10690092/diff/1/content/content.gyp#newcode234 content/content.gyp:234: 'input_package_path': 'org/chromium/content/common', It is a little weird to have ...
8 years, 5 months ago (2012-07-09 18:28:11 UTC) #2
Steve Block
http://codereview.chromium.org/10690092/diff/1/content/content.gyp File content/content.gyp (right): http://codereview.chromium.org/10690092/diff/1/content/content.gyp#newcode234 content/content.gyp:234: 'input_package_path': 'org/chromium/content/common', Yes, we can get the package name ...
8 years, 5 months ago (2012-07-09 19:52:07 UTC) #3
michaelbai
LGTM, providing add 'TODO', also add john for content.gyp
8 years, 5 months ago (2012-07-09 20:54:57 UTC) #4
michaelbai
8 years, 5 months ago (2012-07-09 20:55:39 UTC) #5
jam
+mark for gyp wisdom http://codereview.chromium.org/10690092/diff/1/content/content.gyp File content/content.gyp (right): http://codereview.chromium.org/10690092/diff/1/content/content.gyp#newcode234 content/content.gyp:234: 'input_package_path': 'org/chromium/content/common', On 2012/07/09 19:52:07, ...
8 years, 5 months ago (2012-07-10 00:53:59 UTC) #6
Steve Block
I looked into this and it seems that gyp executes command expansions very early on ...
8 years, 5 months ago (2012-07-10 11:24:55 UTC) #7
Mark Mentovai
http://codereview.chromium.org/10690092/diff/1/content/content.gyp File content/content.gyp (right): http://codereview.chromium.org/10690092/diff/1/content/content.gyp#newcode234 content/content.gyp:234: 'input_package_path': 'org/chromium/content/common', You can’t make this work automatically without ...
8 years, 5 months ago (2012-07-10 12:30:04 UTC) #8
Steve Block
Thanks for the confirmation Mark. It turns out that in this particular case, no other ...
8 years, 5 months ago (2012-07-10 12:38:13 UTC) #9
michaelbai
LGTM, thanks for handling this.
8 years, 5 months ago (2012-07-10 18:16:33 UTC) #10
Steve Block
Thanks! Need OWNERS approval
8 years, 5 months ago (2012-07-10 18:25:26 UTC) #11
navabi
lgtm
8 years, 5 months ago (2012-07-10 20:14:57 UTC) #12
jam
8 years, 5 months ago (2012-07-10 22:26:49 UTC) #13
lgtm

Powered by Google App Engine
This is Rietveld 408576698