| 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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 component("vibration") { | 8 component("vibration") { |
| 9 output_name = "device_vibration" | 9 output_name = "device_vibration" |
| 10 | 10 |
| 11 sources = [ | 11 sources = [ |
| 12 "vibration_export.h", | 12 "vibration_export.h", |
| 13 "vibration_manager_impl.h", | 13 "vibration_manager_impl.h", |
| 14 "vibration_manager_impl_default.cc", | 14 "vibration_manager_impl_default.cc", |
| 15 ] | 15 ] |
| 16 | 16 |
| 17 defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ] | 17 defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ] |
| 18 | 18 |
| 19 deps = [ | 19 deps = [ |
| 20 ":mojo_bindings", | 20 ":mojo_bindings", |
| 21 "//base", | 21 "//base", |
| 22 "//base/third_party/dynamic_annotations", | 22 "//base/third_party/dynamic_annotations", |
| 23 "//mojo/environment:chromium", | 23 "//mojo/environment:chromium", |
| 24 "//third_party/mojo/src/mojo/edk/system", |
| 24 "//third_party/mojo/src/mojo/public/cpp/bindings", | 25 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 25 "//third_party/mojo/src/mojo/edk/system", | |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 if (is_android) { | 28 if (is_android) { |
| 29 sources -= [ "vibration_manager_impl_default.cc" ] | 29 sources -= [ "vibration_manager_impl_default.cc" ] |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 | 32 |
| 33 mojom("mojo_bindings") { | 33 mojom("mojo_bindings") { |
| 34 sources = [ | 34 sources = [ |
| 35 "vibration_manager.mojom", | 35 "vibration_manager.mojom", |
| 36 ] | 36 ] |
| 37 } | 37 } |
| OLD | NEW |