From 127d56580db6bff517c53037f70d0efbb0dc682e Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Wed, 12 Dec 2018 10:26:20 +0900 Subject: [PATCH] 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 --- cc/library.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cc/library.go b/cc/library.go index 2fd423b6b..bd4304359 100644 --- a/cc/library.go +++ b/cc/library.go @@ -1055,6 +1055,7 @@ func VersionMutator(mctx android.BottomUpMutatorContext) { m.(*Module).Properties.HideFromMake = true m.(*Module).sanitize = nil m.(*Module).stl = nil + m.(*Module).Properties.PreventInstall = true } } } else {