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 /NativeCode.bp | |
parent | ad7ae581f05bc3320db06e478c8f548220f76810 (diff) |
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 'NativeCode.bp')
-rw-r--r-- | NativeCode.bp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/NativeCode.bp b/NativeCode.bp index e40b9bc80b..e268a87aae 100644 --- a/NativeCode.bp +++ b/NativeCode.bp @@ -47,6 +47,9 @@ cc_defaults { cc_library_shared { name: "libjavacore", + visibility: [ + "//art/build/apex", + ], defaults: [ "core_native_default_flags", "core_native_default_libs", @@ -83,6 +86,9 @@ cc_library_shared { cc_library_shared { name: "libandroidio", + visibility: [ + "//art/build/apex", + ], defaults: [ "core_native_default_flags", ], @@ -155,6 +161,9 @@ cc_defaults { cc_library_shared { name: "libopenjdk", + visibility: [ + "//art/build/apex", + ], defaults: ["libopenjdk_native_defaults"], shared_libs: [ "libopenjdkjvm", @@ -164,6 +173,9 @@ cc_library_shared { // Debug version of libopenjdk. Depends on libopenjdkjvmd. cc_library_shared { name: "libopenjdkd", + visibility: [ + "//art/build/apex", + ], defaults: ["libopenjdk_native_defaults"], shared_libs: [ "libopenjdkjvmd", @@ -173,6 +185,9 @@ cc_library_shared { // Test JNI library. cc_library_shared { name: "libjavacoretests", + visibility: [ + "//cts/tests/libcore/luni", + ], defaults: ["core_native_default_flags"], host_supported: true, |