Update documentation generator to work with the Documentation system.
Also added this flag to the generator:
-H Now that we generate by default .jd files rather than .html files,
you can use this flag to revert to generating .html files. This is
useful when verifying doc changes locally.
And modified the -v flag to specify the API level for all file generation
rather than just the testing files.
Change-Id: Ic9e35ad6779b9fbc6b23228dded2e2be864393ff
diff --git a/api/Generator.h b/api/Generator.h
index 090a69f..8198882 100644
--- a/api/Generator.h
+++ b/api/Generator.h
@@ -23,7 +23,10 @@
// Generates the Java and RenderScript test files. The implementation is in GenerateTestFiles.cpp.
bool generateTestFiles(const std::string& directory, int versionOfTestFiles);
-// Generates all HTML documentation files. The implementation is in GenerateHtmlDocumentation.cpp.
-bool generateHtmlDocumentation(const std::string& director);
+/* Generates the documentation files. The implementation is in GenerateDocumentation.cpp.
+ * If forVerification is false (the default), we generate the .jd files needed by the
+ * documentation system. If it's true, we generate complete .html files for local debugging.
+ */
+bool generateDocumentation(const std::string& director, bool forVerification);
#endif // ANDROID_RS_API_GENERATOR_GENERATOR_H