Merge changes from topic "drop_circular_dep"
* changes: Remove srcs_lib and srcs_lib_whitelist_pkgs Remove the automatic dependency to framework-res.apk for R/Manifest Prepare to be able to put framework-res in srcs
This commit is contained in:
27
java/java.go
27
java/java.go
@@ -404,29 +404,14 @@ type SdkLibraryDependency interface {
|
||||
SdkImplementationJars(ctx android.BaseModuleContext, sdkVersion string) android.Paths
|
||||
}
|
||||
|
||||
type SrcDependency interface {
|
||||
CompiledSrcs() android.Paths
|
||||
CompiledSrcJars() android.Paths
|
||||
}
|
||||
|
||||
type xref interface {
|
||||
XrefJavaFiles() android.Paths
|
||||
}
|
||||
|
||||
func (j *Module) CompiledSrcs() android.Paths {
|
||||
return j.compiledJavaSrcs
|
||||
}
|
||||
|
||||
func (j *Module) CompiledSrcJars() android.Paths {
|
||||
return j.compiledSrcJars
|
||||
}
|
||||
|
||||
func (j *Module) XrefJavaFiles() android.Paths {
|
||||
return j.kytheFiles
|
||||
}
|
||||
|
||||
var _ SrcDependency = (*Module)(nil)
|
||||
|
||||
func InitJavaModule(module android.DefaultableModule, hod android.HostOrDeviceSupported) {
|
||||
android.InitAndroidArchModule(module, hod, android.MultilibCommon)
|
||||
android.InitDefaultableModule(module)
|
||||
@@ -550,9 +535,6 @@ func (j *Module) deps(ctx android.BottomUpMutatorContext) {
|
||||
} else if *j.deviceProperties.System_modules != "none" {
|
||||
ctx.AddVariationDependencies(nil, systemModulesTag, *j.deviceProperties.System_modules)
|
||||
}
|
||||
if (ctx.ModuleName() == "framework") || (ctx.ModuleName() == "framework-annotation-proc") {
|
||||
ctx.AddVariationDependencies(nil, frameworkResTag, "framework-res")
|
||||
}
|
||||
if ctx.ModuleName() == "android_stubs_current" ||
|
||||
ctx.ModuleName() == "android_system_stubs_current" ||
|
||||
ctx.ModuleName() == "android_test_stubs_current" {
|
||||
@@ -833,12 +815,6 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {
|
||||
} else {
|
||||
ctx.PropertyErrorf("plugins", "%q is not a java_plugin module", otherName)
|
||||
}
|
||||
case frameworkResTag:
|
||||
if (ctx.ModuleName() == "framework") || (ctx.ModuleName() == "framework-annotation-proc") {
|
||||
// framework.jar has a one-off dependency on the R.java and Manifest.java files
|
||||
// generated by framework-res.apk
|
||||
deps.srcJars = append(deps.srcJars, dep.(*AndroidApp).aaptSrcJar)
|
||||
}
|
||||
case frameworkApkTag:
|
||||
if ctx.ModuleName() == "android_stubs_current" ||
|
||||
ctx.ModuleName() == "android_system_stubs_current" ||
|
||||
@@ -1061,8 +1037,7 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
|
||||
srcJars = append(srcJars, aaptSrcJar)
|
||||
}
|
||||
|
||||
// Collect source files from compiledJavaSrcs, compiledSrcJars and filter out Exclude_srcs
|
||||
// that IDEInfo struct will use
|
||||
// Collect source files and filter out Exclude_srcs that IDEInfo struct will use
|
||||
j.expandIDEInfoCompiledSrcs = append(j.expandIDEInfoCompiledSrcs, srcFiles.Strings()...)
|
||||
|
||||
if j.properties.Jarjar_rules != nil {
|
||||
|
Reference in New Issue
Block a user