| Index: device/vibration/vibration.gyp
|
| diff --git a/device/vibration/vibration.gyp b/device/vibration/vibration.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8a459f65150c17c9ea32aa1854d2ca26ecaca750
|
| --- /dev/null
|
| +++ b/device/vibration/vibration.gyp
|
| @@ -0,0 +1,82 @@
|
| +# 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.cc',
|
| + 'vibration_manager_impl.h',
|
| + 'vibration_provider.h',
|
| + 'vibration_provider_android.cc',
|
| + 'vibration_provider_android.h'
|
| + ],
|
| + 'conditions': [
|
| + ['OS == "android"', {
|
| + 'dependencies': [
|
| + 'device_vibration_jni_headers',
|
| + ],
|
| + }],
|
| + ],
|
| + },
|
| + ],
|
| + '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' ],
|
| + },
|
| + ],
|
| + }],
|
| + ],
|
| +}
|
|
|