diff options
author | Paul Duffin <paulduffin@google.com> | 2019-06-25 15:40:29 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2019-07-02 14:26:07 +0100 |
commit | c241d6a26776614449440f7be1851709387deaab (patch) | |
tree | 024eb49dd0eb36511ec188f1a07b9b62c6458baf /Android.bp | |
parent | ad7ae581f05bc3320db06e478c8f548220f76810 (diff) | |
download | libcore-c241d6a26776614449440f7be1851709387deaab.tar.gz |
Set default visibility to private
Takes advantage of a new mechanism for specifying the default visibility
of all modules in a package to restrict the visibility of libcore
modules as much as possible:
package {default_visibility: ["//visibility:private"]}
Bug: 133290645
Bug: 134379140
Test: m droid
Change-Id: I2ba1a6131993d218fd65cd4a8f0ad29a7a83df14
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index e57045fc5b4..268ea18ae02 100644 --- a/Android.bp +++ b/Android.bp @@ -1,3 +1,21 @@ +// Copyright (C) 2017 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package { + default_visibility: ["//visibility:private"], +} + build = [ "JavaLibrary.bp", "NativeCode.bp", @@ -5,6 +23,9 @@ build = [ genrule { name: "notices-for-framework-stubs", + visibility: [ + "//development/build", + ], tool_files: [ "NOTICE", "ojluni/NOTICE", |