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

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

assert(is_chromeos_ash, "Non-Chrome-OS builds must not depend on //chromeos")

component("runtime_probe") {
  output_name = "ash_runtime_probe"
  defines = [ "IS_ASH_DBUS_RUNTIME_PROBE_IMPL" ]
  deps = [
    ":proto",
    "//base",
    "//chromeos/dbus/common",
    "//dbus",
  ]
  sources = [
    "fake_runtime_probe_client.cc",
    "fake_runtime_probe_client.h",
    "runtime_probe_client.cc",
    "runtime_probe_client.h",
  ]
}

proto_library("proto") {
  sources =
      [ "//third_party/cros_system_api/dbus/runtime_probe/runtime_probe.proto" ]

  # chromeos side uses full runtime, so we don't specify lite runtime in proto
  # file, instead we specify lite runtime here.
  cc_generator_options = "lite=true:"

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