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

Issue 14203002: [Android] Create and use .TOC files for jars (Closed)

Created:
7 years, 8 months ago by cjhopman
Modified:
7 years, 8 months ago
Reviewers:
nilesh
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Create and use .TOC files for jars The native component build creates .TOC files for each of the native libraries. These files contain the compile-time visible API of the corresponding library. That is, if something changes in the native library that could have an effect on linking of dependent libraries, then that change will be reflected in the .TOC file. Then, these .TOC files can be used to determine if linking of dependents is required. This change brings that same magic to Java. When building a .jar, we also create a .jar.TOC that includes the signatures for public/protected classes/functions/variables (including the values for constants since they can be inlined dependents). When compiling a Java library, use an Md5Checker over the .java files and the classpaths .jar.TOC (using the .jar if the .TOC isn't available as is currently the case for prebuilt jars). BUG=158821 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194080

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -12 lines) Patch
A build/android/gyp/jar_toc.py View 1 1 chunk +112 lines, -0 lines 0 comments Download
M build/android/gyp/javac.py View 1 3 chunks +25 lines, -12 lines 0 comments Download
M build/java.gypi View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
cjhopman
7 years, 8 months ago (2013-04-11 23:37:16 UTC) #1
nilesh
https://codereview.chromium.org/14203002/diff/1/build/android/gyp/jar_toc.py File build/android/gyp/jar_toc.py (right): https://codereview.chromium.org/14203002/diff/1/build/android/gyp/jar_toc.py#newcode6 build/android/gyp/jar_toc.py:6: """ Creates a TOC file from a Java jar. ...
7 years, 8 months ago (2013-04-12 01:09:52 UTC) #2
cjhopman
https://codereview.chromium.org/14203002/diff/1/build/android/gyp/jar_toc.py File build/android/gyp/jar_toc.py (right): https://codereview.chromium.org/14203002/diff/1/build/android/gyp/jar_toc.py#newcode6 build/android/gyp/jar_toc.py:6: """ Creates a TOC file from a Java jar. ...
7 years, 8 months ago (2013-04-12 23:09:47 UTC) #3
nilesh
LGTM
7 years, 8 months ago (2013-04-12 23:50:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/14203002/8001
7 years, 8 months ago (2013-04-13 00:00:24 UTC) #5
commit-bot: I haz the power
7 years, 8 months ago (2013-04-13 02:49:38 UTC) #6
Message was sent while issue was closed.
Change committed as 194080

Powered by Google App Engine
This is Rietveld 408576698