| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//third_party/protobuf/proto_library.gni") |
| |
| assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos") |
| |
| component("biod") { |
| defines = [ "IS_BIOD_CLIENT_IMPL" ] |
| |
| public_deps = [ |
| ":biod_proto", |
| "//chromeos/dbus:common", |
| ] |
| |
| deps = [ |
| "//base", |
| "//dbus", |
| ] |
| |
| sources = [ |
| "biod_client.cc", |
| "biod_client.h", |
| "fake_biod_client.cc", |
| "fake_biod_client.h", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| public_deps = [ |
| ":biod", |
| ] |
| deps = [ |
| ":biod_proto", |
| "//base", |
| "//dbus", |
| ] |
| sources = [ |
| "test_utils.cc", |
| "test_utils.h", |
| ] |
| } |
| |
| proto_library("biod_proto") { |
| sources = [ |
| "//third_party/cros_system_api/dbus/biod/constants.proto", |
| "//third_party/cros_system_api/dbus/biod/messages.proto", |
| ] |
| |
| proto_out_dir = "chromeos/dbus/biod" |
| } |