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", |
+ ] |
+} |