blob: e8f926e8e9c8f44f0272d4ba47771196c86d5123 [file] [log] [blame] [edit]
# 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 fxbug.dev/36548. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/unification/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 = [
"//src/lib/uuid",
"//zircon/public/lib/fbl",
]
if (is_fuchsia) {
sources = [
"cros.cc",
"gpt.cc",
"guid.cc",
]
deps = [
"//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_c",
"//zircon/public/lib/fit",
"//zircon/system/ulib/mbr",
"//zircon/system/ulib/range",
"//zircon/third_party/ulib/cksum",
]
}
}