blob: 65e739745b4f6d0491a20d3723e02d540e4b2512 [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.
import("//build/components.gni")
import("//build/zircon/zx_library.gni")
zx_library("gpt") {
sdk = "source"
sdk_headers = [
"gpt/c/gpt.h",
"gpt/cros.h",
"gpt/gpt.h",
"gpt/guid.h",
]
public_deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device_cpp",
"//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_cpp",
"//sdk/lib/fit-promise",
"//src/lib/uuid",
"//zircon/system/ulib/zx",
]
if (is_fuchsia) {
sources = [
"cros.cc",
"gpt.cc",
"gpt.h",
"guid.cc",
]
deps = [
"//sdk/lib/fit",
"//src/lib/utf_conversion",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/mbr",
"//zircon/system/ulib/range",
"//zircon/third_party/ulib/cksum",
"//zircon/third_party/ulib/safemath",
]
public_deps += [ "//src/storage/lib/block_client/cpp:interface" ]
friend = [ "test:*" ]
}
}
resource("golden_images") {
sources = [
"testdata/gpt.fuchsia.blk",
"testdata/gpt.linux.blk",
]
outputs = [ "data/gpt_golden/{{source_file_part}}" ]
visibility = [ "./*" ]
}
group("tests") {
testonly = true
deps = [
"component:tests",
"rust:tests",
"test",
]
}