diff options
author | Colin Cross <ccross@android.com> | 2019-04-17 11:11:46 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-04-17 11:28:34 -0700 |
commit | 79c7c26d8a1987b4c60256d05e2cc52588ccddc0 (patch) | |
tree | 62fc0a614f73c1d1ef2dcdb1952a9c1be49845c0 /java/java.go | |
parent | 587fb4de9ac6972625534b7461634c3538c2231f (diff) |
Add support for prebuilt java_sdk_library modules
Add java_sdk_library_import for use when a java_sdk_library may
be used by unbundled branches that do not have the project that
contains the original java_sdk_library module.
Bug: 130287656
Test: m checkbuild
Change-Id: I62df4bccc0da95ed6c8b31dab8f2c32cc3215e9e
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index bf62578f8..7768756ec 100644 --- a/java/java.go +++ b/java/java.go @@ -713,7 +713,7 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps { deps.classpath = append(deps.classpath, dep.SdkHeaderJars(ctx, j.sdkVersion())...) // names of sdk libs that are directly depended are exported j.exportedSdkLibs = append(j.exportedSdkLibs, otherName) - default: + case staticLibTag: ctx.ModuleErrorf("dependency on java_sdk_library %q can only be in libs", otherName) } case Dependency: |