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

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: Created 4 years, 8 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..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' ],
+ },
+ ],
+ }],
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698