chromium/chromeos/ash/components/dbus/resourced/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 cannot depend on //chromeos/ash")

component("resourced") {
  defines = [ "IS_RESOURCED_IMPL" ]

  deps = [
    ":resourced_proto",
    "//base",
    "//chromeos/dbus/common",
    "//components/memory_pressure",
    "//dbus",
  ]

  sources = [
    "fake_resourced_client.cc",
    "fake_resourced_client.h",
    "resourced_client.cc",
    "resourced_client.h",
  ]
}

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

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