OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 import("//build/config/features.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 |
| 8 # On android, AmbientLightSensor mojo service is implemented directly in Java. |
| 9 if (!is_android) { |
| 10 component("sensor") { |
| 11 output_name = "device_sensor" |
| 12 |
| 13 sources = [ |
| 14 "sensor_export.h", |
| 15 "sensor_impl.cc", |
| 16 "sensor_impl.h", |
| 17 "sensor_manager.h", |
| 18 "sensor_manager_default.cc", |
| 19 "sensor_service.cc", |
| 20 "sensor_service.h", |
| 21 ] |
| 22 |
| 23 defines = [ "DEVICE_SENSOR_IMPLEMENTATION" ] |
| 24 |
| 25 deps = [ |
| 26 ":mojo_bindings", |
| 27 "//base", |
| 28 "//base/third_party/dynamic_annotations", |
| 29 "//mojo/edk/system", |
| 30 "//mojo/public/cpp/bindings", |
| 31 ] |
| 32 } |
| 33 } |
| 34 |
| 35 mojom("mojo_bindings") { |
| 36 sources = [ |
| 37 "als_reading.mojom", |
| 38 "sensor.mojom", |
| 39 ] |
| 40 } |
OLD | NEW |