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("hid") { | 10 source_set("hid") { |
6 sources = [ | 11 sources = [ |
7 "hid_api.cc", | 12 "hid_api.cc", |
8 "hid_api.h", | 13 "hid_api.h", |
9 "hid_connection_resource.cc", | 14 "hid_connection_resource.cc", |
10 "hid_connection_resource.h", | 15 "hid_connection_resource.h", |
11 "hid_device_manager.cc", | 16 "hid_device_manager.cc", |
12 "hid_device_manager.h", | 17 "hid_device_manager.h", |
13 ] | 18 ] |
14 | 19 |
15 configs += [ | 20 configs += [ |
16 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 21 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
17 "//build/config/compiler:no_size_t_to_int_warning", | 22 "//build/config/compiler:no_size_t_to_int_warning", |
18 ] | 23 ] |
19 | 24 |
20 deps = [ | 25 deps = [ |
21 "//content/public/browser", | 26 "//content/public/browser", |
22 "//content/public/common", | 27 "//content/public/common", |
23 "//extensions/common/api", | 28 "//extensions/common/api", |
24 ] | 29 ] |
25 | 30 |
26 public_deps = [ | 31 public_deps = [ |
27 "//extensions/browser:browser_sources", | 32 "//extensions/browser:browser_sources", |
28 ] | 33 ] |
29 } | 34 } |
OLD | NEW |