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

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

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: update git log 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
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 "//ui/gfx",
44 ]
45
46 public_deps = [
47 "//device/sensors/public/interfaces",
48 ]
49
50 if (is_win) {
51 sources -= [ "data_fetcher_shared_memory_default.cc" ]
52 libs = [
53 "sensorsapi.lib",
54 "portabledeviceguids.lib",
55 ]
56 }
57 if (is_android) {
58 sources -= [ "data_fetcher_shared_memory_default.cc" ]
59 deps += [ ":device_sensors_jni_headers" ]
60 }
61 if (is_mac) {
62 sources -= [ "data_fetcher_shared_memory_default.cc" ]
63 deps += [ "//third_party/sudden_motion_sensor" ]
64 libs = [
65 "CoreFoundation.framework",
66 "IOKit.framework",
67 ]
68 }
69 if (is_chromeos) {
70 sources -= [ "data_fetcher_shared_memory_default.cc" ]
71 deps += [ "//chromeos" ]
72 }
73 }
74
75 if (is_android) {
76 generate_jni("device_sensors_jni_headers") {
77 sources = [
78 "android/java/src/org/chromium/device/sensors/DeviceSensors.java",
79 ]
80 jni_package = "sensors"
81 }
82
83 android_library("java") {
84 java_files =
85 [ "android/java/src/org/chromium/device/sensors/DeviceSensors.java" ]
86 deps = [
87 "//base:base_java",
88 "//third_party/android_tools:android_support_annotations_java",
89 ]
90 srcjar_deps = [ ":device_sensors_android_java_enums_srcjar" ]
91 }
92
93 java_cpp_enum("device_sensors_android_java_enums_srcjar") {
94 sources = [
95 "device_sensors_consts.h",
96 "sensor_manager_android.h",
97 ]
98 }
99 }
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/sensors/DEPS » ('j') | device/sensors/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698