]> git.saurik.com Git - android/aapt.git/blobdiff - Resource.cpp
Change generated dependency file names
[android/aapt.git] / Resource.cpp
index 5152d3b5ed3fd4879b952f5af0ca34a6b18b45aa..f64728d0a8c571ddbc9685fc3af7dce07af50fe5 100644 (file)
@@ -1890,10 +1890,12 @@ status_t writeResourceSymbols(Bundle* bundle, const sp<AaptAssets>& assets,
         }
         fclose(fp);
 
+        // If we were asked to generate a dependency file, we'll go ahead and add this R.java
+        // as a target in the dependency file right next to it.
         if (bundle->getGenDependencies()) {
             // Add this R.java to the dependency file
             String8 dependencyFile(bundle->getRClassDir());
-            dependencyFile.appendPath("R.d");
+            dependencyFile.appendPath("R.java.d");
 
             fp = fopen(dependencyFile.string(), "a");
             fprintf(fp,"%s \\\n", dest.string());