| # 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/components.gni") |
| import("//src/sys/core/build/core_shard.gni") |
| |
| fuchsia_component("component") { |
| component_name = "network" |
| manifest = "meta/network.cml" |
| deps = [ |
| "dhcp:component", |
| "dhcpv6/client:component", |
| "dns:component", |
| "http-client:component", |
| "netcfg:component-basic", |
| "netstack:component", |
| ] |
| } |
| |
| fuchsia_package("network") { |
| deps = [ ":component" ] |
| } |
| |
| # TODO(https://fxbug.dev/87819): Introduce a network-basic component and include |
| # it here instead of the regular network realm. |
| fuchsia_package("network-basic") { |
| package_name = "network" |
| deps = [ ":component" ] |
| } |
| |
| core_shard("virtualization-core-shard") { |
| shard_file = "meta/virtualization.core_shard.cml" |
| } |
| |
| # TODO(https://fxbug.dev/85821): Remove once out-of-tree users no longer |
| # reference v1 components. |
| fuchsia_package("network-legacy-deprecated") { |
| deps = [ |
| "dns:component-legacy", |
| "netstack:component-legacy", |
| ] |
| } |
| |
| # TODO(https://fxbug.dev/85742): Remove this target once out-of-tree |
| # integration tests inject components from network-legacy-deprecated. |
| group("integration-test-deps") { |
| deps = [ "netstack" ] |
| } |
| |
| group("drivers") { |
| deps = [ "drivers/network-device" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| "dhcp:tests", |
| "dhcpv6:tests", |
| "dns:tests", |
| "drivers:tests", |
| "http-client:tests", |
| "lib:tests", |
| "mdns:tests", |
| "net-cli:tests", |
| "netcfg:tests", |
| "netdump:tests", |
| "netstack:tests", |
| "netstack3:tests", |
| "testing:tests", |
| "tests", |
| "tools:tests", |
| "tun:tests", |
| ] |
| } |