Revert of Add more targets to "gn check" (patchset #3 id:40001 of https://codereview...
[chromium-blink-merge.git] / device / vibration / android / BUILD.gn
blob5d9aa22a75df353f2e6455f5fa43fce47c36e86e
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/android/config.gni")
6 import("//build/config/android/rules.gni")
8 assert(is_android)
10 source_set("android") {
11   sources = [
12     "vibration_jni_registrar.cc",
13     "vibration_jni_registrar.h",
14   ]
16   defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ]
18   deps = [
19     # vibration_jni_registrar.cc includes a header from device/vibration
20     # that includes a mojo-generated header file.  Make sure the header
21     # is generated before vibration_jni_registrar.cc is compiled.
22     "//device/vibration:mojo_bindings",
23   ]
26 generate_jni("vibration_jni_headers") {
27   sources = [
28     "java/src/org/chromium/device/vibration/VibrationProvider.java",
29   ]
30   jni_package = "vibration"