| # Copyright 2016 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/package.gni") |
| |
| executable("bin") { |
| output_name = "mdns_service" |
| |
| sources = [ |
| "fidl_interface_monitor.cc", |
| "fidl_interface_monitor.h", |
| "host_name.cc", |
| "host_name.h", |
| "main.cc", |
| "mdns_fidl_util.cc", |
| "mdns_fidl_util.h", |
| "mdns_service_impl.cc", |
| "mdns_service_impl.h", |
| ] |
| |
| deps = [ |
| ":lib", |
| "//garnet/bin/media/util", |
| "//garnet/public/lib/component/cpp", |
| "//garnet/public/fidl/fuchsia.sys", |
| "//garnet/public/lib/fsl", |
| "//garnet/public/lib/fxl", |
| "//garnet/public/fidl/fuchsia.mdns", |
| "//garnet/public/fidl/fuchsia.netstack", |
| "//garnet/public/lib/svc/cpp", |
| "//zircon/public/lib/async-loop-cpp", |
| ] |
| } |
| |
| source_set("lib") { |
| sources = [ |
| "address_prober.cc", |
| "address_prober.h", |
| "address_responder.cc", |
| "address_responder.h", |
| "dns_formatting.cc", |
| "dns_formatting.h", |
| "dns_message.cc", |
| "dns_message.h", |
| "dns_reading.cc", |
| "dns_reading.h", |
| "dns_writing.cc", |
| "dns_writing.h", |
| "host_name_resolver.cc", |
| "host_name_resolver.h", |
| "instance_prober.cc", |
| "instance_prober.h", |
| "instance_requestor.cc", |
| "instance_requestor.h", |
| "instance_responder.cc", |
| "instance_responder.h", |
| "interface_monitor.h", |
| "mdns.cc", |
| "mdns.h", |
| "mdns_addresses.cc", |
| "mdns_addresses.h", |
| "mdns_agent.h", |
| "mdns_interface_transceiver.cc", |
| "mdns_interface_transceiver.h", |
| "mdns_interface_transceiver_v4.cc", |
| "mdns_interface_transceiver_v4.h", |
| "mdns_interface_transceiver_v6.cc", |
| "mdns_interface_transceiver_v6.h", |
| "mdns_names.cc", |
| "mdns_names.h", |
| "mdns_transceiver.cc", |
| "mdns_transceiver.h", |
| "packet_reader.cc", |
| "packet_reader.h", |
| "packet_writer.cc", |
| "packet_writer.h", |
| "prober.cc", |
| "prober.h", |
| "reply_address.cc", |
| "reply_address.h", |
| "resource_renewer.cc", |
| "resource_renewer.h", |
| ] |
| |
| deps = [ |
| "//garnet/public/lib/fostr", |
| "//garnet/public/lib/fsl", |
| "//garnet/public/lib/fxl", |
| "//garnet/public/fidl/fuchsia.netstack", |
| ] |
| |
| public_deps = [ |
| "//garnet/lib/inet", |
| "//zircon/public/lib/fit", |
| ] |
| } |
| |
| package("service") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binary = "mdns_service" |
| |
| package_name = "mdns_service" |
| |
| meta = [ |
| { |
| path = rebase_path("meta/mdns_service.cmx") |
| dest = "mdns_service.cmx" |
| }, |
| ] |
| } |
| |
| package("config") { |
| deprecated_system_image = true |
| package_name = "mdns_config" |
| resources = [ |
| { |
| dest = "sysmgr/mdns.config" |
| path = rebase_path("service.config") |
| }, |
| ] |
| } |