commit | bf70f019527235f32c2757e880210c680b78e644 | [log] [tgz] |
---|---|---|
author | Michael Bolin <mbolin@fb.com> | Mon Sep 09 21:59:07 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Thu Sep 19 15:08:18 2013 -0700 |
tree | 88f1ba8c9d1aa2213669ed4306fee3694834b358 | |
parent | b466d8f56daa39488463b4f8dd075916ae556e8e [diff] |
Add use_linear_alloc_split_dex option to android_binary(). Summary: If `use_linear_alloc_split_dex` is passed to `android_binary()` and `use_split_dex` is `True`, then use `LinearAllocEstimator` to determine how secondary dexes should be spilt. This diff changes `ZipSplitter` into an interface, so the old `ZipSplitter` code is divided between `DefaultZipSplitter` and `AbstractZipSplitter`. As the point of this diff is to introduce new zip-splitting logic, it introduces a new implementation of `ZipSplitter` named `LinearAllocAwareZipSplitter` that uses `LinearAllocEstimator` to determine how to divide class files into groups that can be zipped. This also updates a `ZipSplitter` so that it generates a report of which files were written to which zips and what their size estimates were.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0