Add Android.bp variables to the soong build parser am: 8cc714313c
am: 9224bd9587
Change-Id: I4cfcbffed9aa5799e461a4288af2ecdeafde1528
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