blob: 49e5bc257ea38f05766274562a6cf910f1f48c7d [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/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.device:fuchsia.device_c",
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet_c",
"//sdk/lib/fdio",
"//zircon/public/lib/zircon-internal",
]
configs += [ "//build/config:all_source" ]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
zx_library("netifc-discover") {
sdk = "source"
sdk_headers = [ "inet6/netifc-discover.h" ]
sources = [ "netifc-discover.cc" ]
deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device_c",
"//sdk/fidl/fuchsia.device:fuchsia.device_llcpp",
"//sdk/fidl/fuchsia.hardware.ethernet:fuchsia.hardware.ethernet_c",
"//sdk/lib/fdio",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
group("tests") {
testonly = true
deps = [ "test:tests" ]
}