Add ICU message format support
[chromium-blink-merge.git] / device / vibration / BUILD.gn
blobb315e572a52cceba0eb4d870b4d2990143bf5e20
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")
8 if (is_android) {
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"
16   sources = [
17     "vibration_export.h",
18     "vibration_manager_impl.h",
19   ]
21   defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ]
23   deps = [
24     ":mojo_bindings",
25     "//base",
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",
30   ]
32   if (is_android) {
33     sources += [
34       "android/vibration_jni_registrar.cc",
35       "android/vibration_jni_registrar.h",
36       "vibration_manager_impl_android.cc",
37       "vibration_manager_impl_android.h",
38     ]
39     deps += [ ":vibration_jni_headers" ]
40   } else {
41     sources += [ "vibration_manager_impl_default.cc" ]
42   }
45 mojom("mojo_bindings") {
46   sources = [
47     "vibration_manager.mojom",
48   ]
51 if (is_android) {
52   generate_jni("vibration_jni_headers") {
53     sources = [
54       "android/java/src/org/chromium/device/vibration/VibrationProvider.java",
55     ]
56     jni_package = "vibration"
57   }