| OLD | NEW | 
|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") | 
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 
| 7 | 7 | 
| 8 component("vibration") { | 8 component("vibration") { | 
| 9   output_name = "device_vibration" | 9   output_name = "device_vibration" | 
| 10 | 10 | 
| 11   sources = [ | 11   sources = [ | 
| 12     "vibration_export.h", | 12     "vibration_export.h", | 
| 13     "vibration_manager_impl.h", | 13     "vibration_manager_impl.h", | 
| 14     "vibration_manager_impl_android.cc", | 14     "vibration_manager_impl_android.cc", | 
| 15     "vibration_manager_impl_android.h", | 15     "vibration_manager_impl_android.h", | 
| 16     "vibration_manager_impl_default.cc", | 16     "vibration_manager_impl_default.cc", | 
| 17   ] | 17   ] | 
| 18 | 18 | 
| 19   defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ] | 19   defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ] | 
| 20 | 20 | 
| 21   deps = [ | 21   deps = [ | 
| 22     ":mojo_bindings", | 22     ":mojo_bindings", | 
| 23     "//base", | 23     "//base", | 
| 24     "//base/third_party/dynamic_annotations", | 24     "//base/third_party/dynamic_annotations", | 
| 25     "//mojo/environment:chromium", | 25     "//mojo/environment:chromium", | 
| 26     "//mojo/public/cpp/bindings", | 26     "//third_party/mojo/src/mojo/public/cpp/bindings", | 
| 27     "//mojo/edk/system", | 27     "//third_party/mojo/src/mojo/edk/system", | 
| 28   ] | 28   ] | 
| 29 | 29 | 
| 30   if (is_android) { | 30   if (is_android) { | 
| 31     sources -= [ "vibration_manager_impl_default.cc" ] | 31     sources -= [ "vibration_manager_impl_default.cc" ] | 
| 32     deps += [ | 32     deps += [ | 
| 33       "//device/vibration/android", | 33       "//device/vibration/android", | 
| 34       "//device/vibration/android:vibration_jni_headers", | 34       "//device/vibration/android:vibration_jni_headers", | 
| 35     ] | 35     ] | 
| 36   } | 36   } | 
| 37 } | 37 } | 
| 38 | 38 | 
| 39 mojom("mojo_bindings") { | 39 mojom("mojo_bindings") { | 
| 40   sources = [ | 40   sources = [ | 
| 41     "vibration_manager.mojom", | 41     "vibration_manager.mojom", | 
| 42   ] | 42   ] | 
| 43 } | 43 } | 
| OLD | NEW | 
|---|