1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //device/vibration:vibration_mojo
'target_name': 'device_vibration_mojo_bindings',
'type': 'static_library',
'includes': [
'../../mojo/public/tools/bindings/mojom_bindings_generator.gypi',
],
'sources': [
'vibration_manager.mojom',
],
},
{
# GN version: //device/vibration
'target_name': 'device_vibration',
'type': '<(component)',
'dependencies': [
'../../base/base.gyp:base',
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
'../../mojo/mojo_base.gyp:mojo_environment_chromium',
'../../mojo/edk/mojo_edk.gyp:mojo_system_impl',
'device_vibration_mojo_bindings',
],
'defines': [
'DEVICE_VIBRATION_IMPLEMENTATION',
],
'sources': [
'android/vibration_jni_registrar.cc',
'android/vibration_jni_registrar.h',
'vibration_manager_impl.h',
'vibration_manager_impl_android.cc',
'vibration_manager_impl_android.h',
'vibration_manager_impl_default.cc',
],
'conditions': [
['OS == "android"', {
'dependencies': [
'device_vibration_jni_headers',
],
'sources!': [
'vibration_manager_impl_default.cc',
],
}],
],
},
],
'conditions': [
['OS == "android"', {
'targets': [
{
'target_name': 'device_vibration_jni_headers',
'type': 'none',
'sources': [
'android/java/src/org/chromium/device/vibration/VibrationProvider.java',
],
'variables': {
'jni_gen_package': 'device_vibration',
},
'includes': [ '../../build/jni_generator.gypi' ],
},
{
'target_name': 'device_vibration_java',
'type': 'none',
'dependencies': [
'../../base/base.gyp:base',
],
'variables': {
'java_in_dir': '../../device/vibration/android/java',
},
'includes': [ '../../build/java.gypi' ],
},
],
}],
],
}
|