Reapply "removed bluetooth_classic_socket specific stream semantics. all linux sockets should use stream.h. improved stream semantics in stream.h"

This reverts commit 844bf42e7e.
This commit is contained in:
lasan
2026-06-11 13:04:11 +05:30
parent 844bf42e7e
commit d7f703a991
11 changed files with 232 additions and 426 deletions
+18 -20
View File
@@ -12,25 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
#refresh_compile_commands(
# name = "refresh_compile_commands",
#
# # Specify the targets of interest.
# # For example, specify a dict of targets and any flags required to build.
# targets = {
# ":linux": "-s --check_visibility=false --spawn_strategy=standalone --verbose_failures --strip=never --copt=-O0 --copt=-g --copt=-fno-omit-frame-pointer",
# "//connections:core": "-s --check_visibility=false --spawn_strategy=standalone --verbose_failures --strip=never --copt=-O0 --copt=-g --copt=-fno-omit-frame-pointer",
# "//connections/file_share:file_share": "-s --check_visibility=false --spawn_strategy=standalone --verbose_failures --strip=never --copt=-O0 --copt=-g --copt=-fno-omit-frame-pointer",
# },
# # No need to add flags already in .bazelrc. They're automatically picked up.
# # If you don't need flags, a list of targets is also okay, as is a single target string.
# # Wildcard patterns, like //... for everything, *are* allowed here, just like a build.
# # As are additional targets (+) and subtractions (-), like in bazel query https://docs.bazel.build/versions/main/query.html#expressions
# # And if you're working on a header-only library, specify a test or binary target that compiles it.
#)
refresh_compile_commands(
name = "refresh_compile_commands_linux",
# Specify the targets of interest.
# For example, specify a dict of targets and any flags required to build.
targets = {
":linux": "-s --check_visibility=false --spawn_strategy=standalone --verbose_failures --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 --cxxopt='-fvisibility-inlines-hidden'",
},
# No need to add flags already in .bazelrc. They're automatically picked up.
# If you don't need flags, a list of targets is also okay, as is a single target string.
# Wildcard patterns, like //... for everything, *are* allowed here, just like a build.
# As are additional targets (+) and subtractions (-), like in bazel query https://docs.bazel.build/versions/main/query.html#expressions
# And if you're working on a header-only library, specify a test or binary target that compiles it.
)
licenses(["notice"])
@@ -200,7 +199,6 @@ cc_library(
"ble_l2cap_socket.cc",
"bluetooth_adapter.cc",
"bluetooth_bluez_profile.cc",
"bluetooth_classic_socket.cc",
"bluetooth_classic_device.cc",
"bluetooth_classic_medium.cc",
"bluetooth_classic_server_socket.cc",
@@ -314,7 +312,7 @@ cc_test(
# "bluetooth_adapter_test.cc",
"crypto_test.cc",
# "executor_test.cc",
"file_path_test.cc",
# "file_path_test.cc",
# "http_loader_test.cc",
# "preferences_manager_test.cc",
# "preferences_repository_test.cc",