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_rs_reflection.h b/slang_rs_reflection.h
index 77f01d1..f820e59 100644
--- a/slang_rs_reflection.h
+++ b/slang_rs_reflection.h
@@ -39,6 +39,8 @@
   const RSContext *mRSContext;
 
   std::string mLastError;
+  std::vector<std::string> *mGeneratedFileNames;
+
   inline void setError(const std::string &Error) { mLastError = Error; }
 
   class Context {
@@ -275,9 +277,12 @@
   void genNewItemBufferPackerIfNull(Context &C);
 
  public:
-  explicit RSReflection(const RSContext *Context)
+  explicit RSReflection(const RSContext *Context,
+      std::vector<std::string> *GeneratedFileNames)
       : mRSContext(Context),
-        mLastError("") {
+        mLastError(""),
+        mGeneratedFileNames(GeneratedFileNames) {
+    assert(mGeneratedFileNames && "Must supply GeneratedFileNames");
     return;
   }