blob: 13f392daa7de63b7b8dfd21a6f6699a3bb86489e [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/36548. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/unification/zx_library.gni")
zx_library("inet6") {
sdk = "source"
sdk_headers = [
"inet6/inet6.h",
"inet6/netifc.h",
]
sources = [
"checksum.c",
"eth-client.c",
"inet6.c",
"netifc.c",
]
deps = [
":netifc-discover",
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet_c",
"//zircon/public/lib/fdio",
"//zircon/public/lib/zircon-internal",
"//zircon/system/fidl/fuchsia-device:c",
]
defines = [ "_ALL_SOURCE" ]
}
zx_library("netifc-discover") {
sdk = "source"
sdk_headers = [ "inet6/netifc-discover.h" ]
sources = [ "netifc-discover.cc" ]
deps = [
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet_c",
"//zircon/public/lib/fdio",
"//zircon/system/fidl/fuchsia-device:c",
"//zircon/system/fidl/fuchsia-device:llcpp",
]
}