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

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

Issue 2885203004: Refactor content/renderer/device_sensors to use device/generic_sensor instead of device/sensors (Closed)
Patch Set: updated content/renderer/BUILD.gn 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 # This target contains only those files that are shared by the Device Sensors
6 # implementation and all Device Sensors clients, including Blink. Add a file
7 # here only if it meets the following constraints:
8 # (1) It is *necessary* to use the file to consume Device Sensors (the
9 # current files define structs that are used as a consistent interpretation of
10 # shared memory by the Device Sensor and its clients).
11 # (2) The file has no dependencies on the STL or Chromium code and will not
12 # grow them over time (the current files are POD structs and will necessarily
13 # stay that way due to their above-described purpose).
14 # If a file does not meet these constraints, it cannot be used by the Blink
15 # client and should be placed in the "full" target below. Similarly, clients
16 # without Blink's constraints should depend on the "full" target below rather
17 # than this one.
18 # Consult {platform-architecture-dev, services-dev}@chromium.org in the case
19 # of any uncertainty.
20 source_set("shared_with_blink") {
21 sources = [
22 "motion_data.cc",
23 "motion_data.h",
24 "orientation_data.cc",
25 "orientation_data.h",
26 ]
27 # Do not add deps here per the above comment.
28 }
29
30 # This target is a superset of the above one that contains additional optional
31 # files available to Device Sensors clients. This target may bring in
32 # dependencies on the STL and Chromium code.
33 source_set("full") {
34 sources = [
35 "device_motion_hardware_buffer.h",
36 "device_orientation_hardware_buffer.h",
37 ]
38
39 public_deps = [
40 ":shared_with_blink",
41 "//device/base/synchronization",
42 ]
43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698