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

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

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: rebased 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 deps += [ ":jni_headers" ] 52 deps += [ ":jni_headers" ]
53 } 53 }
54 54
55 if (is_mac) { 55 if (is_mac) {
56 sources -= [ "platform_sensor_provider_default.cc" ] 56 sources -= [ "platform_sensor_provider_default.cc" ]
57 57
58 deps += [ "//device/sensors/public/cpp" ] 58 deps += [ "//device/sensors/public/cpp" ]
59 59
60 libs = [ "IOKit.framework" ] 60 libs = [ "IOKit.framework" ]
61 } 61 }
62
63 if (is_linux) {
64 sources += [
65 "iio/platform_sensor_utils_iio.cc",
66 "iio/platform_sensor_utils_iio.h",
67 "iio/sensor_data_iio.cc",
68 "iio/sensor_data_iio.h",
69 "platform_sensor_iio.cc",
70 "platform_sensor_iio.h",
71 "platform_sensor_provider_iio.cc",
72 ]
73
74 sources -= [ "platform_sensor_provider_default.cc" ]
75
76 deps += [ "//device/sensors/public/cpp" ]
77 }
62 } 78 }
63 79
64 if (is_android) { 80 if (is_android) {
65 device_sensors_jni_sources = [ 81 device_sensors_jni_sources = [
66 "android/java/src/org/chromium/device/sensors/PlatformSensor.java", 82 "android/java/src/org/chromium/device/sensors/PlatformSensor.java",
67 "android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java", 83 "android/java/src/org/chromium/device/sensors/PlatformSensorProvider.java",
68 ] 84 ]
69 85
70 generate_jni("jni_headers") { 86 generate_jni("jni_headers") {
71 sources = device_sensors_jni_sources 87 sources = device_sensors_jni_sources
(...skipping 18 matching lines...) Expand all
90 "fake_platform_sensor_provider.cc", 106 "fake_platform_sensor_provider.cc",
91 "fake_platform_sensor_provider.h", 107 "fake_platform_sensor_provider.h",
92 ] 108 ]
93 109
94 public_deps = [ 110 public_deps = [
95 ":generic_sensor", 111 ":generic_sensor",
96 "//base", 112 "//base",
97 "//testing/gmock", 113 "//testing/gmock",
98 ] 114 ]
99 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698