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

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

Issue 2476363003: [sensors][win] Implementation of motion sensors for Win platform (Closed)
Patch Set: Rebased to master 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
« no previous file with comments | « no previous file | device/generic_sensor/generic_sensor_consts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 component("generic_sensor") { 11 component("generic_sensor") {
12 output_name = "generic_sensor" 12 output_name = "generic_sensor"
13 sources = [ 13 sources = [
14 "generic_sensor_consts.h",
14 "linux/platform_sensor_utils_linux.cc", 15 "linux/platform_sensor_utils_linux.cc",
15 "linux/platform_sensor_utils_linux.h", 16 "linux/platform_sensor_utils_linux.h",
16 "linux/sensor_data_linux.cc", 17 "linux/sensor_data_linux.cc",
17 "linux/sensor_data_linux.h", 18 "linux/sensor_data_linux.h",
18 "platform_sensor.cc", 19 "platform_sensor.cc",
19 "platform_sensor.h", 20 "platform_sensor.h",
20 "platform_sensor_ambient_light_mac.cc", 21 "platform_sensor_ambient_light_mac.cc",
21 "platform_sensor_ambient_light_mac.h", 22 "platform_sensor_ambient_light_mac.h",
22 "platform_sensor_android.cc", 23 "platform_sensor_android.cc",
23 "platform_sensor_android.h", 24 "platform_sensor_android.h",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 "android/sensors_jni_registrar.h", 64 "android/sensors_jni_registrar.h",
64 ] 65 ]
65 66
66 deps += [ ":jni_headers" ] 67 deps += [ ":jni_headers" ]
67 } 68 }
68 69
69 if (is_mac || is_linux) { 70 if (is_mac || is_linux) {
70 deps += [ "//device/sensors/public/cpp" ] 71 deps += [ "//device/sensors/public/cpp" ]
71 } 72 }
72 73
73 if (is_linux) {
74 sources += [ "generic_sensor_consts.h" ]
75 }
76
77 if (is_mac) { 74 if (is_mac) {
78 libs = [ "IOKit.framework" ] 75 libs = [ "IOKit.framework" ]
79 } 76 }
80 77
81 if (is_win) { 78 if (is_win) {
82 libs = [ 79 libs = [
83 "portabledeviceguids.lib", 80 "portabledeviceguids.lib",
84 "sensorsapi.lib", 81 "sensorsapi.lib",
85 ] 82 ]
86 } 83 }
(...skipping 28 matching lines...) Expand all
115 "fake_platform_sensor_provider.cc", 112 "fake_platform_sensor_provider.cc",
116 "fake_platform_sensor_provider.h", 113 "fake_platform_sensor_provider.h",
117 ] 114 ]
118 115
119 public_deps = [ 116 public_deps = [
120 ":generic_sensor", 117 ":generic_sensor",
121 "//base", 118 "//base",
122 "//testing/gmock", 119 "//testing/gmock",
123 ] 120 ]
124 } 121 }
OLDNEW
« no previous file with comments | « no previous file | device/generic_sensor/generic_sensor_consts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698