]> git.saurik.com Git - android/aapt.git/blobdiff - Package.cpp
resolved conflicts for merge of 2c311be7 to honeycomb-plus-aosp
[android/aapt.git] / Package.cpp
index ab71f34b3c8fe5122d95484439d0bcea1abc9581..57e20b38a66411b1121239c74d63e33dff57e7f2 100644 (file)
@@ -172,6 +172,16 @@ status_t writeAPK(Bundle* bundle, const sp<AaptAssets>& assets,
         }
     }
 
+    if (bundle->getGenDependencies()) {
+        // Add this file to the dependency file
+        String8 dependencyFile = outputFile.getBasePath();
+        dependencyFile.append(".d");
+
+        FILE* fp = fopen(dependencyFile.string(), "a");
+        fprintf(fp, "%s \\\n", outputFile.string());
+        fclose(fp);
+    }
+
     assert(result == NO_ERROR);
 
 bail: