aboutsummaryrefslogtreecommitdiffstats
path: root/genrule
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-03-23 17:50:24 -0700
committerColin Cross <ccross@android.com>2015-03-25 11:33:06 -0700
commit97ba07383367bdd5189ccdf9c7dfc16e1ebdbe4a (patch)
treeecba5a87924e3ad27ff4b1ab3fb5c6f4be803904 /genrule
parent70b4059e3fae2608bd65dfae836f2f1f781addc9 (diff)
downloadbuild_soong-97ba07383367bdd5189ccdf9c7dfc16e1ebdbe4a.tar.gz
build_soong-97ba07383367bdd5189ccdf9c7dfc16e1ebdbe4a.tar.bz2
build_soong-97ba07383367bdd5189ccdf9c7dfc16e1ebdbe4a.zip
Export cc types for art to inherit from
Art needs a custom module type in order to perform complicated build logic like depending on environment variables and varying cflags based on cpu variant. Export enough of the types and functions from cc for art_cc_library to inherit from cc_library. While I'm touching every line, also rename the New* methods to *Factory. Change-Id: I7123aa47019c4ced7a1ab57c394225bc7844b5ea
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go
index 2a90e24a..e2b6c7da 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -53,7 +53,7 @@ type genSrcsProperties struct {
Output_extension string
}
-func NewGenSrcs() (blueprint.Module, []interface{}) {
+func GenSrcsFactory() (blueprint.Module, []interface{}) {
module := &genSrcs{}
return common.InitAndroidModule(module, &module.properties)