summaryrefslogtreecommitdiffstats
path: root/device/hid/hid.gyp
blob: c12845a0fa475d2804e1efff1183d3150ce4508c (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 2013 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.

{
  'variables': {
    'chromium_code': 1,
  },
  'targets': [
    {
      'target_name': 'device_hid',
      'type': 'static_library',
      'include_dirs': [
        '../..',
      ],
      'sources': [
        'device_monitor_linux.cc',
        'device_monitor_linux.h',
        'hid_connection.cc',
        'hid_connection.h',
        'hid_connection_linux.cc',
        'hid_connection_linux.h',
        'hid_connection_mac.cc',
        'hid_connection_mac.h',
        'hid_connection_win.cc',
        'hid_connection_win.h',
        'hid_device_info.cc',
        'hid_device_info.h',
        'hid_report_descriptor.cc',
        'hid_report_descriptor.h',
        'hid_report_descriptor_item.cc',
        'hid_report_descriptor_item.h',
        'hid_service.cc',
        'hid_service.h',
        'hid_service_linux.cc',
        'hid_service_linux.h',
        'hid_service_mac.cc',
        'hid_service_mac.h',
        'hid_service_win.cc',
        'hid_service_win.h',
        'hid_usage_and_page.cc',
        'hid_usage_and_page.h',
        'hid_utils_mac.cc',
        'hid_utils_mac.h',
        'input_service_linux.cc',
        'input_service_linux.h',
      ],
      'conditions': [
        ['use_udev==1', {
          'dependencies': [
            '../udev_linux/udev.gyp:udev_linux',
          ],
        }, {  # use_udev==0
          # The Linux implementation is based on Udev.
          'sources!': [
            'device_monitor_linux.cc',
            'device_monitor_linux.h',
            'hid_service_linux.cc',
            'hid_service_linux.h',
            'input_service_linux.cc',
            'input_service_linux.h',
          ],
        }],
      ],
    },
  ],
}