Dist the javac-compiled stubs jars
The header jars are compiled with turbine, which produces a jar that is less compliant to the class file spec than when compiled with javac. Since the dist'ed jars may be shipped with the SDK, use the javac version for maximum compatibility. Bug: 119841341 Test: forrest SDK build Change-Id: I745c8dd0305d95ae9ce025a9c23e51a99ebb0a3b
This commit is contained in:
@@ -229,19 +229,19 @@ func (module *sdkLibrary) AndroidMk() android.AndroidMkData {
|
||||
// Create dist rules to install the stubs libs to the dist dir
|
||||
if len(module.publicApiStubsPath) == 1 {
|
||||
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
||||
module.publicApiStubsPath.Strings()[0]+
|
||||
module.publicApiStubsImplPath.Strings()[0]+
|
||||
":"+path.Join("apistubs", owner, "public",
|
||||
module.BaseModuleName()+".jar")+")")
|
||||
}
|
||||
if len(module.systemApiStubsPath) == 1 {
|
||||
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
||||
module.systemApiStubsPath.Strings()[0]+
|
||||
module.systemApiStubsImplPath.Strings()[0]+
|
||||
":"+path.Join("apistubs", owner, "system",
|
||||
module.BaseModuleName()+".jar")+")")
|
||||
}
|
||||
if len(module.testApiStubsPath) == 1 {
|
||||
fmt.Fprintln(w, "$(call dist-for-goals,sdk win_sdk,"+
|
||||
module.testApiStubsPath.Strings()[0]+
|
||||
module.testApiStubsImplPath.Strings()[0]+
|
||||
":"+path.Join("apistubs", owner, "test",
|
||||
module.BaseModuleName()+".jar")+")")
|
||||
}
|
||||
|
Reference in New Issue
Block a user