X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/17f4897dc07044aa0046ca4539c026deea382b2d..82cf0eaeddd1f87bf54db24d3f84856a679e53a4:/Package.cpp diff --git a/Package.cpp b/Package.cpp index ab71f34..57e20b3 100644 --- a/Package.cpp +++ b/Package.cpp @@ -172,6 +172,16 @@ status_t writeAPK(Bundle* bundle, const sp& 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: