| Index: device/sensor/sensor.gyp
|
| diff --git a/device/sensor/sensor.gyp b/device/sensor/sensor.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..db3f40b7727bc1fa5fc2d763d9f18733f3b7e895
|
| --- /dev/null
|
| +++ b/device/sensor/sensor.gyp
|
| @@ -0,0 +1,72 @@
|
| +# Copyright 2016 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/sensor:mojo_bindings
|
| + 'target_name': 'device_sensor_mojo_bindings',
|
| + 'type': 'static_library',
|
| + 'includes': [
|
| + '../../mojo/mojom_bindings_generator.gypi',
|
| + ],
|
| + 'sources': [
|
| + 'als_reading.mojom',
|
| + 'sensor.mojom',
|
| + ],
|
| + },
|
| + {
|
| + # GN version: //device/sensor
|
| + 'target_name': 'device_sensor',
|
| + 'type': '<(component)',
|
| + 'dependencies': [
|
| + '../../base/base.gyp:base',
|
| + '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
|
| + '../../mojo/mojo_edk.gyp:mojo_system_impl',
|
| + '../../mojo/mojo_public.gyp:mojo_cpp_bindings',
|
| + 'device_sensor_mojo_bindings',
|
| + ],
|
| + 'defines': [
|
| + 'DEVICE_SENSOR_IMPLEMENTATION',
|
| + ],
|
| + 'sources': [
|
| + 'sensor_impl.cc',
|
| + 'sensor_impl.h',
|
| + 'sensor_manager.h',
|
| + 'sensor_manager_default.cc',
|
| + 'sensor_service.cc',
|
| + 'sensor_service.h',
|
| + ],
|
| + 'conditions': [
|
| + ['OS == "android"', {
|
| + 'dependencies': [
|
| + 'device_sensor_java',
|
| + ],
|
| + }],
|
| + ],
|
| + },
|
| + ],
|
| + 'conditions': [
|
| + ['OS == "android"', {
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'device_sensor_java',
|
| + 'type': 'none',
|
| + 'dependencies': [
|
| + '../../base/base.gyp:base',
|
| + '../../mojo/mojo_public.gyp:mojo_bindings_java',
|
| + 'device_sensor_mojo_bindings',
|
| + ],
|
| + 'variables': {
|
| + 'java_in_dir': '../../device/sensor/android/java',
|
| + },
|
| + 'includes': [ '../../build/java.gypi' ],
|
| + },
|
| + ],
|
| + }],
|
| + ],
|
| +}
|
|
|