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.
5 import("//build/config/features.gni")
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") # For generate_jni().
13 component("vibration") {
14 output_name = "device_vibration"
18 "vibration_manager_impl.h",
21 defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ]
26 "//base/third_party/dynamic_annotations",
27 "//mojo/environment:chromium",
28 "//third_party/mojo/src/mojo/public/cpp/bindings",
29 "//third_party/mojo/src/mojo/edk/system",
34 "android/vibration_jni_registrar.cc",
35 "android/vibration_jni_registrar.h",
36 "vibration_manager_impl_android.cc",
37 "vibration_manager_impl_android.h",
39 deps += [ ":vibration_jni_headers" ]
41 sources += [ "vibration_manager_impl_default.cc" ]
45 mojom("mojo_bindings") {
47 "vibration_manager.mojom",
52 generate_jni("vibration_jni_headers") {
54 "android/java/src/org/chromium/device/vibration/VibrationProvider.java",
56 jni_package = "vibration"