diff options
| author | Dan Willemsen <dwillemsen@google.com> | 2015-07-08 18:13:11 -0700 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2015-12-01 15:08:01 -0800 |
| commit | 218f65628efe3d15fe788eeaf2bf7a639daeb0ca (patch) | |
| tree | 60d962e024387e57930b21fa0cb9ef9a9d5c61e4 /common/config.go | |
| parent | 979422c6c2d85b8048b0a9a478b1ee0d6a54eeed (diff) | |
| download | build_soong-218f65628efe3d15fe788eeaf2bf7a639daeb0ca.tar.gz build_soong-218f65628efe3d15fe788eeaf2bf7a639daeb0ca.tar.bz2 build_soong-218f65628efe3d15fe788eeaf2bf7a639daeb0ca.zip | |
Hybrid soong/mk build using prebuilts
Change-Id: I96daa69af27bd19c8bfbe327a1318f51c738fc03
Diffstat (limited to 'common/config.go')
| -rw-r--r-- | common/config.go | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/common/config.go b/common/config.go index fbd2be9e..c67023e3 100644 --- a/common/config.go +++ b/common/config.go @@ -38,9 +38,11 @@ func (f *FileConfigurableOptions) SetDefaultConfig() { type Config struct { *config + + dontCreateNinjaFile bool } -// A config object represents the entire build configuration for Blue. +// A config object represents the entire build configuration for Android. type config struct { FileConfigurableOptions ProductVariables productVariables @@ -48,6 +50,9 @@ type config struct { ConfigFileName string ProductVariablesFileName string + DeviceArches []Arch + HostArches map[HostType][]Arch + srcDir string // the path of the root source directory buildDir string // the path of the build output directory @@ -143,6 +148,14 @@ func NewConfig(srcDir, buildDir string) (Config, error) { return Config{}, err } + hostArches, deviceArches, err := decodeArchProductVariables(config.ProductVariables) + if err != nil { + return Config{}, err + } + + config.HostArches = hostArches + config.DeviceArches = deviceArches + return config, nil } @@ -158,6 +171,10 @@ func (c *config) IntermediatesDir() string { return filepath.Join(c.BuildDir(), ".intermediates") } +func (c *config) RemoveAbandonedFiles() bool { + return false +} + // PrebuiltOS returns the name of the host OS used in prebuilts directories func (c *config) PrebuiltOS() string { switch runtime.GOOS { |
