Skip to content
Snippets Groups Projects
Commit 917abc39 authored by Etienne Ruffieux's avatar Etienne Ruffieux
Browse files

Add top-level default visibility for Bluetooth module

Bug: 215008564
Test: manual
Tag: #feature
Ignore-AOSP-First: Some changes only present in internal
Change-Id: I0c12526bdf833b41e8d1282b29640fa9481b6a04
parent 37c2637e
No related branches found
No related tags found
No related merge requests found
package {
default_visibility: [":__subpackages__"],
default_applicable_licenses: ["system_bt_license"],
}
......
......@@ -10,6 +10,10 @@ package {
// AIDL interface between libbluetooth-binder and framework.jar
filegroup {
name: "libbluetooth-binder-aidl",
visibility: [
"//frameworks/base",
"//packages/modules/Bluetooth:__subpackages__",
],
srcs: [
":framework-bluetooth-updatable-exported-aidl-sources",
":modules-utils-synchronous-result-receiver-aidl",
......
......@@ -41,6 +41,10 @@ cc_defaults {
cc_library_static {
name: "libbtcore",
visibility:[
"//packages/apps/Test/connectivity/sl4n",
"//packages/modules/Bluetooth:__subpackages__",
],
defaults: ["libbtcore_defaults"],
}
......
......@@ -30,6 +30,11 @@ cc_library_headers {
cc_library_headers {
name: "libbluetooth_headers",
defaults: ["libchrome_support_defaults"],
visibility:[
"//packages/apps/Test/connectivity/sl4n",
"//packages/modules/Bluetooth:__subpackages__",
"//vendor:__subpackages__",
],
header_libs: [
"avrcp_headers",
"libbluetooth-types-header",
......
......@@ -63,6 +63,11 @@ cc_library_static {
cc_library_shared {
name: "libbluetooth",
visibility: [
"//cts/hostsidetests:__subpackages__",
"//packages/modules/Bluetooth:__subpackages__",
"//vendor:__subpackages__",
],
defaults: ["fluoride_defaults"],
header_libs: ["libbluetooth_headers"],
export_header_lib_headers: ["libbluetooth_headers"],
......
......@@ -55,6 +55,10 @@ filegroup {
// libosi static library for target
cc_library_static {
name: "libosi",
visibility:[
"//packages/apps/Test/connectivity/sl4n",
"//packages/modules/Bluetooth:__subpackages__",
],
defaults: ["fluoride_osi_defaults"],
// TODO(mcchou): Remove socket_utils sources after platform specific
// dependencies are abstracted.
......
......@@ -44,6 +44,10 @@ cc_library_static {
// Bluetooth Binder shared library
cc_library_static {
name: "libbluetooth-binder-common",
visibility:[
"//packages/apps/Test/connectivity/sl4n",
"//packages/modules/Bluetooth:__subpackages__",
],
defaults: ["fluoride_defaults"],
cflags: [
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
......
......@@ -31,7 +31,9 @@ cc_binary {
"bluetooth_hci.cc",
"service.cc",
],
visibility: [
"//platform_testing/libraries/sts-common-util/host-side/rootcanal"
],
header_libs: ["libbluetooth_headers"],
shared_libs: [
"android.hardware.bluetooth@1.0",
......@@ -81,7 +83,9 @@ cc_library_shared {
srcs: [
"bluetooth_hci.cc",
],
visibility: [
"//platform_testing/libraries/sts-common-util/host-side/rootcanal"
],
header_libs: ["libbluetooth_headers"],
shared_libs: [
"android.hardware.bluetooth@1.0",
......
......@@ -10,6 +10,7 @@ package {
cc_library_headers {
name: "libbluetooth-types-header",
visibility:["//visibility:public"],
export_include_dirs: ["./"],
vendor_available: true,
host_supported: true,
......@@ -33,6 +34,7 @@ cc_library_static {
/* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
"-fvisibility=default",
],
visibility:["//visibility:public"],
host_supported: true,
srcs: [
"class_of_device.cc",
......
......@@ -5,6 +5,10 @@ package {
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_bt_license"],
default_visibility: [
"//device:__subpackages__",
"//packages/modules/Bluetooth:__subpackages__",
],
}
subdirs = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment