blob: 39c420d5f56c160713dead7ae5e4b45ee7ea99e5 [file] [log] [blame] [edit]
# Copyright 2018 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//common-mk/pkg_config.gni")
group("all") {
deps = [
":cryptohome-test-tool",
":cryptohome-tpm-live-test",
]
}
executable("cryptohome-test-tool") {
sources = [
"../cryptorecovery/fake_recovery_mediator_crypto.cc",
"../cryptorecovery/inclusion_proof.cc",
"../cryptorecovery/inclusion_proof_test_util.cc",
"../cryptorecovery/recovery_crypto_hsm_cbor_serialization.cc",
"cryptohome-test-tool.cc",
]
install_path = "sbin"
libs = [ "cbor" ]
deps = [
"//cryptohome/libs:libcrosplatform",
"//cryptohome/libs:libcrostpm",
"//cryptohome/libs:libcryptohome",
]
}
executable("cryptohome-tpm-live-test") {
# TODO(b/238114321): Reuse fake/test libraries from the parent GN file instead
# of listing all their sources here.
sources = [
"cryptohome-tpm-live-test.cc",
"tpm_live_test.cc",
]
configs += [ "//common-mk:test" ]
install_path = "sbin"
deps = [
"//cryptohome/libs:libcrostpm",
"//cryptohome/libs:libcryptohome",
]
pkg_deps = [
"libbrillo",
"libbrillo-test",
"libchrome",
"libchrome-test",
"libmetrics",
"libstorage_fake_platform",
]
}