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:
@@ -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)
|
||||||
|
}
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user