Add errorprone.javacflags to java_sdk_library
Bug: 110208852 Test: cherry-pick https://android-review.googlesource.com/c/platform/external/apache-http/+/620154 Test: m javac-check RUN_ERROR_PRONE=true Change-Id: If97871e6e1fd597efed2b796620538ca4c57eed4
This commit is contained in:
@@ -106,6 +106,11 @@ type sdkLibraryProperties struct {
|
|||||||
// list of package names that must be hidden from the API
|
// list of package names that must be hidden from the API
|
||||||
Hidden_api_packages []string
|
Hidden_api_packages []string
|
||||||
|
|
||||||
|
Errorprone struct {
|
||||||
|
// List of javac flags that should only be used when running errorprone.
|
||||||
|
Javacflags []string
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: determines whether to create HTML doc or not
|
// TODO: determines whether to create HTML doc or not
|
||||||
//Html_doc *bool
|
//Html_doc *bool
|
||||||
}
|
}
|
||||||
@@ -445,6 +450,9 @@ func (module *sdkLibrary) createImplLibrary(mctx android.TopDownMutatorContext)
|
|||||||
Device_specific *bool
|
Device_specific *bool
|
||||||
Product_specific *bool
|
Product_specific *bool
|
||||||
Required []string
|
Required []string
|
||||||
|
Errorprone struct {
|
||||||
|
Javacflags []string
|
||||||
|
}
|
||||||
}{}
|
}{}
|
||||||
|
|
||||||
props.Name = proptools.StringPtr(module.implName())
|
props.Name = proptools.StringPtr(module.implName())
|
||||||
@@ -453,6 +461,7 @@ func (module *sdkLibrary) createImplLibrary(mctx android.TopDownMutatorContext)
|
|||||||
props.Static_libs = module.properties.Static_libs
|
props.Static_libs = module.properties.Static_libs
|
||||||
// XML file is installed along with the impl lib
|
// XML file is installed along with the impl lib
|
||||||
props.Required = []string{module.xmlFileName()}
|
props.Required = []string{module.xmlFileName()}
|
||||||
|
props.Errorprone.Javacflags = module.properties.Errorprone.Javacflags
|
||||||
|
|
||||||
if module.SocSpecific() {
|
if module.SocSpecific() {
|
||||||
props.Soc_specific = proptools.BoolPtr(true)
|
props.Soc_specific = proptools.BoolPtr(true)
|
||||||
|
Reference in New Issue
Block a user