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