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

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

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « services/device/device_service.cc ('k') | services/device/generic_sensor/DEPS » ('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 source_set("generic_sensor") {
12 output_name = "generic_sensor" 12 output_name = "generic_sensor"
13 sources = [ 13 sources = [
14 "generic_sensor_consts.h", 14 "generic_sensor_consts.h",
15 "generic_sensor_export.h",
16 "linux/sensor_data_linux.cc", 15 "linux/sensor_data_linux.cc",
17 "linux/sensor_data_linux.h", 16 "linux/sensor_data_linux.h",
18 "platform_sensor.cc", 17 "platform_sensor.cc",
19 "platform_sensor.h", 18 "platform_sensor.h",
20 "platform_sensor_accelerometer_mac.cc", 19 "platform_sensor_accelerometer_mac.cc",
21 "platform_sensor_accelerometer_mac.h", 20 "platform_sensor_accelerometer_mac.h",
22 "platform_sensor_ambient_light_mac.cc", 21 "platform_sensor_ambient_light_mac.cc",
23 "platform_sensor_ambient_light_mac.h", 22 "platform_sensor_ambient_light_mac.h",
24 "platform_sensor_android.cc", 23 "platform_sensor_android.cc",
25 "platform_sensor_android.h", 24 "platform_sensor_android.h",
(...skipping 14 matching lines...) Expand all
40 "platform_sensor_reader_win.cc", 39 "platform_sensor_reader_win.cc",
41 "platform_sensor_reader_win.h", 40 "platform_sensor_reader_win.h",
42 "platform_sensor_win.cc", 41 "platform_sensor_win.cc",
43 "platform_sensor_win.h", 42 "platform_sensor_win.h",
44 "sensor_impl.cc", 43 "sensor_impl.cc",
45 "sensor_impl.h", 44 "sensor_impl.h",
46 "sensor_provider_impl.cc", 45 "sensor_provider_impl.cc",
47 "sensor_provider_impl.h", 46 "sensor_provider_impl.h",
48 ] 47 ]
49 48
50 defines = [ "DEVICE_GENERIC_SENSOR_IMPLEMENTATION" ]
51
52 deps = [ 49 deps = [
53 "//base", 50 "//base",
54 "//device/base/synchronization", 51 "//device/base/synchronization",
55 ] 52 ]
56 53
57 public_deps = [ 54 public_deps = [
58 "//device/generic_sensor/public/cpp", 55 "//services/device/public/cpp/generic_sensor",
59 ] 56 ]
60 57
61 if (is_android) { 58 if (is_android) {
62 sources += [ 59 sources += [
63 "android/sensors_jni_registrar.cc", 60 "android/sensors_jni_registrar.cc",
64 "android/sensors_jni_registrar.h", 61 "android/sensors_jni_registrar.h",
65 ] 62 ]
66 63
67 deps += [ ":jni_headers" ] 64 deps += [ ":jni_headers" ]
68 } 65 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 generate_jni("jni_headers") { 106 generate_jni("jni_headers") {
110 sources = device_sensors_jni_sources 107 sources = device_sensors_jni_sources
111 jni_package = "device" 108 jni_package = "device"
112 } 109 }
113 110
114 android_library("java") { 111 android_library("java") {
115 java_files = device_sensors_jni_sources 112 java_files = device_sensors_jni_sources
116 113
117 deps = [ 114 deps = [
118 "//base:base_java", 115 "//base:base_java",
119 "//device/generic_sensor/public/interfaces:interfaces_java", 116 "//services/device/public/interfaces:generic_sensor_java",
120 ] 117 ]
121 } 118 }
122 } 119 }
123 120
124 static_library("testing") { 121 static_library("testing") {
125 testonly = true 122 testonly = true
126 sources = [ 123 sources = [
127 "fake_platform_sensor.cc", 124 "fake_platform_sensor.cc",
128 "fake_platform_sensor.h", 125 "fake_platform_sensor.h",
129 "fake_platform_sensor_provider.cc", 126 "fake_platform_sensor_provider.cc",
130 "fake_platform_sensor_provider.h", 127 "fake_platform_sensor_provider.h",
131 ] 128 ]
132 129
133 public_deps = [ 130 public_deps = [
134 ":generic_sensor", 131 ":generic_sensor",
135 "//base", 132 "//base",
136 "//testing/gmock", 133 "//testing/gmock",
137 ] 134 ]
138 } 135 }
OLDNEW
« no previous file with comments | « services/device/device_service.cc ('k') | services/device/generic_sensor/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698