mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
93 lines
2.5 KiB
Python
93 lines
2.5 KiB
Python
# Copyright 2020 Google LLC
|
|
#
|
|
# 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
|
|
#
|
|
# https://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.
|
|
|
|
cc_library(
|
|
name = "mediums",
|
|
srcs = [
|
|
"advertisement_read_result.cc",
|
|
"ble_advertisement.cc",
|
|
"ble_advertisement_header.cc",
|
|
"ble_packet.cc",
|
|
"bloom_filter.cc",
|
|
"bluetooth_radio.cc",
|
|
"uuid.cc",
|
|
],
|
|
hdrs = [
|
|
"advertisement_read_result.h",
|
|
"ble_advertisement.h",
|
|
"ble_advertisement_header.h",
|
|
"ble_packet.h",
|
|
"ble_peripheral.h",
|
|
"bloom_filter.h",
|
|
"bluetooth_radio.h",
|
|
"lost_entity_tracker.h",
|
|
"uuid.h",
|
|
],
|
|
visibility = [
|
|
"//core_v2/internal:__pkg__",
|
|
],
|
|
deps = [
|
|
"//platform_v2/base",
|
|
"//platform_v2/public:comm",
|
|
"//platform_v2/public:logging",
|
|
"//platform_v2/public:types",
|
|
"//absl/container:flat_hash_map",
|
|
"//absl/container:flat_hash_set",
|
|
"//absl/numeric:int128",
|
|
"//absl/strings",
|
|
"//absl/time",
|
|
"//smhasher:libmurmur3",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "utils",
|
|
srcs = ["utils.cc"],
|
|
hdrs = ["utils.h"],
|
|
visibility = [
|
|
"//core_v2/internal/mediums/webrtc:__pkg__",
|
|
],
|
|
deps = [
|
|
"//platform_v2/base",
|
|
"//platform_v2/public:comm",
|
|
"//platform_v2/public:types",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "core_v2_internal_mediums_test",
|
|
srcs = [
|
|
"advertisement_read_result_test.cc",
|
|
"ble_advertisement_header_test.cc",
|
|
"ble_advertisement_test.cc",
|
|
"ble_packet_test.cc",
|
|
"ble_peripheral_test.cc",
|
|
"bloom_filter_test.cc",
|
|
"bluetooth_radio_test.cc",
|
|
"lost_entity_tracker_test.cc",
|
|
"uuid_test.cc",
|
|
],
|
|
shard_count = 16,
|
|
deps = [
|
|
":mediums",
|
|
"//platform_v2/base",
|
|
"//platform_v2/impl/g3", # build_cleaner: keep
|
|
"//platform_v2/public:comm",
|
|
"//platform_v2/public:logging",
|
|
"//platform_v2/public:types",
|
|
"//testing/base/public:gunit_main",
|
|
"//absl/time",
|
|
],
|
|
)
|