mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
66 lines
2.0 KiB
Python
66 lines
2.0 KiB
Python
# Copyright 2022-2023 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.
|
|
|
|
load("@rules_apple//apple:ios.bzl", "ios_unit_test")
|
|
load("@rules_cc//cc:objc_library.bzl", "objc_library")
|
|
load("//third_party/nearby:minimum_os.bzl", "IOS_LATEST_TEST_RUNNER", "IOS_MINIMUM_OS")
|
|
load("//tools/build_defs/swift:swift_library.bzl", "swift_library")
|
|
|
|
licenses(["notice"])
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
objc_library(
|
|
name = "NearbyCoreAdapter",
|
|
srcs = glob([
|
|
"Sources/*.mm",
|
|
"Sources/*.m",
|
|
"Sources/*.h",
|
|
]),
|
|
hdrs = glob(["Sources/Public/**/*.h"]),
|
|
features = ["-layering_check"],
|
|
module_name = "NearbyCoreAdapter",
|
|
deps = [
|
|
"//connections:core",
|
|
"//connections:core_types",
|
|
"//connections/implementation/flags:connections_flags",
|
|
"//internal/flags:nearby_flags",
|
|
"//internal/platform:base",
|
|
"//internal/platform:mac_address",
|
|
"//internal/platform/implementation/apple", # buildcleaner: keep
|
|
"//internal/platform/implementation/apple/Log:GNCLogger",
|
|
"//third_party/apple_frameworks:Foundation",
|
|
"@com_google_absl//absl/types:span",
|
|
],
|
|
)
|
|
|
|
swift_library(
|
|
name = "TestsLib",
|
|
testonly = 1,
|
|
srcs = ["Tests/BuildTests.swift"],
|
|
deps = [
|
|
":NearbyCoreAdapter",
|
|
"//third_party/apple_frameworks:XCTest",
|
|
],
|
|
)
|
|
|
|
ios_unit_test(
|
|
name = "Tests",
|
|
minimum_os_version = IOS_MINIMUM_OS,
|
|
runner = IOS_LATEST_TEST_RUNNER,
|
|
deps = [
|
|
":TestsLib",
|
|
],
|
|
)
|