blob: a72f152e8e2c8166c59d493cbec5c9c02a75595e [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxb/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//build/unification/images/migrated_manifest.gni")
test("zxcrypt") {
# Dependent manifests unfortunately cannot be marked as `testonly`.
# TODO(44278): Remove when converting this file to proper GN build idioms.
if (is_fuchsia) {
testonly = false
}
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
sources = [
"main.c",
"test-device.cc",
"volume.cc",
"zxcrypt.cc",
]
deps = [
"//third_party/boringssl",
"//zircon/public/lib/block-client",
"//zircon/public/lib/ddk",
"//zircon/public/lib/devmgr-integration-test",
"//zircon/public/lib/digest",
"//zircon/public/lib/fbl",
"//zircon/public/lib/fdio",
"//zircon/public/lib/fdio-caller",
"//zircon/public/lib/fs",
"//zircon/public/lib/fs-management",
"//zircon/public/lib/fvm",
"//zircon/public/lib/fzl",
"//zircon/public/lib/gpt",
"//zircon/public/lib/kms-stateless",
"//zircon/public/lib/pretty",
"//zircon/public/lib/ramdevice-client",
"//zircon/public/lib/unittest",
"//zircon/public/lib/zircon-internal",
"//zircon/public/lib/zx",
"//zircon/public/lib/zxcrypt-fdio",
"//zircon/system/fidl/fuchsia-device:llcpp",
"//zircon/system/fidl/fuchsia-hardware-ramdisk:c",
]
}
migrated_manifest("zxcrypt-manifest") {
deps = [ ":zxcrypt" ]
}