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("//build/config/ui.gni")
7 import("//remoting/remoting_version.gni")
9 static_library("host") {
10 gypi_values = exec_script("//build/gypi_to_gn.py",
11 [ rebase_path("../remoting_host_srcs.gypi") ],
13 [ "../remoting_host_srcs.gypi" ])
15 sources = rebase_path(gypi_values.remoting_host_sources, ".", "//remoting")
19 configs += [ "//build/config/compiler:wexit_time_destructors" ]
21 defines = [ "WEBRTC_CHROMIUM_BUILD" ]
25 "//components/policy:policy",
26 "//components/policy:policy_component_common",
31 "//remoting/protocol",
32 "//remoting/resources",
33 "//ui/events/platform",
34 "//ui/events:dom4_keycode_converter",
43 #TODO : (kelvinp) Add GTK to the configs.
44 "//build/config/linux:x11",
49 "linux/x_server_clipboard.cc",
50 "linux/x_server_clipboard.h",
70 sources -= [ "input_injector_x11.cc" ]
71 deps += [ "//ui/ozone" ]
75 "input_injector_chromeos.cc",
76 "input_injector_chromeos.h",
77 "linux/x_server_clipboard.cc",
78 "linux/x_server_clipboard.h",
83 "continue_window_linux.cc",
84 "disconnect_window_linux.cc",
85 "local_input_monitor_x11.cc",
86 "remoting_me2me_host.cc",
92 "HOST_BUNDLE_NAME=\"$host_bundle_name\"",
93 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"",
97 "Accelerate.framework",
101 deps += [ "//google_toolbox_for_mac" ]
106 "//third_party/libjingle:libpeerconnection",
107 "//third_party/webrtc/modules/desktop_capture",
110 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting")