Revert "Soong support for namespaces"

This reverts commit 63a250a336.

Reason for revert: Some failures:
  namespace_test.go:648: dir1/Blueprints:2:4: a namespace must be the first module in the file 
  such as New Build Breakage: aosp-master/build_test @ 4475274

Change-Id: I1b5db8eb934e51ff22241bfca44199d886b1393b
This commit is contained in:
Jeff Gaston
2017-11-29 23:54:03 +00:00
parent 54855ddca4
commit 178d5fefc0
10 changed files with 6 additions and 1102 deletions

View File

@@ -25,22 +25,6 @@ import (
"android/soong/android"
)
func newNameResolver(config android.Config) *android.NameResolver {
namespacePathsToExport := make(map[string]bool)
for _, namespaceName := range config.ProductVariables.NamespacesToExport {
namespacePathsToExport[namespaceName] = true
}
namespacePathsToExport["."] = true // always export the root namespace
exportFilter := func(namespace *android.Namespace) bool {
return namespacePathsToExport[namespace.Path]
}
return android.NewNameResolver(exportFilter)
}
func main() {
flag.Parse()
@@ -56,7 +40,8 @@ func main() {
os.Exit(1)
}
ctx.SetNameInterface(newNameResolver(configuration))
// Temporary hack
//ctx.SetIgnoreUnknownModuleTypes(true)
ctx.SetAllowMissingDependencies(configuration.AllowMissingDependencies())