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

Issue 15715006: Android: allow JNI generator to be used with jarjar. (Closed)

Created:
7 years, 7 months ago by Torne
Modified:
7 years, 6 months ago
Reviewers:
bulach
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Android: allow JNI generator to be used with jarjar. When using jarjar to rename Java packages to avoid name conflicts, the generated JNI code no longer works as it refers to the old name. Support using the jarjar remapping list during JNI generation to generate code that refers to the post-remapping names, since the JNI headers are not intended to be read by humans anyway. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202856

Patch Set 1 #

Patch Set 2 : Finished implementation, added tests. #

Total comments: 2

Patch Set 3 : Change gyp variable to a pathname. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -6 lines) Patch
M base/android/jni_generator/jni_generator.py View 1 8 chunks +39 lines, -6 lines 0 comments Download
M base/android/jni_generator/jni_generator_tests.py View 1 1 chunk +79 lines, -0 lines 0 comments Download
M build/jni_generator.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Torne
not LGTM. This is not ready for commit yet as it just hardcodes one test ...
7 years, 7 months ago (2013-05-24 14:38:32 UTC) #1
Torne
Hi Marcus, This now looks ready to submit. It's controlled by a command line argument ...
7 years, 6 months ago (2013-05-28 13:02:26 UTC) #2
bulach
lgtm, thanks! just one suggestion below, if not feasible feel free to go ahead as ...
7 years, 6 months ago (2013-05-28 13:10:21 UTC) #3
Torne
https://codereview.chromium.org/15715006/diff/3001/build/jni_generator.gypi File build/jni_generator.gypi (right): https://codereview.chromium.org/15715006/diff/3001/build/jni_generator.gypi#newcode33 build/jni_generator.gypi:33: 'jni_generator_extra_args%': [], On 2013/05/28 13:10:21, bulach wrote: > I've ...
7 years, 6 months ago (2013-05-28 13:12:04 UTC) #4
Torne
Anyway, I'm not in a rush to submit this (I'm going to test it in ...
7 years, 6 months ago (2013-05-28 13:43:00 UTC) #5
bulach
lgtm, go for it.. the python file knows to ignore a --jarjar '' so the ...
7 years, 6 months ago (2013-05-28 14:18:10 UTC) #6
Torne
OK, I went with having a variable for the jarjar rules file that defaults to ...
7 years, 6 months ago (2013-05-29 10:17:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/torne@chromium.org/15715006/13001
7 years, 6 months ago (2013-05-29 10:18:05 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 13:51:25 UTC) #9
Message was sent while issue was closed.
Change committed as 202856

Powered by Google App Engine
This is Rietveld 408576698