Commit Graph

14 Commits

Author SHA1 Message Date
Chirayu Desai
39cb878292 otatools: build-with-colors
- add new file for common functions and stuff
 - though it doesn't contain any function now ;)
- red color for errors
- yellow color for "Optimizing: *"
- cyan color for modversion :)
- green color for "package complete"
- and some general cleanup

Change-Id: I83b2e352580e99b1766c5e63821281224cde5c49
2012-10-14 14:25:53 +05:30
Reinhard Lenninger
4576c753b5 pngcrush: don't print out an error on mv if optimizing fails
pngcrush is currently storing the optimized png in <pngname>.out.
If optimizing the png fails, e.g. on palette errors, mv can't
overwrite the original file with the nonexisting .out file and prints
out an error like this:

mv: cannot stat `./foo/bar/baz.png.out': No such file or directory

Writing stderr to /dev/null will suppress that message.

Change-Id: I0b7339392545e98586d66cc8ff8abf52c443f66f
2012-08-26 22:47:49 +02:00
Pawit Pornkitprasan
bb56531b18 opticharger: do not compress resources.arsc
Android does not compress resources.arsc allowing it to be
read directly without uncompressing. When opticharger runs,
it compresses it breaking the optimization.

Change-Id: I9c9b9971a3fe4a21be5a633274832041ca9a33c1
2012-08-19 15:33:09 +04:00
KhasMek
a82b7b3fff opticharger: skip packages labled as PRESIGNED
This fixes market updates and redundant
*.old files from being packaged- looks to
save about 10MB on the zip.

Change-Id: I82266204de3a04f71b24e4183672185d6b2da8d9
2012-08-19 15:32:56 +04:00
Chirayu Desai
d1dbaf3ef0 opticharger: use $ANDROID_HOST_OUT
Change-Id: I1b6988051ba7a83aa7149862ae8d96050bf59e23
2012-08-19 14:08:37 +04:00
Erez A. Korn
8e8a67896d Allow buildtype user
The tools scripts did not handle buildtype user correctly.

Change-Id: Ie4f98dbab7e97a8244ee1d9b4d995673e0aac930
2012-08-19 14:07:44 +04:00
Chirayu Desai
c10f6d5638 squisher: replace $ANDROID_BUILD_TOP
Now uses $OUT/../../../host instead of $ANDROID_BUILD_TOP/out/host
fixes build when used with OUT_DIR_COMMON_BASE

Change-Id: Ib1934b57f3e94a3c3af10189c803fc494438a4a4
2012-08-12 09:10:36 +04:00
Ricardo Cerqueira
e1f3738e7c CM9: initial CM vendor setup for Android 4 2011-11-27 20:15:37 +00:00
Evan McClain
f199486460 Use pngcrush -brute by default.
But fallback to optipng -o7 and then pngout.

This saves ~2M in final .zip size at a cost of ~5 min of build time on
my laptop.

Change-Id: Ic56f677bdc8250f4088f4dbfbfd555ceed5616c2
Signed-off-by: Evan McClain <aeroevan@gmail.com>
2011-10-29 15:17:52 -04:00
Ladios Jonquil
1f76513897 tools: Fix for $LOGNAME missing in Ubuntu 11.10, using $USER instead
Change-Id: I824fc6ca27c2a2308e977a14585afc6dd4996f56
2011-09-25 02:16:41 +08:00
Christopher Lais
c557d07d8d opticharger: fix PinyinIME
aapt's -0 option is for extensions only, not directories, and PinyinIME
needs .dat to be excluded.  Nothing else in CM7 uses a .dat file, so
this shouldn't increase the .apk size more than is needed.

Also adding .dict, which isn't strictly required, but LatinIME wants it.
Nothing in CM7 but LatinIME uses .dict.

Change-Id: I7ce1b2cbc2b32c734978488aac2f4f6c43562cc1
2011-01-05 15:14:21 -06:00
Steve Kondik
47ce7ecc75 Use unique temporary directories in opticharger 2010-08-22 00:08:06 -04:00
Pat Thoyts
0e7f64ef60 Make opticharger less verbose and clean up after itself.
The verbose output of opticharger can obscure warning messages about missing
tools so this patch reduces the noise.
The script leaves droppings in /tmp so clean this up on exit using a trap.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
2010-07-11 02:37:52 -04:00
Steve Kondik
ae76c84593 Add CM tools. 2010-06-28 11:47:56 -04:00