]> git.saurik.com Git - android/aapt.git/commit - Images.cpp
New aapt feature to do smarter filtering of configurations.
authorDianne Hackborn <hackbod@google.com>
Thu, 13 Oct 2011 23:26:02 +0000 (16:26 -0700)
committerDianne Hackborn <hackbod@google.com>
Sun, 16 Oct 2011 18:52:17 +0000 (11:52 -0700)
commite29f4ada32b58d0644b02d271f158115960501dd
treeb3816d6d9255e72fa0ffc0f12078c52a15d1c332
parent37087afd7e8a19989a7dd36c401cf5b9b9d1a3e4
New aapt feature to do smarter filtering of configurations.

This adds a --preferred-configurations flag that specifies the
specific configurations you would like to have.

It is smarter than "-c" because it will avoid stripping a
configuration if that would result in there being no value
for the resource.

It is dumber than "-c" because it can't process as many kinds
of resources.  It is really only intended for bitmaps and use
with density configs.

This required re-arranging AaptAssets to group files together
by config again, like they used to be.  I think this hasn't
broken anything.  Hopefully.

Change-Id: I4e9d12ff6e6dbd1abb8fd4cb1814c6674b19d0e5
13 files changed:
AaptAssets.cpp
AaptAssets.h
Android.mk
Bundle.h
Command.cpp
Images.cpp
Main.cpp
Package.cpp
Resource.cpp
ResourceFilter.cpp [new file with mode: 0644]
ResourceFilter.h [new file with mode: 0644]
ResourceTable.cpp
ResourceTable.h