chromium/chromeos/ash/components/dbus/patchpanel/BUILD.gn

# Copyright 2022 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/ui.gni")
import("//third_party/protobuf/proto_library.gni")

assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //chromeos")

component("patchpanel") {
  defines = [ "IS_PATCHPANEL_IMPL" ]

  deps = [
    ":patchpanel_proto",
    "//base",
    "//chromeos/dbus/common",
    "//dbus",
  ]

  sources = [
    "fake_patchpanel_client.cc",
    "fake_patchpanel_client.h",
    "patchpanel_client.cc",
    "patchpanel_client.h",
  ]
}

proto_library("patchpanel_proto") {
  proto_in_dir = "//third_party/cros_system_api/dbus/patchpanel"
  sources = [
    "${proto_in_dir}/patchpanel_service.proto",
    "${proto_in_dir}/traffic_annotation.proto",
  ]

  proto_out_dir = "chromeos/ash/components/dbus/patchpanel"
}