OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
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 'dependencies': [ | |
17 '../../components/components.gyp:device_event_log_component', | |
18 '../../net/net.gyp:net', | |
19 '../core/core.gyp:device_core', | |
20 ], | |
21 'sources': [ | |
22 'hid_collection_info.cc', | |
23 'hid_collection_info.h', | |
24 'hid_connection.cc', | |
25 'hid_connection.h', | |
26 'hid_connection_linux.cc', | |
27 'hid_connection_linux.h', | |
28 'hid_connection_mac.cc', | |
29 'hid_connection_mac.h', | |
30 'hid_connection_win.cc', | |
31 'hid_connection_win.h', | |
32 'hid_device_filter.cc', | |
33 'hid_device_filter.h', | |
34 'hid_device_info.cc', | |
35 'hid_device_info.h', | |
36 'hid_device_info_linux.cc', | |
37 'hid_device_info_linux.h', | |
38 'hid_report_descriptor.cc', | |
39 'hid_report_descriptor.h', | |
40 'hid_report_descriptor_item.cc', | |
41 'hid_report_descriptor_item.h', | |
42 'hid_service.cc', | |
43 'hid_service.h', | |
44 'hid_service_mac.cc', | |
45 'hid_service_mac.h', | |
46 'hid_service_win.cc', | |
47 'hid_service_win.h', | |
48 'hid_usage_and_page.cc', | |
49 'hid_usage_and_page.h', | |
50 ], | |
51 'conditions': [ | |
52 ['OS=="linux" and use_udev==1', { | |
53 'dependencies': [ | |
54 '../udev_linux/udev.gyp:udev_linux', | |
55 ], | |
56 'sources': [ | |
57 'fake_input_service_linux.cc', | |
58 'fake_input_service_linux.h', | |
59 'hid_service_linux.cc', | |
60 'hid_service_linux.h', | |
61 'input_service_linux.cc', | |
62 'input_service_linux.h', | |
63 ], | |
64 }], | |
65 ['OS=="win"', { | |
66 'all_dependent_settings': { | |
67 'msvs_settings': { | |
68 'VCLinkerTool': { | |
69 'AdditionalDependencies': [ | |
70 'hid.lib', | |
71 'setupapi.lib', | |
72 ], | |
73 }, | |
74 }, | |
75 }, | |
76 'msvs_settings': { | |
77 'VCLinkerTool': { | |
78 'AdditionalDependencies': [ | |
79 'hid.lib', | |
80 'setupapi.lib', | |
81 ], | |
82 }, | |
83 }, | |
84 }], | |
85 ], | |
86 }, | |
87 { | |
88 'target_name': 'device_hid_mocks', | |
89 'type': 'static_library', | |
90 'include_dirs': [ | |
91 '../..', | |
92 ], | |
93 'dependencies': [ | |
94 '../../testing/gmock.gyp:gmock', | |
95 'device_hid', | |
96 ], | |
97 'sources': [ | |
98 'mock_hid_service.cc', | |
99 'mock_hid_service.h', | |
100 ], | |
101 }, | |
102 ], | |
103 } | |
OLD | NEW |