Add target.vendor_ramdisk.
Add exclude_srcs, exclude_static_libs, exclude_shared_libs, and
cflags.
Test: pass
Bug: 156098440
Change-Id: I2e10e1f7145932e9bc64f72fa95d0aac776f7f63
diff --git a/cc/cc.go b/cc/cc.go
index c1a4327..dc57426 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -3077,6 +3077,12 @@
}
}
+func squashVendorRamdiskSrcs(m *Module) {
+ if lib, ok := m.compiler.(*libraryDecorator); ok {
+ lib.baseCompiler.Properties.Exclude_srcs = append(lib.baseCompiler.Properties.Exclude_srcs, lib.baseCompiler.Properties.Target.Vendor_ramdisk.Exclude_srcs...)
+ }
+}
+
func (c *Module) IsSdkVariant() bool {
return c.Properties.IsSdkVariant || c.AlwaysSdk()
}