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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 # On android, VibrationManager mojo interface is implemented directly in Java. | 8 # On android, VibrationManager mojo interface is implemented directly in Java. |
9 if (!is_android) { | 9 if (!is_android) { |
10 component("vibration") { | 10 source_set("vibration") { |
11 output_name = "device_vibration" | 11 visibility = [ |
| 12 "//services/device:lib", |
| 13 "//services/device:tests", |
| 14 ] |
12 | 15 |
13 sources = [ | 16 sources = [ |
14 "vibration_export.h", | |
15 "vibration_manager_impl.h", | 17 "vibration_manager_impl.h", |
16 "vibration_manager_impl_default.cc", | 18 "vibration_manager_impl_default.cc", |
17 ] | 19 ] |
18 | 20 |
19 defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ] | 21 public_deps = [ |
| 22 "//services/device/public/interfaces", |
| 23 ] |
20 | 24 |
21 deps = [ | 25 deps = [ |
22 ":mojo_bindings", | |
23 "//base", | 26 "//base", |
24 "//base/third_party/dynamic_annotations", | 27 "//base/third_party/dynamic_annotations", |
25 "//mojo/public/cpp/bindings", | 28 "//mojo/public/cpp/bindings", |
26 ] | 29 ] |
27 } | 30 } |
28 } | 31 } |
29 | |
30 mojom("mojo_bindings") { | |
31 sources = [ | |
32 "vibration_manager.mojom", | |
33 ] | |
34 } | |
OLD | NEW |