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

Unified Diff: device/vibration/BUILD.gn

Issue 2755363002: [DeviceService] Port VibrationManager to be hosted in Device Service (Closed)
Patch Set: Rebase only Created 3 years, 9 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 | « content/renderer/DEPS ('k') | services/device/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vibration/BUILD.gn
diff --git a/device/vibration/BUILD.gn b/device/vibration/BUILD.gn
index 22509a12989e3ddc6ea6d6209b7bcb2095d6a980..d9a9913a214d7658bfc98a426194966d2f28bd61 100644
--- a/device/vibration/BUILD.gn
+++ b/device/vibration/BUILD.gn
@@ -5,26 +5,25 @@
import("//build/config/features.gni")
import("//mojo/public/tools/bindings/mojom.gni")
-component("vibration") {
- output_name = "device_vibration"
+# On android, VibrationManager mojo interface is implemented directly in Java.
+if (!is_android) {
+ component("vibration") {
+ output_name = "device_vibration"
- sources = [
- "vibration_export.h",
- "vibration_manager_impl.h",
- "vibration_manager_impl_default.cc",
- ]
+ sources = [
+ "vibration_export.h",
+ "vibration_manager_impl.h",
+ "vibration_manager_impl_default.cc",
+ ]
- defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ]
-
- deps = [
- ":mojo_bindings",
- "//base",
- "//base/third_party/dynamic_annotations",
- "//mojo/public/cpp/bindings",
- ]
+ defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ]
- if (is_android) {
- sources -= [ "vibration_manager_impl_default.cc" ]
+ deps = [
+ ":mojo_bindings",
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//mojo/public/cpp/bindings",
+ ]
}
}
« no previous file with comments | « content/renderer/DEPS ('k') | services/device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698