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

Side by Side Diff: device/generic_sensor/BUILD.gn

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: change SetTaskRunner to SetFileTaskRunner as per offline discussion with Mikhail Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") # For generate_jni(). 8 import("//build/config/android/rules.gni") # For generate_jni().
9 } 9 }
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ] 50 ]
51 51
52 deps += [ ":jni_headers" ] 52 deps += [ ":jni_headers" ]
53 } 53 }
54 54
55 if (is_mac) { 55 if (is_mac) {
56 deps += [ "//device/sensors/public/cpp" ] 56 deps += [ "//device/sensors/public/cpp" ]
57 57
58 libs = [ "IOKit.framework" ] 58 libs = [ "IOKit.framework" ]
59 } 59 }
60
61 if (is_linux) {
62 sources += [
63 "iio/platform_sensor_utils_iio.cc",
64 "iio/platform_sensor_utils_iio.h",
65 "iio/sensor_data_iio.cc",
66 "iio/sensor_data_iio.h",
67 "platform_sensor_iio.cc",
68 "platform_sensor_iio.h",
69 "platform_sensor_provider_iio.cc",
70 "platform_sensor_provider_iio.h",
71 ]
72
73 deps += [ "//device/sensors/public/cpp" ]
74 }
60 } 75 }
61 76
62 if (is_android) { 77 if (is_android) {
63 device_sensors_jni_sources = [ 78 device_sensors_jni_sources = [
64 "android/java/src/org/chromium/device/sensors/PlatformSensor.java", 79 "android/java/src/org/chromium/device/sensors/PlatformSensor.java",
65 "android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java", 80 "android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java",
66 ] 81 ]
67 82
68 generate_jni("jni_headers") { 83 generate_jni("jni_headers") {
69 sources = device_sensors_jni_sources 84 sources = device_sensors_jni_sources
(...skipping 18 matching lines...) Expand all
88 "fake_platform_sensor_provider.cc", 103 "fake_platform_sensor_provider.cc",
89 "fake_platform_sensor_provider.h", 104 "fake_platform_sensor_provider.h",
90 ] 105 ]
91 106
92 public_deps = [ 107 public_deps = [
93 ":generic_sensor", 108 ":generic_sensor",
94 "//base", 109 "//base",
95 "//testing/gmock", 110 "//testing/gmock",
96 ] 111 ]
97 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698