* 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. */
| 2121 | * the source directory. |
| 2122 | */ |
| 2123 | int doCrunch(Bundle* bundle) |
| 2124 | { |
| 2125 | fprintf(stdout, "Crunching PNG Files in "); |
| 2126 | fprintf(stdout, "source dir: %s\n", bundle->getResourceSourceDirs()[0]); |
| 2127 | fprintf(stdout, "To destination dir: %s\n", bundle->getCrunchedOutputDir()); |
| 2128 | |
| 2129 | updatePreProcessedCache(bundle); |
| 2130 | |
| 2131 | return NO_ERROR; |
| 2132 | } |
| 2133 | |
| 2134 | /* |
| 2135 | * Do PNG Crunching on a single flag |
no test coverage detected