OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'device_core', | 11 'target_name': 'device_core', |
12 'type': '<(component)', | 12 'type': '<(component)', |
13 'include_dirs': [ | 13 'include_dirs': [ |
14 '../..', | 14 '../..', |
15 ], | 15 ], |
16 'defines': [ | 16 'defines': [ |
17 'DEVICE_CORE_IMPLEMENTATION', | 17 'DEVICE_CORE_IMPLEMENTATION', |
18 ], | 18 ], |
19 'sources': [ | 19 'sources': [ |
20 'device_client.cc', | 20 'device_client.cc', |
21 'device_client.h', | 21 'device_client.h', |
22 'device_info_query_win.cc', | 22 'device_info_query_win.cc', |
23 'device_info_query_win.h', | 23 'device_info_query_win.h', |
24 'device_monitor_win.cc', | 24 'device_monitor_win.cc', |
25 'device_monitor_win.h', | 25 'device_monitor_win.h', |
26 ], | 26 ], |
27 'dependencies': [ | 27 'dependencies': [ |
28 '../../base/base.gyp:base', | 28 '../../base/base.gyp:base', |
| 29 ], |
| 30 'conditions': [ |
| 31 ['use_udev==1', { |
| 32 'dependencies': [ |
| 33 '../udev_linux/udev.gyp:udev_linux', |
| 34 ], |
| 35 'sources': [ |
| 36 'device_monitor_linux.cc', |
| 37 'device_monitor_linux.h', |
| 38 ], |
| 39 }], |
29 ] | 40 ] |
30 }, | 41 }, |
31 { | 42 { |
32 'target_name': 'device_core_mocks', | 43 'target_name': 'device_core_mocks', |
33 'type': 'static_library', | 44 'type': 'static_library', |
34 'include_dirs': [ | 45 'include_dirs': [ |
35 '../..', | 46 '../..', |
36 ], | 47 ], |
37 'dependencies': [ | 48 'dependencies': [ |
38 '../../testing/gmock.gyp:gmock', | 49 '../../testing/gmock.gyp:gmock', |
39 'device_core', | 50 'device_core', |
40 ], | 51 ], |
41 'sources': [ | 52 'sources': [ |
42 'mock_device_client.cc', | 53 'mock_device_client.cc', |
43 'mock_device_client.h', | 54 'mock_device_client.h', |
44 ], | 55 ], |
45 }, | 56 }, |
46 ], | 57 ], |
47 } | 58 } |
OLD | NEW |