Roll WebRTC 8837:8852, Libjingle 8836:8851
[chromium-blink-merge.git] / device / vibration / vibration.gyp
blob707c16530ffad4d3c6c836b241b7be236a054bb0
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //device/vibration:vibration_mojo
12       'target_name': 'device_vibration_mojo_bindings',
13       'type': 'static_library',
14       'includes': [
15         '../../third_party/mojo/mojom_bindings_generator.gypi',
16       ],
17       'sources': [
18         'vibration_manager.mojom',
19       ],
20     },
21     {
22       # GN version: //device/vibration
23       'target_name': 'device_vibration',
24       'type': '<(component)',
25       'dependencies': [
26         '../../base/base.gyp:base',
27         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
28         '../../mojo/mojo_base.gyp:mojo_environment_chromium',
29         '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
30         '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
31         'device_vibration_mojo_bindings',
32       ],
33       'defines': [
34         'DEVICE_VIBRATION_IMPLEMENTATION',
35       ],
36       'sources': [
37         'android/vibration_jni_registrar.cc',
38         'android/vibration_jni_registrar.h',
39         'vibration_manager_impl.h',
40         'vibration_manager_impl_android.cc',
41         'vibration_manager_impl_android.h',
42         'vibration_manager_impl_default.cc',
43       ],
44       'conditions': [
45         ['OS == "android"', {
46           'dependencies': [
47             'device_vibration_jni_headers',
48           ],
49           'sources!': [
50             'vibration_manager_impl_default.cc',
51           ],
52         }],
53       ],
54     },
55   ],
56   'conditions': [
57     ['OS == "android"', {
58       'targets': [
59         {
60           'target_name': 'device_vibration_jni_headers',
61           'type': 'none',
62           'sources': [
63             'android/java/src/org/chromium/device/vibration/VibrationProvider.java',
64           ],
65           'variables': {
66             'jni_gen_package': 'device_vibration',
67           },
68           'includes': [ '../../build/jni_generator.gypi' ],
69         },
70         {
71           'target_name': 'device_vibration_java',
72           'type': 'none',
73           'dependencies': [
74             '../../base/base.gyp:base',
75           ],
76           'variables': {
77             'java_in_dir': '../../device/vibration/android/java',
78           },
79           'includes': [ '../../build/java.gypi' ],
80         },
81       ],
82     }],
83   ],