blob: a44f81ebe284c191ae8b023192dd9e64f7883e63 [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/zircon/zx_library.gni")
# Common variables for our SDK and in-tree targets.
common_vars = {
sdk = "source"
sdk_headers = [ "lib/zbi/zbi.h" ]
sources = [ "zbi.c" ]
public_deps = [ "//sdk/lib/zbi-format" ]
}
# SDK library.
zx_library("zbi") {
forward_variables_from(common_vars, "*")
# TODO(https://fxbug.dev/331991540): Determine an appropriate solution for building firmware SDK.
sdk_publishable = "firmware_sdk"
}
# In-tree library.
# This is necessary because in-tree targets use //zircon/system/public
# as the sysroot dependency, which is not available to sdk_publishable
# targets.
zx_library("in_tree") {
forward_variables_from(common_vars, "*")
deps = [ "//zircon/system/public" ]
if (is_kernel) {
public_deps += [ "//zircon/kernel/lib/libc" ]
}
}