"-Wno-unused-result",
"-Wno-unused-variable",
"-Wno-unused-const-variable",
+ "-Wno-format",
]
cflags_cc = [
]
deps = [
+ "//bt/gd/rust/shim:hci_bridge_header",
"//bt/gd/rust/shim:init_flags_bridge_header",
+ "//bt/gd/rust/shim:message_loop_thread_bridge_header",
]
}
deps = [
"//bt/gd/rust/shim:init_flags_bridge_header",
+ "//bt/gd/rust/shim:message_loop_thread_bridge_header",
]
}
#include "btif_storage.h"
#include "btif_util.h"
#include "osi/include/allocator.h"
+#include "osi/include/compat.h"
#define BTIF_HD_APP_NAME_LEN 50
#define BTIF_HD_APP_DESCRIPTION_LEN 50
deps = [
"//bt/gd/rust/shim:init_flags_bridge_header",
+ "//bt/gd/rust/shim:message_loop_thread_bridge_header",
]
}
--- /dev/null
+#
+# Copyright 2021 Google, Inc.
+#
+# 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.
+
+import("//common-mk/flatbuffer.gni")
+
+config("dumpsys_config") {
+ include_dirs = [
+ "$target_gen_dir",
+ "$target_gen_dir/common",
+ "$target_gen_dir/hci",
+ "$target_gen_dir/l2cap/classic",
+ "$target_gen_dir/shim",
+ ]
+}
+
+flatbuffer("dumpsys") {
+ sources = [
+ "common/init_flags.fbs",
+ "dumpsys_data.fbs",
+ "hci/hci_acl_manager.fbs",
+ "l2cap/classic/l2cap_classic_module.fbs",
+ "shim/dumpsys.fbs",
+ ]
+
+ all_dependent_configs = [ ":dumpsys_config" ]
+}
"strings.cc",
]
+ deps = [
+ "//bt/gd/rust/shim:init_flags_bridge_header",
+ ]
+
include_dirs = [ "//bt/gd" ]
configs += [ "//bt:target_defaults" ]
--- /dev/null
+#
+# Copyright 2021 Google, Inc.
+#
+# 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.
+
+import("//common-mk/flatbuffer.gni")
+
+config("bundler_generated_config") {
+ include_dirs = [ "$target_gen_dir" ]
+}
+
+flatbuffer("bundler_generated") {
+ sources = [ "bundler.fbs" ]
+
+ all_dependent_configs = [ ":bundler_generated_config" ]
+}
--- /dev/null
+#
+# Copyright 2021 Google, Inc.
+#
+# 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.
+
+source_set("BluetoothHciSources") {
+ sources = [
+ "acl_manager.cc",
+ "acl_manager/acl_connection.cc",
+ "acl_manager/acl_fragmenter.cc",
+ "acl_manager/classic_acl_connection.cc",
+ "acl_manager/le_acl_connection.cc",
+ "acl_manager/round_robin_scheduler.cc",
+ "address.cc",
+ "class_of_device.cc",
+ "controller.cc",
+ "hci_layer.cc",
+ "le_address_manager.cc",
+ "le_advertising_manager.cc",
+ "le_scanning_manager.cc",
+ "link_key.cc",
+ "uuid.cc",
+ ]
+
+ include_dirs = [ "//bt/gd" ]
+
+ deps = [
+ "//bt/gd:dumpsys",
+ "//bt/gd/rust/shim:init_flags_bridge_header",
+ ]
+
+ configs += [ "//bt:target_defaults" ]
+}
import("//common-mk/cxxbridge.gni")
+config("rust_shim_config") {
+ include_dirs = [
+ "//bt/gd/rust/shim"
+ ]
+}
+
cxxbridge_header("shim_bridge_header") {
sources = [ "src/stack.rs" ]
+ all_dependent_configs = [ ":rust_shim_config" ]
}
cxxbridge_header("init_flags_bridge_header") {
sources = [ "src/init_flags.rs" ]
+ all_dependent_configs = [ ":rust_shim_config" ]
}
cxxbridge_header("hci_bridge_header") {
sources = [ "src/hci.rs" ]
+ all_dependent_configs = [ ":rust_shim_config" ]
+}
+
+cxxbridge_header("message_loop_thread_bridge_header") {
+ sources = [ "src/message_loop_thread.rs" ]
+ all_dependent_configs = [ ":rust_shim_config" ]
+}
+
+cxxbridge_header("controller_bridge_header") {
+ sources = [ "src/controller.rs" ]
+ all_dependent_configs = [ ":rust_shim_config" ]
}
"//bt/gd/common:BluetoothCommonSources",
"//bt/hci",
"//bt/osi",
+ "//bt/main/shim",
"//bt/packet",
"//bt/stack",
"//bt/udrv",
--- /dev/null
+#
+# Copyright 2021 Google, Inc.
+#
+# 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.
+
+source_set("shim") {
+ sources = [
+ "acl.cc",
+ "acl_api.cc",
+ "acl_legacy_interface.cc",
+ "btm.cc",
+ "btm_api.cc",
+ "config.cc",
+ "controller.cc",
+ "dumpsys.cc",
+ "entry.cc",
+ "hci_layer.cc",
+ "l2c_api.cc",
+ "le_advertising_manager.cc",
+ "le_scanning_manager.cc",
+ "link_policy.cc",
+ "shim.cc",
+ "stack.cc",
+ ]
+
+ include_dirs = [
+ "//bt",
+ "//bt/btif/include",
+ "//bt/gd",
+ "//bt/gd/rust/shim",
+ "//bt/internal_include",
+ "//bt/stack/include",
+ "//bt/types",
+ ]
+
+ deps = [
+ "//bt/gd:dumpsys",
+ "//bt/gd/common:BluetoothCommonSources",
+ "//bt/gd/dumpsys/bundler:bundler_generated",
+ "//bt/gd/hci:BluetoothHciSources",
+ "//bt/gd/os:BluetoothOsSources_linux_generic",
+ "//bt/gd/packet:BluetoothPacketSources",
+ "//bt/gd/rust/shim:hci_bridge_header",
+ "//bt/gd/rust/shim:init_flags_bridge_header",
+ "//bt/gd/rust/shim:shim_bridge_header",
+ "//bt/gd/rust/shim:message_loop_thread_bridge_header",
+ "//bt/gd/rust/shim:controller_bridge_header",
+ "//bt/osi",
+ "//bt/stack",
+ "//bt/types",
+ ]
+
+ configs += [ "//bt:target_defaults" ]
+}
"device.cc",
]
+ deps = [
+ "//bt/gd/rust/shim:message_loop_thread_bridge_header",
+ ]
+
configs += [
":avrcp_config"
]