Dump extra JSON data for C++ modules and ApexInfo.
Test: Presubmits. Change-Id: I96cf67c6f1338aed9d2ab5834a14b8a40a9e5b45
This commit is contained in:
40
cc/cc.go
40
cc/cc.go
@@ -831,6 +831,46 @@ type Module struct {
|
||||
hideApexVariantFromMake bool
|
||||
}
|
||||
|
||||
func (c *Module) AddJSONData(d *map[string]interface{}) {
|
||||
c.AndroidModuleBase().AddJSONData(d)
|
||||
(*d)["Cc"] = map[string]interface{}{
|
||||
"SdkVersion": c.SdkVersion(),
|
||||
"MinSdkVersion": c.MinSdkVersion(),
|
||||
"VndkVersion": c.VndkVersion(),
|
||||
"ProductSpecific": c.ProductSpecific(),
|
||||
"SocSpecific": c.SocSpecific(),
|
||||
"DeviceSpecific": c.DeviceSpecific(),
|
||||
"InProduct": c.InProduct(),
|
||||
"InVendor": c.InVendor(),
|
||||
"InRamdisk": c.InRamdisk(),
|
||||
"InVendorRamdisk": c.InVendorRamdisk(),
|
||||
"InRecovery": c.InRecovery(),
|
||||
"VendorAvailable": c.VendorAvailable(),
|
||||
"ProductAvailable": c.ProductAvailable(),
|
||||
"RamdiskAvailable": c.RamdiskAvailable(),
|
||||
"VendorRamdiskAvailable": c.VendorRamdiskAvailable(),
|
||||
"RecoveryAvailable": c.RecoveryAvailable(),
|
||||
"OdmAvailable": c.OdmAvailable(),
|
||||
"InstallInData": c.InstallInData(),
|
||||
"InstallInRamdisk": c.InstallInRamdisk(),
|
||||
"InstallInSanitizerDir": c.InstallInSanitizerDir(),
|
||||
"InstallInVendorRamdisk": c.InstallInVendorRamdisk(),
|
||||
"InstallInRecovery": c.InstallInRecovery(),
|
||||
"InstallInRoot": c.InstallInRoot(),
|
||||
"IsVndk": c.IsVndk(),
|
||||
"IsVndkExt": c.IsVndkExt(),
|
||||
"IsVndkPrivate": c.IsVndkPrivate(),
|
||||
"IsVndkSp": c.IsVndkSp(),
|
||||
"IsLlndk": c.IsLlndk(),
|
||||
"IsLlndkPublic": c.IsLlndkPublic(),
|
||||
"IsSnapshotLibrary": c.IsSnapshotLibrary(),
|
||||
"IsSnapshotPrebuilt": c.IsSnapshotPrebuilt(),
|
||||
"IsVendorPublicLibrary": c.IsVendorPublicLibrary(),
|
||||
"ApexSdkVersion": c.apexSdkVersion,
|
||||
"TestFor": c.TestFor(),
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Module) SetPreventInstall() {
|
||||
c.Properties.PreventInstall = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user