From: Xavier Ducrohet Date: Tue, 19 Jul 2011 17:18:28 +0000 (-0700) Subject: am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency generation to Aapt for... X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/4bb85b9ff958cc4bcd44f1a0c15cfda652109b80 am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency generation to Aapt for R.java" * commit 'ba6c98db8f21016f81ecac35bb0ea3c433044bb7': Add dependency generation to Aapt for R.java --- 4bb85b9ff958cc4bcd44f1a0c15cfda652109b80 diff --cc Resource.cpp index 730bd71,a603314..ae4bdc8 --- a/Resource.cpp +++ b/Resource.cpp @@@ -2239,3 -2186,16 +2255,16 @@@ writeProguardFile(Bundle* bundle, cons return err; } + + status_t + writeDependencyPreReqs(Bundle* bundle, const sp& assets, FILE* fp) + { + status_t deps = -1; + sp files = assets->getFullResPaths(); + for (size_t file_i = 0; file_i < files->size(); ++file_i) { + // Add the full file path to the dependency file + fprintf(fp, "%s \\\n", files->itemAt(file_i).string()); + deps++; + } + return deps; -} ++}