OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//extensions/features/features.gni") |
| 6 |
| 7 assert(enable_extensions, |
| 8 "Cannot depend on extensions because enable_extensions=false.") |
| 9 |
5 source_set("usb") { | 10 source_set("usb") { |
6 sources = [ | 11 sources = [ |
7 "usb_api.cc", | 12 "usb_api.cc", |
8 "usb_api.h", | 13 "usb_api.h", |
9 "usb_device_resource.cc", | 14 "usb_device_resource.cc", |
10 "usb_device_resource.h", | 15 "usb_device_resource.h", |
11 "usb_event_router.cc", | 16 "usb_event_router.cc", |
12 "usb_event_router.h", | 17 "usb_event_router.h", |
13 "usb_guid_map.cc", | 18 "usb_guid_map.cc", |
14 "usb_guid_map.h", | 19 "usb_guid_map.h", |
15 ] | 20 ] |
16 | 21 |
17 configs += [ | 22 configs += [ |
18 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
19 "//build/config/compiler:no_size_t_to_int_warning", | 24 "//build/config/compiler:no_size_t_to_int_warning", |
20 ] | 25 ] |
21 | 26 |
22 deps = [ | 27 deps = [ |
23 "//content/public/browser", | 28 "//content/public/browser", |
24 "//content/public/common", | 29 "//content/public/common", |
25 "//device/usb", | 30 "//device/usb", |
26 "//extensions/common/api", | 31 "//extensions/common/api", |
27 ] | 32 ] |
28 | 33 |
29 public_deps = [ | 34 public_deps = [ |
30 "//extensions/browser:browser_sources", | 35 "//extensions/browser:browser_sources", |
31 ] | 36 ] |
32 } | 37 } |
OLD | NEW |