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/android/config.gni") | |
6 import("//build/config/android/rules.gni") | |
7 | |
8 assert(is_android) | |
9 | |
10 source_set("android") { | |
11 sources = [ | |
12 "vibration_jni_registrar.cc", | |
13 "vibration_jni_registrar.h", | |
14 ] | |
15 | |
16 defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ] | |
17 | |
18 deps = [ | |
19 "//base", | |
20 | |
21 # vibration_jni_registrar.cc includes a header from device/vibration | |
22 # that includes a mojo-generated header file. Make sure the header | |
23 # is generated before vibration_jni_registrar.cc is compiled. | |
24 "//device/vibration:mojo_bindings", | |
25 ] | |
26 } | |
27 | |
28 generate_jni("vibration_jni_headers") { | |
29 sources = [ | |
30 "java/src/org/chromium/device/vibration/VibrationProvider.java", | |
31 ] | |
32 jni_package = "vibration" | |
33 } | |
OLD | NEW |