Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / remoting / host / it2me / BUILD.gn
blob5c1a5f1d40062c4136aecb8782c31fb626c52bb1
1 # Copyright 2014 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.
5 import("//build/config/features.gni")
6 import("//remoting/remoting_host.gni")
7 import("//remoting/remoting_srcs.gni")
9 source_set("common") {
10   sources = rebase_path(
11           remoting_host_srcs_gypi_values.remoting_it2me_host_static_sources,
12           ".",
13           "//remoting")
15   configs += [
16     "//build/config/compiler:wexit_time_destructors",
17     "//remoting:version",
18   ]
20   deps = [
21     "//base:i18n",
22     "//net:net",
23     "//remoting/base",
24     "//remoting/host",
25     "//remoting/protocol",
26     "//remoting/resources",
27   ]
30 if (!is_win && enable_remoting_host) {
31   executable("remote_assistance_host") {
32     sources = [
33       "it2me_native_messaging_host_entry_point.cc",
34       "it2me_native_messaging_host_main.cc",
35       "it2me_native_messaging_host_main.h",
36     ]
38     configs += [
39       "//build/config/compiler:wexit_time_destructors",
40       "//remoting:version",
41     ]
43     deps = [
44       ":common",
45       "//build/config/sanitizers:deps",
46       "//remoting/host",
47       "//remoting/host/native_messaging",
48       "//remoting/proto",
49       "//ui/gfx",
50     ]
52     if (enable_webrtc) {
53       deps += [ "//third_party/libjingle:libjingle_webrtc" ]
54     }
56     if (is_desktop_linux) {
57       deps += [ "//build/config/linux/gtk2" ]
58     }
59   }