Linux: bluetooth.default.so -> libbluetooth.so
Also rename the build goal for both the library.
Bug: 67853426
Test: run Bluetooth
Change-Id: Ic5bd27f10ade0b068057049dd98c09e082cafee1
diff --git a/BUILD.gn b/BUILD.gn
index 618de1c..e471a74 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -23,7 +23,7 @@
# This pulls in main/BUILD.gn and all of its dependencies.
group("bluetooth") {
deps = [
- "//main:bluetooth.default",
+ "//main:bluetooth",
"//service:bluetoothtbd",
]
}
diff --git a/main/BUILD.gn b/main/BUILD.gn
index a81b666..ff5c8e4 100644
--- a/main/BUILD.gn
+++ b/main/BUILD.gn
@@ -14,8 +14,13 @@
# limitations under the License.
#
-shared_library("bluetooth.default") {
- output_prefix_override=true
+config("libbluetooth_config") {
+ include_dirs = [
+ "../include",
+ ]
+}
+
+shared_library("bluetooth") {
# HAL layer
sources = [
@@ -32,6 +37,8 @@
"stack_config.cc",
]
+ public_configs = [ ":libbluetooth_config" ]
+
include_dirs = [
"//",
"//bta/include",
diff --git a/stack/BUILD.gn b/stack/BUILD.gn
index 61a0cee..8bb4a27 100644
--- a/stack/BUILD.gn
+++ b/stack/BUILD.gn
@@ -226,7 +226,7 @@
"//embdrv/sbc",
"//hci",
"//types",
- "//main:bluetooth.default",
+ "//main:bluetooth",
"//third_party/googletest:gmock_main",
"//third_party/libchrome:base",
]
diff --git a/test/suite/BUILD.gn b/test/suite/BUILD.gn
index d481000..8d34c8c 100644
--- a/test/suite/BUILD.gn
+++ b/test/suite/BUILD.gn
@@ -28,7 +28,7 @@
deps = [
"//btcore",
- "//main:bluetooth.default",
+ "//main:bluetooth",
"//service:service",
"//service:service_unittests",
"//types:types_unittests",