From e6b680364dd992907a8d2037685a2e500d188dfb Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 13 Oct 2011 16:26:02 -0700 Subject: 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 --- tools/aapt/Images.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/aapt/Images.cpp') diff --git a/tools/aapt/Images.cpp b/tools/aapt/Images.cpp index 311ceea660c5..ffbe875b72f7 100644 --- a/tools/aapt/Images.cpp +++ b/tools/aapt/Images.cpp @@ -980,6 +980,10 @@ status_t preProcessImage(Bundle* bundle, const sp& assets, String8 printableName(file->getPrintableSource()); + if (bundle->getVerbose()) { + printf("Processing image: %s\n", printableName.string()); + } + png_structp read_ptr = NULL; png_infop read_info = NULL; FILE* fp; @@ -1094,6 +1098,10 @@ status_t preProcessImageToCache(Bundle* bundle, String8 source, String8 dest) status_t error = UNKNOWN_ERROR; + if (bundle->getVerbose()) { + printf("Processing image to cache: %s => %s\n", source.string(), dest.string()); + } + // Get a file handler to read from fp = fopen(source.string(),"rb"); if (fp == NULL) { -- cgit v1.2.3-59-g8ed1b