OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_usb', | 11 'target_name': 'device_usb', |
12 'type': 'static_library', | 12 'type': 'static_library', |
| 13 'dependencies': [ |
| 14 '../../third_party/libusb/libusb.gyp:libusb', |
| 15 ], |
13 'include_dirs': [ | 16 'include_dirs': [ |
14 '../..', | 17 '../..', |
15 ], | 18 ], |
16 'sources': [ | 19 'sources': [ |
| 20 'usb_context.cc', |
| 21 'usb_context.h', |
| 22 'usb_device_impl.cc', |
| 23 'usb_device_impl.h', |
| 24 'usb_device.h', |
| 25 'usb_device_filter.cc', |
| 26 'usb_device_filter.h', |
| 27 'usb_device_handle_impl.cc', |
| 28 'usb_device_handle_impl.h', |
| 29 'usb_device_handle.h', |
| 30 'usb_error.cc', |
| 31 'usb_error.h', |
17 'usb_ids.cc', | 32 'usb_ids.cc', |
18 'usb_ids.h', | 33 'usb_ids.h', |
| 34 'usb_interface.h', |
| 35 'usb_interface_impl.cc', |
| 36 'usb_interface_impl.h', |
| 37 'usb_service.h', |
| 38 'usb_service_impl.cc', |
19 ], | 39 ], |
20 'actions': [ | 40 'actions': [ |
21 { | 41 { |
22 'action_name': 'generate_usb_ids', | 42 'action_name': 'generate_usb_ids', |
23 'variables': { | 43 'variables': { |
24 'usb_ids_path%': '../../third_party/usb_ids/usb.ids', | 44 'usb_ids_path%': '../../third_party/usb_ids/usb.ids', |
25 'usb_ids_py_path': 'tools/usb_ids.py', | 45 'usb_ids_py_path': 'tools/usb_ids.py', |
26 }, | 46 }, |
27 'inputs': [ | 47 'inputs': [ |
28 '<(usb_ids_path)', | 48 '<(usb_ids_path)', |
29 '<(usb_ids_py_path)', | 49 '<(usb_ids_py_path)', |
30 ], | 50 ], |
31 'outputs': [ | 51 'outputs': [ |
32 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc', | 52 '<(SHARED_INTERMEDIATE_DIR)/device/usb/usb_ids_gen.cc', |
33 ], | 53 ], |
34 'action': [ | 54 'action': [ |
35 'python', | 55 'python', |
36 '<(usb_ids_py_path)', | 56 '<(usb_ids_py_path)', |
37 '-i', '<(usb_ids_path)', | 57 '-i', '<(usb_ids_path)', |
38 '-o', '<@(_outputs)', | 58 '-o', '<@(_outputs)', |
39 ], | 59 ], |
40 'process_outputs_as_sources': 1, | 60 'process_outputs_as_sources': 1, |
41 }, | 61 }, |
42 ], | 62 ], |
| 63 'conditions': [ |
| 64 ['use_udev == 1', { |
| 65 'dependencies': [ |
| 66 '../../build/linux/system.gyp:udev', |
| 67 ], |
| 68 }], |
| 69 ['chromeos==1', { |
| 70 'dependencies': [ |
| 71 '../../chromeos/chromeos.gyp:chromeos', |
| 72 ], |
| 73 }], |
| 74 ] |
43 }, | 75 }, |
44 ], | 76 ], |
45 } | 77 } |
OLD | NEW |