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

Unified Diff: device/gamepad/public/cpp/BUILD.gn

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/gamepad/gamepad_user_gesture.cc ('k') | device/gamepad/public/cpp/gamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/public/cpp/BUILD.gn
diff --git a/device/gamepad/public/cpp/BUILD.gn b/device/gamepad/public/cpp/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..fdec85b8d42377e8d48e6246ea49a02fd6e2dfa1
--- /dev/null
+++ b/device/gamepad/public/cpp/BUILD.gn
@@ -0,0 +1,23 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This target contains only those files that are shared by the Device Gamepad
+# implementation and all Device Gamepad clients, including Blink. Add a file
+# here only if it meets the following constraints:
+# (1) It is *necessary* to use the file to consume Device Gamepad (the
+# current files define structs that are used as a consistent interpretation of
+# shared memory by the Device Gamepad and its clients).
+# (2) The file has no dependencies on the STL or Chromium code and will not
+# grow them over time (the current files are POD structs and will necessarily
+# stay that way due to their above-described purpose).
+# Consult {platform-architecture-dev, services-dev}@chromium.org in the case
+# of any uncertainty.
+source_set("shared_with_blink") {
+ sources = [
+ "gamepad.cc",
+ "gamepad.h",
+ "gamepads.h",
+ ]
+ # Do not add deps here per the above comment.
+}
« no previous file with comments | « device/gamepad/gamepad_user_gesture.cc ('k') | device/gamepad/public/cpp/gamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698