summaryrefslogtreecommitdiffstats
path: root/remoting/host/it2me/BUILD.gn
blob: a584c7218fa1d1e80188544c19fc2d58f0d37a98 (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
# Copyright 2014 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/features.gni")
import("//remoting/remoting_host.gni")
import("//remoting/remoting_srcs.gni")

source_set("common") {
  sources = rebase_path(
          remoting_host_srcs_gypi_values.remoting_it2me_host_static_sources,
          ".",
          "//remoting")

  configs += [
    "//build/config/compiler:wexit_time_destructors",
    "//remoting:version",
  ]

  deps = [
    "//base:i18n",
    "//net:net",
    "//remoting/base",
    "//remoting/host",
    "//remoting/protocol",
    "//remoting/resources",
  ]
}

if (!is_win && !is_chromeos && enable_remoting_host) {
  executable("remote_assistance_host") {
    sources = [
      "it2me_native_messaging_host_entry_point.cc",
      "it2me_native_messaging_host_main.cc",
      "it2me_native_messaging_host_main.h",
    ]

    configs += [
      "//build/config/compiler:wexit_time_destructors",
      "//remoting:version",
    ]

    deps = [
      ":common",
      "//build/config/sanitizers:deps",
      "//remoting/host",
      "//remoting/host/native_messaging",
      "//remoting/proto",
      "//ui/gfx",
    ]

    if (enable_webrtc) {
      deps += [ "//third_party/libjingle:libjingle_webrtc" ]
    }

    if (is_desktop_linux) {
      deps += [ "//build/config/linux/gtk2" ]
    }
  }
}