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

Unified 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: hide default service implementation, fix android_aosp 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vibration/android/vibration_jni_registrar.cc ('k') | device/vibration/vibration_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vibration/vibration.gyp
diff --git a/device/vibration/vibration.gyp b/device/vibration/vibration.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..7a3e8b372ccb4c4c85307bcc0282473b52f8a869
--- /dev/null
+++ b/device/vibration/vibration.gyp
@@ -0,0 +1,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' ],
+ },
+ ],
+ }],
+ ],
+}
« no previous file with comments | « device/vibration/android/vibration_jni_registrar.cc ('k') | device/vibration/vibration_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698