blob: 3079040016b3ecf351794b5f3a762d075c84135d [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, "*")
sdk_publishable = "excluded"
}
# 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" ]
}
}