Support for generating .java dependencies for RS.
This updates the -MD option to also emit .java targets to the dependency
information placed in our foo.d file.
Change-Id: I189cf6302bc1cbd6201487743a37dced87b5c5eb
diff --git a/slang.cpp b/slang.cpp
index c72c1f3..6b788cb 100644
--- a/slang.cpp
+++ b/slang.cpp
@@ -382,6 +382,13 @@
DepOpts.OutputFile = mDepOutputFileName;
DepOpts.Targets = mAdditionalDepTargets;
DepOpts.Targets.push_back(mDepTargetBCFileName);
+ for (std::vector<std::string>::const_iterator
+ I = mGeneratedFileNames.begin(), E = mGeneratedFileNames.end();
+ I != E;
+ I++) {
+ DepOpts.Targets.push_back(*I);
+ }
+ mGeneratedFileNames.clear();
// Per-compilation needed initialization
createPreprocessor();