12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # 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("//ash/components/tpm/buildflags.gni")
- import("//build/buildflag_header.gni")
- import("//build/config/chromeos/ui_mode.gni")
- import("//testing/test.gni")
- assert(is_chromeos_ash)
- buildflag_header("buildflags") {
- header = "buildflags.h"
- flags = [ "NSS_SLOTS_SOFTWARE_FALLBACK=$nss_slots_software_fallback" ]
- }
- component("tpm") {
- defines = [ "IS_ASH_COMPONENTS_TPM_IMPL" ]
- deps = [
- ":buildflags",
- "//base",
- "//chromeos/ash/components/cryptohome",
- "//chromeos/ash/components/dbus/cryptohome",
- "//chromeos/ash/components/dbus/cryptohome:cryptohome_proto",
- "//chromeos/ash/components/dbus/userdataauth",
- "//chromeos/ash/components/dbus/userdataauth:userdataauth_proto",
- "//chromeos/dbus/constants",
- "//chromeos/dbus/tpm_manager",
- "//chromeos/dbus/tpm_manager:tpm_manager_proto",
- "//chromeos/login/login_state",
- "//components/account_id",
- "//crypto",
- ]
- sources = [
- "prepare_tpm.cc",
- "prepare_tpm.h",
- "tpm_token_info_getter.cc",
- "tpm_token_info_getter.h",
- "tpm_token_loader.cc",
- "tpm_token_loader.h",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- deps = [
- ":tpm",
- "//base/test:test_support",
- "//chromeos/ash/components/cryptohome",
- "//chromeos/ash/components/dbus:test_support",
- "//chromeos/ash/components/dbus/cryptohome",
- "//chromeos/ash/components/dbus/cryptohome:cryptohome_proto",
- "//chromeos/ash/components/dbus/userdataauth",
- "//chromeos/ash/components/dbus/userdataauth:userdataauth_proto",
- "//chromeos/dbus/constants",
- "//chromeos/dbus/tpm_manager",
- "//chromeos/dbus/tpm_manager:tpm_manager_proto",
- "//testing/gtest",
- ]
- sources = [
- "prepare_tpm_unittest.cc",
- "tpm_token_info_getter_unittest.cc",
- ]
- }
|