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

Unified Diff: device/generic_sensor/BUILD.gn

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: ctor and dtor for deleter Created 4 years, 3 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
Index: device/generic_sensor/BUILD.gn
diff --git a/device/generic_sensor/BUILD.gn b/device/generic_sensor/BUILD.gn
index 75bed031f0401f23d4c3f4c84449074e987b601c..c38df715b13ed7b54514c1fcb5c87a4fd4c74d77 100644
--- a/device/generic_sensor/BUILD.gn
+++ b/device/generic_sensor/BUILD.gn
@@ -39,6 +39,20 @@ source_set("generic_sensor") {
deps += [ ":jni_headers" ]
}
+
+ if (is_chromeos || is_linux) {
+ sources += [
+ "ambient_light_reader_iio.cc",
+ "ambient_light_reader_iio.h",
+ "platform_sensor_ambient_light_iio.cc",
+ "platform_sensor_ambient_light_iio.h",
+ "platform_sensor_provider_iio.cc",
+ "polling_platform_sensor.cc",
+ "polling_platform_sensor.h",
+ ]
+
+ sources -= [ "platform_sensor_provider_default.cc" ]
+ }
}
if (is_android) {

Powered by Google App Engine
This is Rietveld 408576698