OSDN Git Service

Introduce --multi-dex option in dx.
authorBenoit Lamarche <benoitlamarche@google.com>
Wed, 31 Jul 2013 10:15:10 +0000 (12:15 +0200)
committerBrian Carlstrom <bdc@google.com>
Wed, 28 Aug 2013 23:36:02 +0000 (16:36 -0700)
commit4c656e4ec2f5c5036dc67fb4034c1e7ff7abf343
tree1762a32acf68739ce95dd868171dd2bc2c95655a
parent95adf1ff81dec324746bef58ba8c45dc1c8f3b50
Introduce --multi-dex option in dx.

Add --multi-dex options to dx command line to allow the generation of
several dex files when method index limit is about to be reached.
Also add
  --main-dex-list allowing to force some classes in the main dex.
  --minimal-main-dex to keep in main edx only classes specified by
      main-dex-list.
  --set-max-idx-number to set an arbitrary idx limit for the
      splitting.

(cherry picked from commit c7daf656da3a4854296b6a8bb702e3ee418450e5)

Change-Id: I2b42272be91484a75783eb94cd30581159948975
dx/src/com/android/dx/cf/direct/ClassPathOpener.java
dx/src/com/android/dx/cf/direct/DirectClassFile.java
dx/src/com/android/dx/command/Main.java
dx/src/com/android/dx/command/dexer/Main.java
dx/src/com/android/dx/dex/cf/CfTranslator.java
dx/src/com/android/dx/dex/file/AnnotationUtils.java
dx/src/com/android/dx/dex/file/DexFile.java
dx/src/com/android/dx/dex/file/MemberIdsSection.java
dx/src/com/android/dx/dex/file/TypeIdsSection.java