]> git.saurik.com Git - android/aapt.git/blobdiff - Resource.cpp
am 89fef418: Merge "Avoid pre-processing images when they won\'t be used"
[android/aapt.git] / Resource.cpp
index 9c5fcda2bcf0dd5aa3484bcfd4cffc66addad881..c8ba9048f8670a0dcd723c14e7567d0341939883 100644 (file)
@@ -835,7 +835,9 @@ status_t buildResources(Bundle* bundle, const sp<AaptAssets>& assets)
     bool hasErrors = false;
 
     if (drawables != NULL) {
     bool hasErrors = false;
 
     if (drawables != NULL) {
-        err = preProcessImages(bundle, assets, drawables);
+        if (bundle->getOutputAPKFile() != NULL) {
+            err = preProcessImages(bundle, assets, drawables);
+        }
         if (err == NO_ERROR) {
             err = makeFileResources(bundle, assets, &table, drawables, "drawable");
             if (err != NO_ERROR) {
         if (err == NO_ERROR) {
             err = makeFileResources(bundle, assets, &table, drawables, "drawable");
             if (err != NO_ERROR) {