Support Rust in Product
Bug: 178565008
Bug: 165791368
Test: Build and link a Rust library into a product binary
Change-Id: I9c5aa5f3a1f323af9aa2aee804635045f1b91bd4
diff --git a/cc/androidmk.go b/cc/androidmk.go
index df3776c..1f08a01 100644
--- a/cc/androidmk.go
+++ b/cc/androidmk.go
@@ -25,7 +25,7 @@
var (
nativeBridgeSuffix = ".native_bridge"
- productSuffix = ".product"
+ ProductSuffix = ".product"
VendorSuffix = ".vendor"
ramdiskSuffix = ".ramdisk"
VendorRamdiskSuffix = ".vendor_ramdisk"
diff --git a/cc/cc.go b/cc/cc.go
index 0d2ef4e..03280f4 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -1632,7 +1632,7 @@
return ""
}
vndkVersion = ctx.DeviceConfig().ProductVndkVersion()
- nameSuffix = productSuffix
+ nameSuffix = ProductSuffix
} else {
vndkVersion = ctx.DeviceConfig().VndkVersion()
nameSuffix = VendorSuffix