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

Unified Diff: device/sensor/BUILD.gn

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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | device/sensor/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensor/BUILD.gn
diff --git a/device/sensor/BUILD.gn b/device/sensor/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..3437d60bfd874e274d7a159d38af9f6857bb2d13
--- /dev/null
+++ b/device/sensor/BUILD.gn
@@ -0,0 +1,40 @@
+# 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.
+
+import("//build/config/features.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
+
+# On android, AmbientLightSensor mojo service is implemented directly in Java.
+if (!is_android) {
+ component("sensor") {
+ output_name = "device_sensor"
+
+ sources = [
+ "sensor_export.h",
+ "sensor_impl.cc",
+ "sensor_impl.h",
+ "sensor_manager.h",
+ "sensor_manager_default.cc",
+ "sensor_service.cc",
+ "sensor_service.h",
+ ]
+
+ defines = [ "DEVICE_SENSOR_IMPLEMENTATION" ]
+
+ deps = [
+ ":mojo_bindings",
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//mojo/edk/system",
+ "//mojo/public/cpp/bindings",
+ ]
+ }
+}
+
+mojom("mojo_bindings") {
+ sources = [
+ "als_reading.mojom",
+ "sensor.mojom",
+ ]
+}
« no previous file with comments | « content/renderer/BUILD.gn ('k') | device/sensor/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698