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

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

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase Created 3 years, 10 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 | « device/BUILD.gn ('k') | device/sensors/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6
7 if (is_android) {
8 import("//build/config/android/rules.gni") # For generate_jni().
9 }
10
11 component("sensors") {
12 sources = [
13 "ambient_light_mac.cc",
14 "ambient_light_mac.h",
15 "android/device_sensor_jni_registrar.cc",
16 "android/device_sensor_jni_registrar.h",
17 "data_fetcher_shared_memory.h",
18 "data_fetcher_shared_memory_android.cc",
19 "data_fetcher_shared_memory_base.cc",
20 "data_fetcher_shared_memory_base.h",
21 "data_fetcher_shared_memory_chromeos.cc",
22 "data_fetcher_shared_memory_default.cc",
23 "data_fetcher_shared_memory_mac.cc",
24 "data_fetcher_shared_memory_win.cc",
25 "device_sensor_export.h",
26 "device_sensor_host.cc",
27 "device_sensor_host.h",
28 "device_sensor_service.cc",
29 "device_sensor_service.h",
30 "device_sensors_consts.h",
31 "sensor_manager_android.cc",
32 "sensor_manager_android.h",
33 "sensor_manager_chromeos.cc",
34 "sensor_manager_chromeos.h",
35 ]
36
37 defines = [ "DEVICE_SENSOR_IMPLEMENTATION" ]
38
39 deps = [
40 "//base",
41 "//device/sensors/public/cpp",
42 "//mojo/public/cpp/bindings",
43 ]
44
45 public_deps = [
46 "//device/sensors/public/interfaces",
47 ]
48
49 if (is_win) {
50 sources -= [ "data_fetcher_shared_memory_default.cc" ]
51 libs = [
52 "sensorsapi.lib",
53 "portabledeviceguids.lib",
54 ]
55 }
56 if (is_android) {
57 sources -= [ "data_fetcher_shared_memory_default.cc" ]
58 deps += [ ":device_sensors_jni_headers" ]
59 }
60 if (is_mac) {
61 sources -= [ "data_fetcher_shared_memory_default.cc" ]
62 deps += [ "//third_party/sudden_motion_sensor" ]
63 libs = [
64 "CoreFoundation.framework",
65 "IOKit.framework",
66 ]
67 }
68 if (is_chromeos) {
69 sources -= [ "data_fetcher_shared_memory_default.cc" ]
70 deps += [
71 "//chromeos",
72 "//ui/gfx",
73 ]
74 }
75 }
76
77 if (is_android) {
78 generate_jni("device_sensors_jni_headers") {
79 sources = [
80 "android/java/src/org/chromium/device/sensors/DeviceSensors.java",
81 ]
82 jni_package = "sensors"
83 }
84
85 android_library("java") {
86 java_files =
87 [ "android/java/src/org/chromium/device/sensors/DeviceSensors.java" ]
88 deps = [
89 "//base:base_java",
90 "//third_party/android_tools:android_support_annotations_java",
91 ]
92 srcjar_deps = [ ":device_sensors_android_java_enums_srcjar" ]
93 }
94
95 android_library("javatests") {
96 testonly = true
97 java_files = [ "android/javatests/src/org/chromium/device/sensors/DeviceSens orsTest.java" ]
98 deps = [
99 ":java",
100 "//third_party/android_support_test_runner:runner_java",
101 ]
102 }
103
104 java_cpp_enum("device_sensors_android_java_enums_srcjar") {
105 sources = [
106 "device_sensors_consts.h",
107 "sensor_manager_android.h",
108 ]
109 }
110 }
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/sensors/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698