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

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

Issue 1164563003: Extract device_sensors to /device via Mojofication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « content/renderer/shared_memory_seqlock_reader.cc ('k') | device/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 2015 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 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
7
8 component("device_sensors") {
9 output_name = "device_device_sensors"
10 sources = [
11 "ambient_light_mac.cc",
12 "ambient_light_mac.h",
13 "data_fetcher_shared_memory.h",
14 "data_fetcher_shared_memory_android.cc",
15 "data_fetcher_shared_memory_base.cc",
16 "data_fetcher_shared_memory_base.h",
17 "data_fetcher_shared_memory_chromeos.cc",
18 "data_fetcher_shared_memory_default.cc",
19 "data_fetcher_shared_memory_mac.cc",
20 "data_fetcher_shared_memory_win.cc",
21 "device_inertial_sensor_service.cc",
22 "device_inertial_sensor_service.h",
23 "device_light_data.h",
24 "device_light_hardware_buffer.h",
25 "device_motion_hardware_buffer.h",
26 "device_orientation_hardware_buffer.h",
27 "device_sensors_export.h",
28 "device_sensors_light_impl.cc",
29 "device_sensors_light_impl.h",
30 "device_sensors_motion_impl.cc",
31 "device_sensors_motion_impl.h",
32 "device_sensors_orientation_impl.cc",
33 "device_sensors_orientation_impl.h",
34 "inertial_sensor_consts.h",
35 "sensor_manager_android.cc",
36 "sensor_manager_android.h",
37 "sensor_manager_chromeos.cc",
38 "sensor_manager_chromeos.h",
39 ]
40
41 defines = [ "DEVICE_SENSORS_IMPLEMENTATION" ]
42
43 deps = [
44 ":mojo_bindings",
45 "//base",
46 "//base/third_party/dynamic_annotations",
47 "//components/shared_memory_seqlock",
48 "//mojo/environment:chromium",
49 "//third_party/WebKit/public:blink_headers",
50 ]
51
52 if (is_chromeos) {
53 deps += [
54 "//chromeos:chromeos",
55 ]
56 sources += [
57 "data_fetcher_shared_memory_default.cc",
58 ]
59 }
60
61 if (is_mac) {
62 sources -= [ "data_fetcher_shared_memory_default.cc" ]
63 deps += [ "//third_party/sudden_motion_sensor" ]
64 }
65
66 if (is_win) {
67 sources -= [ "data_fetcher_shared_memory_default.cc" ]
68 }
69 }
70
71 source_set("mojo_bindings") {
72 sources = [
73 "type_converters.cc",
74 "type_converters.h",
75 ]
76
77 public_deps = [
78 ":mojom_bindings",
79 ]
80
81 deps = [
82 "//base",
83 "//third_party/mojo/src/mojo/public/cpp/bindings",
84 "//third_party/mojo/src/mojo/edk/system",
85 ]
86 }
87
88 mojom("mojom_bindings") {
89 sources = [
90 "device_sensors.mojom",
91 ]
92 }
OLDNEW
« no previous file with comments | « content/renderer/shared_memory_seqlock_reader.cc ('k') | device/device_sensors/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698