Allow modules with empty sdk_version in unbundled builds

The apps build depends modules that have empty sdk_version.  Let the
behavior match make for now.

Test: m -j TARGET_BUILD_APPS=Gallery2
Change-Id: Ie5545d2cd6b1268b0b3392dc0af2e4eb3d38a588
This commit is contained in:
Colin Cross
2017-09-22 15:30:06 -07:00
parent 0f37af0c15
commit 8b9d37b40a

View File

@@ -236,13 +236,7 @@ func decodeSdkDep(ctx android.BaseContext, v string) sdkDep {
}
}
if ctx.AConfig().UnbundledBuild() {
if v == "" {
if ctx, ok := ctx.(android.ModuleContext); ok {
ctx.AddMissingDependencies([]string{"sdk_version_must_be_set_for_modules_used_in_unbundled_builds"})
}
return sdkDep{}
}
if ctx.AConfig().UnbundledBuild() && v != "" {
return toFile(v)
}