Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 1 | # Copyright 2015 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 | if (is_android) { |
Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 6 | import("//build/config/android/config.gni") |
Adam Barth | 894a8dd | 2015-07-20 10:15:53 -0700 | [diff] [blame] | 7 | import("//mojo/android/rules.gni") |
Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 8 | |
| 9 | mojo_android_java_application("sensors") { |
| 10 | sources = [ |
Benjamin Lerman | 56e1705 | 2015-04-22 13:59:00 +0200 | [diff] [blame] | 11 | "src/org/chromium/mojo/sensors/Sensors.java", |
Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | mojo_main = "org.chromium.mojo.sensors.Sensors" |
| 15 | |
| 16 | deps = [ |
| 17 | ":sensors_lib", |
| 18 | "//mojo/public/interfaces/application:application_java", |
| 19 | "//mojo/public/java:application", |
Viet-Trung Luu | 0f4f3ba | 2015-10-10 01:08:40 -0700 | [diff] [blame] | 20 | "//mojo/services/sensors/interfaces:interfaces_java", |
Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 21 | ] |
| 22 | } |
| 23 | |
| 24 | android_library("sensors_lib") { |
| 25 | java_files = [ |
Benjamin Lerman | 56e1705 | 2015-04-22 13:59:00 +0200 | [diff] [blame] | 26 | "src/org/chromium/mojo/sensors/SensorForwarder.java", |
| 27 | "src/org/chromium/mojo/sensors/SensorServiceImpl.java", |
Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 28 | ] |
| 29 | |
| 30 | deps = [ |
| 31 | "//mojo/public/java:bindings", |
| 32 | "//mojo/public/java:system", |
Viet-Trung Luu | 0f4f3ba | 2015-10-10 01:08:40 -0700 | [diff] [blame] | 33 | "//mojo/services/sensors/interfaces:interfaces_java", |
Dave Moore | b1efb14 | 2015-04-21 09:56:05 -0700 | [diff] [blame] | 34 | ] |
| 35 | } |
| 36 | } |