aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Peckham <bpeckham@google.com>2019-10-17 18:03:15 -0700
committerBill Peckham <bpeckham@google.com>2019-10-17 18:03:15 -0700
commit9f8ec258d517b50f96bf9344aab70c04c7dbf14c (patch)
tree6bd415a59a76f53027019a648584187a03033f4e
parentf41aefd55167acf8cec7cd936e22a301ff403280 (diff)
downloadbzip2-9f8ec258d517b50f96bf9344aab70c04c7dbf14c.tar.gz
Restrict visibility of libraries that are newly vendor_available: true.
As part of fixing b/68319577, some libraries were made vendor_available: true. To minimize new dependencies from vendor on these libraries, this change restricts the visibility of the libraries to only the framework projects that currently use them. This change does two things. It makes libbz a static libarary only (drops the shared library). It restricts the visibility of the static library to only the framework projects that currently use it. Bug: 141649008 Test: Targets build successfully. Change-Id: Icb2974bd890a705f827f98a2526eed21625bf9f4
-rw-r--r--Android.bp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index e7bff8e..21d7bfa 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,11 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-cc_library {
+cc_library_static {
name: "libbz",
host_supported: true,
vendor_available: true,
recovery_available: true,
+ visibility: [
+ "//bootable/recovery:__subpackages__",
+ "//external/bsdiff:__subpackages__",
+ "//external/puffin:__subpackages__",
+ "//system/update_engine:__subpackages__",
+ ],
arch: {
arm: {
// measurements show that the ARM version of ZLib is about x1.17 faster