summaryrefslogtreecommitdiff
path: root/chromium/remoting/host/input_monitor/BUILD.gn
blob: c25d0c5cb097a1537a08a2a51c7b6fb74b774445 (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
# 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("//remoting/build/config/remoting_build.gni")

source_set("input_monitor") {
  public = [ "local_input_monitor.h" ]

  sources = [
    "local_hotkey_input_monitor.h",
    "local_hotkey_input_monitor_chromeos.cc",
    "local_hotkey_input_monitor_mac.mm",
    "local_hotkey_input_monitor_win.cc",
    "local_hotkey_input_monitor_x11.cc",
    "local_input_monitor.cc",
    "local_input_monitor_win.cc",
    "local_input_monitor_win.h",
    "local_keyboard_input_monitor.h",
    "local_keyboard_input_monitor_chromeos.cc",
    "local_keyboard_input_monitor_mac.mm",
    "local_keyboard_input_monitor_win.cc",
    "local_keyboard_input_monitor_x11.cc",
    "local_mouse_input_monitor_mac.mm",
    "local_mouse_input_monitor_win.cc",
    "local_mouse_input_monitor_x11.cc",
    "local_pointer_input_monitor.h",
    "local_pointer_input_monitor_chromeos.cc",
  ]

  deps = [
    "//remoting/proto",
    "//third_party/webrtc_overrides:webrtc_component",
    "//ui/events",
  ]

  if (use_ozone) {
    deps += [ "//ui/ozone" ]
  }

  if (is_mac) {
    deps += [ "//third_party/google_toolbox_for_mac" ]
  }

  if (!use_x11 || (is_chromeos && !use_ozone)) {
    sources -= [
      "local_hotkey_input_monitor_x11.cc",
      "local_keyboard_input_monitor_x11.cc",
      "local_mouse_input_monitor_x11.cc",
    ]
  }
}