derive_sdk: set min_sdk_version

Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

Removed sdk_version because the sdk variant is not used by sdkext apex.
And, changed the dep from libbase_ndk to libbase. libbinder_ndk would
still work. But there's no reason to use it if not set sdk_version.

We could've set "sdk_variant_only" so that sdkext apex use the sdk
variant of derive_sdk explicitly. But even if we do that, we still have
to set min_sdk_version to be used by the apexes anyway.

Bug: 145796956
Test: m
Merged-In: I94ad8b9ffc5088822d3365253bf2f005a659d923
Change-Id: I94ad8b9ffc5088822d3365253bf2f005a659d923
(cherry picked from commit 4f49b2a289)
This commit is contained in:
Jooyung Han
2020-04-23 15:25:04 +09:00
parent 6afdcd113c
commit f41bac3d0e

View File

@@ -22,12 +22,11 @@ cc_defaults {
type: "lite", type: "lite",
static: true, static: true,
}, },
sdk_version: "current", min_sdk_version: "current",
stl: "c++_static",
shared_libs: ["liblog"], shared_libs: ["liblog"],
static_libs: [ // static c++/libbase for smaller size
"libbase_ndk", stl: "c++_static",
], static_libs: ["libbase"],
} }
cc_binary { cc_binary {