| Index: device/device_sensors/device_sensors.gyp
|
| diff --git a/device/device_sensors/device_sensors.gyp b/device/device_sensors/device_sensors.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e43b6f8912af217552c4b053804e647302df285
|
| --- /dev/null
|
| +++ b/device/device_sensors/device_sensors.gyp
|
| @@ -0,0 +1,126 @@
|
| +# Copyright 2015 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/device_sensors:mojo_bindings
|
| + 'target_name': 'device_device_sensors_mojo_bindings',
|
| + 'type': 'static_library',
|
| + 'dependencies': [
|
| + '../../base/base.gyp:base',
|
| + ],
|
| + 'includes': [
|
| + '../../third_party/mojo/mojom_bindings_generator.gypi',
|
| + ],
|
| + 'sources': [
|
| + 'device_sensors.mojom',
|
| + 'type_converters.cc',
|
| + 'type_converters.h',
|
| + ],
|
| + },
|
| + {
|
| + # This is needed only for a build within Android tree. TODO(ppi): remove
|
| + # when Android tree build is deprecated.
|
| + 'target_name': 'device_device_sensors_mojo_bindings_for_webview',
|
| + 'type': 'none',
|
| + 'dependencies': [
|
| + 'device_device_sensors_mojo_bindings',
|
| + ],
|
| + 'actions': [
|
| + {
|
| + # Dummy action that triggers the bindings generation and explicitly
|
| + # declares the java outputs, so that they are discoverable to make.
|
| + 'action_name': 'device_device_sensors_mojo_bindings_dummy_action',
|
| + 'inputs': [
|
| + '<(SHARED_INTERMEDIATE_DIR)/device/device_sensors/device_sensors.mojom.h',
|
| + ],
|
| + 'outputs': [
|
| + '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bindings/src/org/chromium/mojom/device/BatteryMonitor.java',
|
| +# '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bindings/src/org/chromium/mojom/device/BatteryMonitor_Internal.java',
|
| +# '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bindings/src/org/chromium/mojom/device/BatteryStatusObserver.java',
|
| +# '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bindings/src/org/chromium/mojom/device/BatteryStatusObserver_Internal.java',
|
| +# '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bindings/src/org/chromium/mojom/device/BatteryStatus.java',
|
| + ],
|
| + 'action': ['touch', '<@(_outputs)'],
|
| + },
|
| + ],
|
| + 'hard_dependency': 1,
|
| + },
|
| + {
|
| + # GN version: //device/device_sensors
|
| + 'target_name': 'device_device_sensors',
|
| + 'type': '<(component)',
|
| + 'dependencies': [
|
| + '../../base/base.gyp:base',
|
| + '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
|
| + '../../components/components.gyp:shared_memory_seqlock',
|
| + '../../mojo/mojo_base.gyp:mojo_environment_chromium',
|
| + '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
|
| + '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
|
| + '../../third_party/WebKit/public/blink_headers.gyp:blink_headers',
|
| + 'device_device_sensors_mojo_bindings',
|
| + ],
|
| + 'defines': [
|
| + 'DEVICE_SENSORS_IMPLEMENTATION',
|
| + ],
|
| + 'sources': [
|
| + 'ambient_light_mac.cc',
|
| + 'ambient_light_mac.h',
|
| + 'data_fetcher_shared_memory.h',
|
| + 'data_fetcher_shared_memory_android.cc',
|
| + 'data_fetcher_shared_memory_base.cc',
|
| + 'data_fetcher_shared_memory_base.h',
|
| + 'data_fetcher_shared_memory_chromeos.cc',
|
| + 'data_fetcher_shared_memory_default.cc',
|
| + 'data_fetcher_shared_memory_mac.cc',
|
| + 'data_fetcher_shared_memory_win.cc',
|
| + 'device_inertial_sensor_service.cc',
|
| + 'device_inertial_sensor_service.h',
|
| + 'device_light_data.h',
|
| + 'device_light_hardware_buffer.h',
|
| + 'device_motion_hardware_buffer.h',
|
| + 'device_orientation_hardware_buffer.h',
|
| + 'device_sensors_export.h',
|
| + 'device_sensors_light_impl.cc',
|
| + 'device_sensors_light_impl.h',
|
| + 'device_sensors_motion_impl.cc',
|
| + 'device_sensors_motion_impl.h',
|
| + 'device_sensors_orientation_impl.cc',
|
| + 'device_sensors_orientation_impl.h',
|
| + 'inertial_sensor_consts.h',
|
| + 'sensor_manager_android.cc',
|
| + 'sensor_manager_android.h',
|
| + 'sensor_manager_chromeos.cc',
|
| + 'sensor_manager_chromeos.h',
|
| + ],
|
| + 'conditions': [
|
| + ['OS == "mac"', {
|
| + 'sources/': [
|
| + ['exclude', '^data_fetcher_shared_memory_default.cc$'],
|
| + ],
|
| + 'dependencies': [
|
| + '../../third_party/sudden_motion_sensor/sudden_motion_sensor.gyp:sudden_motion_sensor',
|
| + ],
|
| + }],
|
| + ['chromeos==1', {
|
| + 'dependencies': [
|
| + '../chromeos/chromeos.gyp:chromeos',
|
| + ],
|
| + 'sources!': [
|
| + 'data_fetcher_shared_memory_default.cc',
|
| + ],
|
| + }],
|
| + ['OS == "win"', {
|
| + 'sources/': [
|
| + ['exclude', '^data_fetcher_shared_memory_default.cc$'],
|
| + ],
|
| + }],
|
| + ],
|
| + },
|
| + ],
|
| +}
|
|
|