diff options
| author | 2011-07-20 16:02:33 -0700 | |
|---|---|---|
| committer | 2011-07-20 16:02:33 -0700 | |
| commit | ea9e6d24a458c06df6237fddd22b6165b2f92cb5 (patch) | |
| tree | 25d5a8f238f4d21b5e219e8c228c18328c9e28c3 /tools/aapt/Command.cpp | |
| parent | 2c311be720341e3249887e592bbc1881008b02bd (diff) | |
| parent | b582af31c74a58922120fdb747c1a3b867d95e90 (diff) | |
am b582af31: am 0bc12a0b: Merge "Added Caching for PreProcessed PNGs"
* commit 'b582af31c74a58922120fdb747c1a3b867d95e90':
Added Caching for PreProcessed PNGs
Diffstat (limited to 'tools/aapt/Command.cpp')
| -rw-r--r-- | tools/aapt/Command.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp index 8447d7436d5b..3bc5fa1c34c3 100644 --- a/tools/aapt/Command.cpp +++ b/tools/aapt/Command.cpp @@ -1504,3 +1504,25 @@ bail: } return retVal; } + +/* + * Do PNG Crunching + * PRECONDITIONS + * -S flag points to a source directory containing drawable* folders + * -C flag points to destination directory. The folder structure in the + * source directory will be mirrored to the destination (cache) directory + * + * POSTCONDITIONS + * Destination directory will be updated to match the PNG files in + * the source directory. + */ +int doCrunch(Bundle* bundle) +{ + fprintf(stdout, "Crunching PNG Files in "); + fprintf(stdout, "source dir: %s\n", bundle->getResourceSourceDirs()[0]); + fprintf(stdout, "To destination dir: %s\n", bundle->getCrunchedOutputDir()); + + updatePreProcessedCache(bundle); + + return NO_ERROR; +} |