aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorArtur Satayev <satayev@google.com>2020-04-27 18:53:18 +0100
committerArtur Satayev <satayev@google.com>2020-05-06 15:01:14 +0000
commit388d39ba9a13db914a26d70a92e6074216842b43 (patch)
tree5b115750734b090bbb5a883c875e9e678f4f3928 /cc
parentfb0a636f6d7fa27cb121b075df482d4f601a2d6c (diff)
downloadbuild_soong-388d39ba9a13db914a26d70a92e6074216842b43.tar.gz
build_soong-388d39ba9a13db914a26d70a92e6074216842b43.tar.bz2
build_soong-388d39ba9a13db914a26d70a92e6074216842b43.zip
Introduce min_sdk_version to deps info.
Bug: 149622332 Test: m Change-Id: Ie6568cb8a82d5cca9a3dc91b5a068abf4b0632dc Merged-In: Ie6568cb8a82d5cca9a3dc91b5a068abf4b0632dc Exempt-From-Owner-Approval: cp from aosp (cherry picked from commit 480e25b74f9e7101ff3083bd4517f15ac0a6a1b9)
Diffstat (limited to 'cc')
-rw-r--r--cc/cc.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/cc.go b/cc/cc.go
index ec0f1a08..01bf5f1e 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -580,6 +580,10 @@ func (c *Module) SdkVersion() string {
return String(c.Properties.Sdk_version)
}
+func (c *Module) MinSdkVersion() string {
+ return String(c.Properties.Min_sdk_version)
+}
+
func (c *Module) AlwaysSdk() bool {
return c.Properties.AlwaysSdk || Bool(c.Properties.Sdk_variant_only)
}