Add Android.bp variables to the soong build parser

* BtConfigIncludeDir: BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR
* BtHcilpIncluded: BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED
* BtHciUseMct: BLUETOOTH_HCI_USE_MCT

Bug: 32958753
Test: Code compilation, no user visible effects

Change-Id: I0dc53172ee823e4e0fa69749e1297713796538cf
This commit is contained in:
Jack He
2016-12-08 15:45:07 -08:00
parent 9b165dd015
commit 8cc714313c
2 changed files with 17 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ import (
) )
var Bool = proptools.Bool var Bool = proptools.Bool
var String = proptools.String
// The configuration file name // The configuration file name
const configFileName = "soong.config" const configFileName = "soong.config"
@@ -460,3 +461,15 @@ func (c *deviceConfig) VndkVersion() string {
} }
return *c.config.ProductVariables.DeviceVndkVersion return *c.config.ProductVariables.DeviceVndkVersion
} }
func (c *deviceConfig) BtConfigIncludeDir() string {
return String(c.config.ProductVariables.BtConfigIncludeDir)
}
func (c *deviceConfig) BtHcilpIncluded() string {
return String(c.config.ProductVariables.BtHcilpIncluded)
}
func (c *deviceConfig) BtHciUseMct() bool {
return Bool(c.config.ProductVariables.BtHciUseMct)
}

View File

@@ -138,6 +138,10 @@ type productVariables struct {
SanitizeDeviceArch []string `json:",omitempty"` SanitizeDeviceArch []string `json:",omitempty"`
ArtUseReadBarrier *bool `json:",omitempty"` ArtUseReadBarrier *bool `json:",omitempty"`
BtConfigIncludeDir *string `json:",omitempty"`
BtHcilpIncluded *string `json:",omitempty"`
BtHciUseMct *bool `json:",omitempty"`
} }
func boolPtr(v bool) *bool { func boolPtr(v bool) *bool {