Remove obsolete PDK build functionality
This hasn't worked for a couple years, and continues to bitrot. Just remove it. Adds a bpfix rule so that we can eventually remove the product_variables.pdk definition, which is now always a no-op. Test: treehugger Change-Id: I830b54d419b59f6db1d4617b45e61a78234f57a7
This commit is contained in:
@@ -1127,22 +1127,17 @@ func (module *SdkLibrary) createImplLibrary(mctx android.DefaultableHookContext)
|
||||
// Creates a static java library that has API stubs
|
||||
func (module *SdkLibrary) createStubsLibrary(mctx android.DefaultableHookContext, apiScope *apiScope) {
|
||||
props := struct {
|
||||
Name *string
|
||||
Visibility []string
|
||||
Srcs []string
|
||||
Installable *bool
|
||||
Sdk_version *string
|
||||
System_modules *string
|
||||
Patch_module *string
|
||||
Libs []string
|
||||
Compile_dex *bool
|
||||
Java_version *string
|
||||
Product_variables struct {
|
||||
Pdk struct {
|
||||
Enabled *bool
|
||||
}
|
||||
}
|
||||
Openjdk9 struct {
|
||||
Name *string
|
||||
Visibility []string
|
||||
Srcs []string
|
||||
Installable *bool
|
||||
Sdk_version *string
|
||||
System_modules *string
|
||||
Patch_module *string
|
||||
Libs []string
|
||||
Compile_dex *bool
|
||||
Java_version *string
|
||||
Openjdk9 struct {
|
||||
Srcs []string
|
||||
Javacflags []string
|
||||
}
|
||||
@@ -1174,7 +1169,6 @@ func (module *SdkLibrary) createStubsLibrary(mctx android.DefaultableHookContext
|
||||
if proptools.Bool(module.sdkLibraryProperties.Annotations_enabled) {
|
||||
props.Libs = append(props.Libs, "stub-annotations")
|
||||
}
|
||||
props.Product_variables.Pdk.Enabled = proptools.BoolPtr(false)
|
||||
props.Openjdk9.Srcs = module.properties.Openjdk9.Srcs
|
||||
props.Openjdk9.Javacflags = module.properties.Openjdk9.Javacflags
|
||||
// We compile the stubs for 1.8 in line with the main android.jar stubs, and potential
|
||||
|
Reference in New Issue
Block a user