Fixed then comments to describe how to use android.ModuleBase object.
Since we have changed the package name from 'common' to 'android'
Test: Manual.
Change-Id: Ic9649f3216609b36fa31db096509de42f83e9ba4
diff --git a/android/module.go b/android/module.go
index 7156e8c..430563d 100644
--- a/android/module.go
+++ b/android/module.go
@@ -218,17 +218,17 @@
return InitArchModule(m, propertyStructs...)
}
-// A AndroidModuleBase object contains the properties that are common to all Android
+// A ModuleBase object contains the properties that are common to all Android
// modules. It should be included as an anonymous field in every module
// struct definition. InitAndroidModule should then be called from the module's
// factory function, and the return values from InitAndroidModule should be
// returned from the factory function.
//
-// The AndroidModuleBase type is responsible for implementing the
-// GenerateBuildActions method to support the blueprint.Module interface. This
-// method will then call the module's GenerateAndroidBuildActions method once
-// for each build variant that is to be built. GenerateAndroidBuildActions is
-// passed a AndroidModuleContext rather than the usual blueprint.ModuleContext.
+// The ModuleBase type is responsible for implementing the GenerateBuildActions
+// method to support the blueprint.Module interface. This method will then call
+// the module's GenerateAndroidBuildActions method once for each build variant
+// that is to be built. GenerateAndroidBuildActions is passed a
+// AndroidModuleContext rather than the usual blueprint.ModuleContext.
// AndroidModuleContext exposes extra functionality specific to the Android build
// system including details about the particular build variant that is to be
// generated.
@@ -236,12 +236,12 @@
// For example:
//
// import (
-// "android/soong/common"
+// "android/soong/android"
// "github.com/google/blueprint"
// )
//
// type myModule struct {
-// common.AndroidModuleBase
+// android.ModuleBase
// properties struct {
// MyProperty string
// }
@@ -249,10 +249,10 @@
//
// func NewMyModule() (blueprint.Module, []interface{}) {
// m := &myModule{}
-// return common.InitAndroidModule(m, &m.properties)
+// return android.InitAndroidModule(m, &m.properties)
// }
//
-// func (m *myModule) GenerateAndroidBuildActions(ctx common.AndroidModuleContext) {
+// func (m *myModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
// // Get the CPU architecture for the current build variant.
// variantArch := ctx.Arch()
//