chromium/chromeos/ash/components/nearby/common/BUILD.gn

# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash, "Non ChromeOS builds must not depend on //chromeos/ash")

component("common") {
  output_name = "nearby_common"
  defines = [ "IS_CHROMEOS_ASH_COMPONENTS_NEARBY_COMMON_IMPL" ]
  deps = [
    "//chromeos/ash/components/nearby/common/client",
    "//chromeos/ash/components/nearby/common/connections_manager",
    "//chromeos/ash/components/nearby/common/scheduling",
  ]
}

source_set("unit_tests") {
  testonly = true

  deps = [
    ":common",
    "//chromeos/ash/components/nearby/common/client:unit_tests",
    "//chromeos/ash/components/nearby/common/connections_manager:unit_tests",
    "//chromeos/ash/components/nearby/common/scheduling:unit_tests",
  ]
}