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

Unified Diff: device/generic_sensor/BUILD.gn

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: Comments from Alex 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 f8062f74fb411d982573dc935550f97d30821860..f86102fff227cac6e3569d3bee6cb59ddb8f76dc 100644
--- a/device/generic_sensor/BUILD.gn
+++ b/device/generic_sensor/BUILD.gn
@@ -50,6 +50,22 @@ source_set("generic_sensor") {
deps += [ "//device/sensors/public/cpp" ]
}
+
+ 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) {
@@ -85,6 +101,7 @@ static_library("testing") {
public_deps = [
":generic_sensor",
"//base",
+ "//device/generic_sensor/public/cpp",
"//device/generic_sensor/public/interfaces",
]
}

Powered by Google App Engine
This is Rietveld 408576698