Revert 281282 "Revert 281133 "chrome.hid: enrich model with repo..."
[chromium-blink-merge.git] / device / hid / hid.gyp
blob2db80fd0592f32ea100d36452a112efe3e3de43c
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'device_hid',
12       'type': 'static_library',
13       'include_dirs': [
14         '../..',
15       ],
16       'sources': [
17         'device_monitor_linux.cc',
18         'device_monitor_linux.h',
19         'hid_collection_info.cc',
20         'hid_collection_info.h',
21         'hid_connection.cc',
22         'hid_connection.h',
23         'hid_connection_linux.cc',
24         'hid_connection_linux.h',
25         'hid_connection_mac.cc',
26         'hid_connection_mac.h',
27         'hid_connection_win.cc',
28         'hid_connection_win.h',
29         'hid_device_info.cc',
30         'hid_device_info.h',
31         'hid_report_descriptor.cc',
32         'hid_report_descriptor.h',
33         'hid_report_descriptor_item.cc',
34         'hid_report_descriptor_item.h',
35         'hid_service.cc',
36         'hid_service.h',
37         'hid_service_linux.cc',
38         'hid_service_linux.h',
39         'hid_service_mac.cc',
40         'hid_service_mac.h',
41         'hid_service_win.cc',
42         'hid_service_win.h',
43         'hid_usage_and_page.cc',
44         'hid_usage_and_page.h',
45         'input_service_linux.cc',
46         'input_service_linux.h',
47       ],
48       'conditions': [
49         ['use_udev==1', {
50           'dependencies': [
51             '../udev_linux/udev.gyp:udev_linux',
52           ],
53         }, {  # use_udev==0
54           # The Linux implementation is based on Udev.
55           'sources!': [
56             'device_monitor_linux.cc',
57             'device_monitor_linux.h',
58             'hid_service_linux.cc',
59             'hid_service_linux.h',
60             'input_service_linux.cc',
61             'input_service_linux.h',
62           ],
63         }],
64       ],
65     },
66   ],