Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: device/vibration/vibration.gyp

Issue 583663003: Vibration API : migrate to device/vibration using mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and clean-up Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 {
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 '../../mojo/public/tools/bindings/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:dyna mic_annotations',
28 '../../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
29 '../../mojo/mojo_base.gyp:mojo_environment_chromium',
30 '../../mojo/edk/mojo_edk.gyp:mojo_system_impl',
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.cc',
40 'vibration_manager_impl.h',
41 'vibration_provider.h',
42 'vibration_provider_android.cc',
43 'vibration_provider_android.h'
44 ],
45 'conditions': [
46 ['OS == "android"', {
47 'dependencies': [
48 'device_vibration_jni_headers',
49 ],
50 }],
51 ],
52 },
53 ],
54 'conditions': [
55 ['OS == "android"', {
56 'targets': [
57 {
58 'target_name': 'device_vibration_jni_headers',
59 'type': 'none',
60 'sources': [
61 'android/java/src/org/chromium/device/vibration/VibrationProvider.ja va',
62 ],
63 'variables': {
64 'jni_gen_package': 'device_vibration',
65 },
66 'includes': [ '../../build/jni_generator.gypi' ],
67 },
68 {
69 'target_name': 'device_vibration_java',
70 'type': 'none',
71 'dependencies': [
72 '../../base/base.gyp:base',
73 ],
74 'variables': {
75 'java_in_dir': '../../device/vibration/android/java',
76 },
77 'includes': [ '../../build/java.gypi' ],
78 },
79 ],
80 }],
81 ],
82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698