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 component("vibration") { |
| 9 output_name = "device_vibration" |
| 10 |
| 11 sources = [ |
| 12 "vibration_export.h", |
| 13 "vibration_manager_impl.cc", |
| 14 "vibration_manager_impl.h", |
| 15 "vibration_provider.h", |
| 16 "vibration_provider_android.cc", |
| 17 "vibration_provider_android.h", |
| 18 ] |
| 19 |
| 20 defines = [ |
| 21 "DEVICE_VIBRATION_IMPLEMENTATION", |
| 22 ] |
| 23 |
| 24 deps = [ |
| 25 ":mojo_bindings", |
| 26 "//base", |
| 27 "//base/third_party/dynamic_annotations", |
| 28 "//mojo/environment:chromium", |
| 29 "//mojo/public/cpp/bindings", |
| 30 "//mojo/edk/system", |
| 31 ] |
| 32 |
| 33 if (is_android) { |
| 34 deps += [ |
| 35 "//device/vibration/android", |
| 36 "//device/vibration/android:vibration_jni_headers", |
| 37 ] |
| 38 } |
| 39 } |
| 40 |
| 41 mojom("mojo_bindings") { |
| 42 sources = [ |
| 43 "vibration_manager.mojom", |
| 44 ] |
| 45 } |
OLD | NEW |