chromium/chromeos/dbus/u2f/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("//third_party/protobuf/proto_library.gni")

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

component("u2f") {
  output_name = "chromeos_dbus_u2f"
  defines = [ "IS_CHROMEOS_DBUS_U2F_IMPL" ]
  deps = [
    ":u2f_proto",
    "//base",
    "//chromeos/dbus/common",
    "//chromeos/dbus/constants:constants",
    "//chromeos/dbus/tpm_manager",
    "//chromeos/dbus/tpm_manager:tpm_manager_proto",
    "//dbus",
  ]
  sources = [
    "fake_u2f_client.cc",
    "fake_u2f_client.h",
    "u2f_client.cc",
    "u2f_client.h",
  ]
}
proto_library("u2f_proto") {
  sources = [ "//third_party/cros_system_api/dbus/u2f/u2f_interface.proto" ]
  proto_out_dir = "chromeos/dbus/u2f"
}