1# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("../../../build/config/services.gni")
6assert(use_mdns_responder)
7
8source_set("mdns_interface") {
9  sources = [
10    "domain_name.cc",
11    "domain_name.h",
12    "mdns_responder_adapter.cc",
13    "mdns_responder_adapter.h",
14  ]
15
16  public_deps = [
17    "../../../../platform",
18    "../../../../third_party/abseil",
19    "../../../../util",
20  ]
21}
22
23source_set("unittests") {
24  testonly = true
25
26  sources = [
27    "domain_name_unittest.cc",
28  ]
29
30  deps = [
31    ":mdns_interface",
32    "../../../../third_party/googletest:gmock",
33    "../../../../third_party/googletest:gtest",
34  ]
35
36  sources += [ "mdns_responder_adapter_impl_unittest.cc" ]
37  deps += [ ":mdns" ]
38}
39
40executable("mdns_demo") {
41  sources = [
42    "mdns_demo.cc",
43  ]
44
45  deps = [
46    ":mdns",
47  ]
48}
49
50source_set("mdns") {
51  sources = [
52    "mdns_responder_adapter_impl.cc",
53    "mdns_responder_adapter_impl.h",
54    "mdns_responder_platform.cc",
55    "mdns_responder_platform.h",
56  ]
57
58  public_deps = [
59    ":mdns_interface",
60    "../../../../platform",
61    "../../../../util",
62  ]
63
64  deps = [
65    "../../../../third_party/mDNSResponder:core",
66  ]
67}
68