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

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

Issue 1274033002: Vibration API: convert implementation to java mojo-service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
11 # GN version: //device/vibration:vibration_mojo 11 # GN version: //device/vibration:mojo_bindings
12 'target_name': 'device_vibration_mojo_bindings', 12 'target_name': 'device_vibration_mojo_bindings',
13 'type': 'static_library', 13 'type': 'static_library',
14 'includes': [ 14 'includes': [
15 '../../third_party/mojo/mojom_bindings_generator.gypi', 15 '../../third_party/mojo/mojom_bindings_generator.gypi',
16 ], 16 ],
17 'sources': [ 17 'sources': [
18 'vibration_manager.mojom', 18 'vibration_manager.mojom',
19 ], 19 ],
20 }, 20 },
21 { 21 {
22 # GN version: //device/vibration 22 # GN version: //device/vibration
23 'target_name': 'device_vibration', 23 'target_name': 'device_vibration',
24 'type': '<(component)', 24 'type': '<(component)',
25 'dependencies': [ 25 'dependencies': [
26 '../../base/base.gyp:base', 26 '../../base/base.gyp:base',
27 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations', 27 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations',
28 '../../mojo/mojo_base.gyp:mojo_environment_chromium', 28 '../../mojo/mojo_base.gyp:mojo_environment_chromium',
29 '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl', 29 '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
30 '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', 30 '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
31 'device_vibration_mojo_bindings', 31 'device_vibration_mojo_bindings',
32 ], 32 ],
33 'defines': [ 33 'defines': [
34 'DEVICE_VIBRATION_IMPLEMENTATION', 34 'DEVICE_VIBRATION_IMPLEMENTATION',
35 ], 35 ],
36 'sources': [ 36 'sources': [
37 'android/vibration_jni_registrar.cc',
38 'android/vibration_jni_registrar.h',
39 'vibration_manager_impl.h', 37 'vibration_manager_impl.h',
40 'vibration_manager_impl_android.cc',
41 'vibration_manager_impl_android.h',
42 'vibration_manager_impl_default.cc', 38 'vibration_manager_impl_default.cc',
43 ], 39 ],
44 'conditions': [ 40 'conditions': [
45 ['OS == "android"', { 41 ['OS == "android"', {
46 'dependencies': [ 42 'dependencies': [
47 'device_vibration_java', 43 'device_vibration_java',
48 'device_vibration_jni_headers',
49 ],
50 'sources!': [
51 'vibration_manager_impl_default.cc',
timvolodine 2015/08/07 13:42:31 same here: exclude on android?
leonhsl(Using Gerrit) 2015/08/10 05:52:54 Done.
52 ], 44 ],
53 }], 45 }],
54 ], 46 ],
55 }, 47 },
56 ], 48 ],
57 'conditions': [ 49 'conditions': [
58 ['OS == "android"', { 50 ['OS == "android"', {
59 'targets': [ 51 'targets': [
60 { 52 {
61 'target_name': 'device_vibration_jni_headers',
62 'type': 'none',
63 'sources': [
64 'android/java/src/org/chromium/device/vibration/VibrationProvider.ja va',
65 ],
66 'variables': {
67 'jni_gen_package': 'device_vibration',
68 },
69 'includes': [ '../../build/jni_generator.gypi' ],
70 },
71 {
72 'target_name': 'device_vibration_java', 53 'target_name': 'device_vibration_java',
73 'type': 'none', 54 'type': 'none',
74 'dependencies': [ 55 'dependencies': [
75 '../../base/base.gyp:base', 56 '../../base/base.gyp:base',
57 '../../third_party/mojo/mojo_public.gyp:mojo_bindings_java',
58 'device_vibration_mojo_bindings',
76 ], 59 ],
77 'variables': { 60 'variables': {
78 'java_in_dir': '../../device/vibration/android/java', 61 'java_in_dir': '../../device/vibration/android/java',
79 }, 62 },
80 'includes': [ '../../build/java.gypi' ], 63 'includes': [ '../../build/java.gypi' ],
81 }, 64 },
82 ], 65 ],
83 }], 66 }],
84 ], 67 ],
85 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698