Build System: Collect native dependent information from cc.go.
Bug: 126957990
Test: 1. m aidegen
2. $ANDROID_HOST_OUT/bin/aidegen-dev frameworks/native -v
3. open out/soong/module_bp_java_deps.json
check *.a and *.so files are added.
Change-Id: I82ba49d023621908f0be12abf529553aee45fa5b
diff --git a/cc/cc.go b/cc/cc.go
index ddc47ea..117bbc2 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -1911,6 +1911,10 @@
return variation
}
+func (c *Module) IDEInfo(dpInfo *android.IdeInfo) {
+ dpInfo.Srcs = append(dpInfo.Srcs, c.Srcs().Strings()...)
+}
+
//
// Defaults
//