blob: f6eeb61a7336cbe195dd4bd01050eb0d65542641 [file] [log] [blame]
# Copyright 2020 The Chromium OS 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("//common-mk/pkg_config.gni")
import("//common-mk/proto_library.gni")
group("all") {
deps = [ ":mcastd" ]
}
pkg_config("target_defaults") {
pkg_deps = [
"libbrillo",
"libchrome",
]
if (use.fuzzer) {
pkg_deps += [ "protobuf" ]
} else {
pkg_deps += [ "protobuf-lite" ]
}
}
proto_library("protos") {
configs = [ ":target_defaults" ]
proto_in_dir = ".."
proto_out_dir = "include/patchpanel"
sources = [ "${proto_in_dir}/ipc.proto" ]
}
executable("mcastd") {
sources = [
"../dns/dns_response.cc",
"../dns/io_buffer.cc",
"../multicast_forwarder.cc",
"../net_util.cc",
"../socket.cc",
"main.cc",
]
configs += [ ":target_defaults" ]
deps = [ ":protos" ]
}