Rename common to android
Rename the "common" package to "android", because common is too generic. Also removes all android.Android naming stutter. Ran: gomvpkg -from 'android/soong/common' -to 'android/soong/android' gorename -from '"android/soong/android".AndroidModuleContext' -to 'ModuleContext' gorename -from '"android/soong/android".AndroidBaseContext' -to 'BaseContext' gorename -from '"android/soong/android".AndroidModuleBase' -to 'ModuleBase' gorename -from '"android/soong/android".AndroidBottomUpMutatorContext' -to 'BottomUpMutatorContext' gorename -from '"android/soong/android".AndroidTopDownMutatorContext' -to 'TopDownMutatorContext' gorename -from '"android/soong/android".AndroidModule' -to 'Module' Change-Id: I3b23590b8ce7c8a1ea1139411d84a53163288da7
This commit is contained in:
14
cc/util.go
14
cc/util.go
@@ -19,25 +19,25 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"android/soong/common"
|
||||
"android/soong/android"
|
||||
)
|
||||
|
||||
// Efficiently converts a list of include directories to a single string
|
||||
// of cflags with -I prepended to each directory.
|
||||
func includeDirsToFlags(dirs common.Paths) string {
|
||||
return common.JoinWithPrefix(dirs.Strings(), "-I")
|
||||
func includeDirsToFlags(dirs android.Paths) string {
|
||||
return android.JoinWithPrefix(dirs.Strings(), "-I")
|
||||
}
|
||||
|
||||
func includeFilesToFlags(files common.Paths) string {
|
||||
return common.JoinWithPrefix(files.Strings(), "-include ")
|
||||
func includeFilesToFlags(files android.Paths) string {
|
||||
return android.JoinWithPrefix(files.Strings(), "-include ")
|
||||
}
|
||||
|
||||
func ldDirsToFlags(dirs []string) string {
|
||||
return common.JoinWithPrefix(dirs, "-L")
|
||||
return android.JoinWithPrefix(dirs, "-L")
|
||||
}
|
||||
|
||||
func libNamesToFlags(names []string) string {
|
||||
return common.JoinWithPrefix(names, "-l")
|
||||
return android.JoinWithPrefix(names, "-l")
|
||||
}
|
||||
|
||||
func indexList(s string, list []string) int {
|
||||
|
Reference in New Issue
Block a user