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

Unified Diff: device/generic_sensor/BUILD.gn

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: rebased Created 4 years, 2 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 7f055524ee78af7c9f52934a7ee1a386080c73d8..daa818209a44121db474ad32a663add537f88729 100644
--- a/device/generic_sensor/BUILD.gn
+++ b/device/generic_sensor/BUILD.gn
@@ -59,6 +59,22 @@ component("generic_sensor") {
libs = [ "IOKit.framework" ]
}
+
+ if (is_linux) {
+ sources += [
+ "iio/platform_sensor_utils_iio.cc",
+ "iio/platform_sensor_utils_iio.h",
+ "iio/sensor_data_iio.cc",
+ "iio/sensor_data_iio.h",
+ "platform_sensor_iio.cc",
+ "platform_sensor_iio.h",
+ "platform_sensor_provider_iio.cc",
+ ]
+
+ sources -= [ "platform_sensor_provider_default.cc" ]
+
+ deps += [ "//device/sensors/public/cpp" ]
+ }
}
if (is_android) {

Powered by Google App Engine
This is Rietveld 408576698