Merge "disable usage of plugins as static libs" am: 1cb1c45e8c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2076860 Change-Id: If7f1bd6e9b866acecc65cb615e0d2324d78c9bc3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1913,6 +1913,9 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {
|
||||
case bootClasspathTag:
|
||||
deps.bootClasspath = append(deps.bootClasspath, dep.HeaderJars...)
|
||||
case libTag, instrumentationForTag:
|
||||
if _, ok := module.(*Plugin); ok {
|
||||
ctx.ModuleErrorf("a java_plugin (%s) cannot be used as a libs dependency", otherName)
|
||||
}
|
||||
deps.classpath = append(deps.classpath, dep.HeaderJars...)
|
||||
deps.dexClasspath = append(deps.dexClasspath, dep.HeaderJars...)
|
||||
deps.aidlIncludeDirs = append(deps.aidlIncludeDirs, dep.AidlIncludeDirs...)
|
||||
@@ -1921,6 +1924,9 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {
|
||||
case java9LibTag:
|
||||
deps.java9Classpath = append(deps.java9Classpath, dep.HeaderJars...)
|
||||
case staticLibTag:
|
||||
if _, ok := module.(*Plugin); ok {
|
||||
ctx.ModuleErrorf("a java_plugin (%s) cannot be used as a static_libs dependency", otherName)
|
||||
}
|
||||
deps.classpath = append(deps.classpath, dep.HeaderJars...)
|
||||
deps.staticJars = append(deps.staticJars, dep.ImplementationJars...)
|
||||
deps.staticHeaderJars = append(deps.staticHeaderJars, dep.HeaderJars...)
|
||||
|
Reference in New Issue
Block a user