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:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user