OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, |
| 9 'targets': [ |
| 10 { |
| 11 # GN version: //device/device_sensors:mojo_bindings |
| 12 'target_name': 'device_device_sensors_mojo_bindings', |
| 13 'type': 'static_library', |
| 14 'dependencies': [ |
| 15 '../../base/base.gyp:base', |
| 16 ], |
| 17 'includes': [ |
| 18 '../../third_party/mojo/mojom_bindings_generator.gypi', |
| 19 ], |
| 20 'sources': [ |
| 21 'device_sensors.mojom', |
| 22 'type_converters.cc', |
| 23 'type_converters.h', |
| 24 ], |
| 25 }, |
| 26 { |
| 27 # This is needed only for a build within Android tree. TODO(ppi): remove |
| 28 # when Android tree build is deprecated. |
| 29 'target_name': 'device_device_sensors_mojo_bindings_for_webview', |
| 30 'type': 'none', |
| 31 'dependencies': [ |
| 32 'device_device_sensors_mojo_bindings', |
| 33 ], |
| 34 'actions': [ |
| 35 { |
| 36 # Dummy action that triggers the bindings generation and explicitly |
| 37 # declares the java outputs, so that they are discoverable to make. |
| 38 'action_name': 'device_device_sensors_mojo_bindings_dummy_action', |
| 39 'inputs': [ |
| 40 '<(SHARED_INTERMEDIATE_DIR)/device/device_sensors/device_sensors.moj
om.h', |
| 41 ], |
| 42 'outputs': [ |
| 43 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bin
dings/src/org/chromium/mojom/device/BatteryMonitor.java', |
| 44 # '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bi
ndings/src/org/chromium/mojom/device/BatteryMonitor_Internal.java', |
| 45 # '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bi
ndings/src/org/chromium/mojom/device/BatteryStatusObserver.java', |
| 46 # '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bi
ndings/src/org/chromium/mojom/device/BatteryStatusObserver_Internal.java', |
| 47 # '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_device_sensors_mojo_bi
ndings/src/org/chromium/mojom/device/BatteryStatus.java', |
| 48 ], |
| 49 'action': ['touch', '<@(_outputs)'], |
| 50 }, |
| 51 ], |
| 52 'hard_dependency': 1, |
| 53 }, |
| 54 { |
| 55 # GN version: //device/device_sensors |
| 56 'target_name': 'device_device_sensors', |
| 57 'type': '<(component)', |
| 58 'dependencies': [ |
| 59 '../../base/base.gyp:base', |
| 60 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
| 61 '../../components/components.gyp:shared_memory_seqlock', |
| 62 '../../mojo/mojo_base.gyp:mojo_environment_chromium', |
| 63 '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl', |
| 64 '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 65 '../../third_party/WebKit/public/blink_headers.gyp:blink_headers', |
| 66 'device_device_sensors_mojo_bindings', |
| 67 ], |
| 68 'defines': [ |
| 69 'DEVICE_SENSORS_IMPLEMENTATION', |
| 70 ], |
| 71 'sources': [ |
| 72 'ambient_light_mac.cc', |
| 73 'ambient_light_mac.h', |
| 74 'data_fetcher_shared_memory.h', |
| 75 'data_fetcher_shared_memory_android.cc', |
| 76 'data_fetcher_shared_memory_base.cc', |
| 77 'data_fetcher_shared_memory_base.h', |
| 78 'data_fetcher_shared_memory_chromeos.cc', |
| 79 'data_fetcher_shared_memory_default.cc', |
| 80 'data_fetcher_shared_memory_mac.cc', |
| 81 'data_fetcher_shared_memory_win.cc', |
| 82 'device_inertial_sensor_service.cc', |
| 83 'device_inertial_sensor_service.h', |
| 84 'device_light_data.h', |
| 85 'device_light_hardware_buffer.h', |
| 86 'device_motion_hardware_buffer.h', |
| 87 'device_orientation_hardware_buffer.h', |
| 88 'device_sensors_export.h', |
| 89 'device_sensors_light_impl.cc', |
| 90 'device_sensors_light_impl.h', |
| 91 'device_sensors_motion_impl.cc', |
| 92 'device_sensors_motion_impl.h', |
| 93 'device_sensors_orientation_impl.cc', |
| 94 'device_sensors_orientation_impl.h', |
| 95 'inertial_sensor_consts.h', |
| 96 'sensor_manager_android.cc', |
| 97 'sensor_manager_android.h', |
| 98 'sensor_manager_chromeos.cc', |
| 99 'sensor_manager_chromeos.h', |
| 100 ], |
| 101 'conditions': [ |
| 102 ['OS == "mac"', { |
| 103 'sources/': [ |
| 104 ['exclude', '^data_fetcher_shared_memory_default.cc$'], |
| 105 ], |
| 106 'dependencies': [ |
| 107 '../../third_party/sudden_motion_sensor/sudden_motion_sensor.gyp:sud
den_motion_sensor', |
| 108 ], |
| 109 }], |
| 110 ['chromeos==1', { |
| 111 'dependencies': [ |
| 112 '../chromeos/chromeos.gyp:chromeos', |
| 113 ], |
| 114 'sources!': [ |
| 115 'data_fetcher_shared_memory_default.cc', |
| 116 ], |
| 117 }], |
| 118 ['OS == "win"', { |
| 119 'sources/': [ |
| 120 ['exclude', '^data_fetcher_shared_memory_default.cc$'], |
| 121 ], |
| 122 }], |
| 123 ], |
| 124 }, |
| 125 ], |
| 126 } |
OLD | NEW |