Don't install stubs
Stubs libs are build-time only artifact. Can't be installed.
Test: OUT_DIR=out build/soong/scripts/build-ndk-prebuilts.sh
with https://android-review.googlesource.com/c/platform/frameworks/av/+/846770/7
and two more CLs in the same chain
Examine out/soong/build.ninja
Build rule for out/soong/target/product/generic_arm64/system/lib64/arm64/libmediandk.so
exist only once.
Change-Id: I58ff09ef3fbbdbd2d968aa21b87a493192d4216d
diff --git a/cc/library.go b/cc/library.go
index 2fd423b..bd43043 100644
--- a/cc/library.go
+++ b/cc/library.go
@@ -1055,6 +1055,7 @@
m.(*Module).Properties.HideFromMake = true
m.(*Module).sanitize = nil
m.(*Module).stl = nil
+ m.(*Module).Properties.PreventInstall = true
}
}
} else {