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

Unified Diff: device/sensor/sensor.gyp

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re entrancy fix Created 4 years, 7 months 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
Index: device/sensor/sensor.gyp
diff --git a/device/sensor/sensor.gyp b/device/sensor/sensor.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..bfab92bb1e2a6198fe305139aba2fef128ba3d97
--- /dev/null
+++ b/device/sensor/sensor.gyp
@@ -0,0 +1,87 @@
+# 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:mojo_bindings_blink
+ 'target_name': 'device_sensor_mojo_bindings_for_blink',
+ 'type': 'static_library',
+ 'variables': {
+ 'for_blink': 'true',
+ },
+ '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' ],
+ },
+ ],
+ }],
+ ],
+}
« no previous file with comments | « device/sensor/android/java/src/org/chromium/device/sensor/AmbientLightSensorImpl.java ('k') | device/sensor/sensor.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698