aboutsummaryrefslogtreecommitdiffstats
path: root/cc/library.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-08-01 13:20:05 -0700
committerColin Cross <ccross@android.com>2016-08-01 13:47:15 -0700
commit42742b8bb043abd3b330defd1bfac4ed756e63ff (patch)
tree438b1b4102b92b99b63a0a6b516f14b247f20f59 /cc/library.go
parentb98c8b05954dd78d3c4bb87b0bceeb03ef4b362c (diff)
downloadbuild_soong-42742b8bb043abd3b330defd1bfac4ed756e63ff.tar.gz
build_soong-42742b8bb043abd3b330defd1bfac4ed756e63ff.tar.bz2
build_soong-42742b8bb043abd3b330defd1bfac4ed756e63ff.zip
Rename compiler, linker and installer methods to be unique
compiler, linker, and installer interfaces may be implemented by a single decorator object, rename their methods to be unique to avoid the same method being called multiple times. Test: out/soong/build.ninja unchanged Change-Id: I1608c41cd68f614ba99c11bb9fcc7936f618d9aa
Diffstat (limited to 'cc/library.go')
-rw-r--r--cc/library.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cc/library.go b/cc/library.go
index d92a2679..2ae18e99 100644
--- a/cc/library.go
+++ b/cc/library.go
@@ -149,13 +149,13 @@ type libraryCompiler struct {
var _ compiler = (*libraryCompiler)(nil)
-func (library *libraryCompiler) props() []interface{} {
- props := library.baseCompiler.props()
+func (library *libraryCompiler) compilerProps() []interface{} {
+ props := library.baseCompiler.compilerProps()
return append(props, &library.Properties)
}
-func (library *libraryCompiler) flags(ctx ModuleContext, flags Flags) Flags {
- flags = library.baseCompiler.flags(ctx, flags)
+func (library *libraryCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flags {
+ flags = library.baseCompiler.compilerFlags(ctx, flags)
// MinGW spits out warnings about -fPIC even for -fpie?!) being ignored because
// all code is position independent, and then those warnings get promoted to
@@ -227,8 +227,8 @@ type libraryInterface interface {
objs() android.Paths
}
-func (library *libraryLinker) props() []interface{} {
- props := library.baseLinker.props()
+func (library *libraryLinker) linkerProps() []interface{} {
+ props := library.baseLinker.linkerProps()
return append(props,
&library.Properties,
&library.dynamicProperties,
@@ -251,8 +251,8 @@ func (library *libraryLinker) getLibName(ctx ModuleContext) string {
return name + library.Properties.VariantName
}
-func (library *libraryLinker) flags(ctx ModuleContext, flags Flags) Flags {
- flags = library.baseLinker.flags(ctx, flags)
+func (library *libraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
+ flags = library.baseLinker.linkerFlags(ctx, flags)
if !library.static() {
libName := library.getLibName(ctx)
@@ -288,8 +288,8 @@ func (library *libraryLinker) flags(ctx ModuleContext, flags Flags) Flags {
return flags
}
-func (library *libraryLinker) deps(ctx BaseModuleContext, deps Deps) Deps {
- deps = library.baseLinker.deps(ctx, deps)
+func (library *libraryLinker) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
+ deps = library.baseLinker.linkerDeps(ctx, deps)
if library.static() {
deps.WholeStaticLibs = append(deps.WholeStaticLibs, library.Properties.Static.Whole_static_libs...)
deps.StaticLibs = append(deps.StaticLibs, library.Properties.Static.Static_libs...)