aboutsummaryrefslogtreecommitdiff
path: root/osp/impl/discovery/mdns/BUILD.gn
blob: cd051d1750dc6466a1e5cb4a76e2dbb84e65ef3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2018 The Chromium 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/config/services.gni")
assert(use_mdns_responder)

source_set("mdns_interface") {
  sources = [
    "domain_name.cc",
    "domain_name.h",
    "mdns_responder_adapter.cc",
    "mdns_responder_adapter.h",
  ]

  public_deps = [
    "../../../../platform",
    "../../../../third_party/abseil",
    "../../../../util",
  ]
}

source_set("unittests") {
  testonly = true

  sources = [
    "domain_name_unittest.cc",
  ]

  deps = [
    ":mdns_interface",
    "../../../../third_party/googletest:gmock",
    "../../../../third_party/googletest:gtest",
  ]

  sources += [ "mdns_responder_adapter_impl_unittest.cc" ]
  deps += [ ":mdns" ]
}

executable("mdns_demo") {
  sources = [
    "mdns_demo.cc",
  ]

  deps = [
    ":mdns",
  ]
}

source_set("mdns") {
  sources = [
    "mdns_responder_adapter_impl.cc",
    "mdns_responder_adapter_impl.h",
    "mdns_responder_platform.cc",
    "mdns_responder_platform.h",
  ]

  public_deps = [
    ":mdns_interface",
    "../../../../platform",
    "../../../../util",
  ]

  deps = [
    "../../../../third_party/mDNSResponder:core",
  ]
}