| Index: device/vibration/BUILD.gn
|
| diff --git a/device/vibration/BUILD.gn b/device/vibration/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7911fc78d187a10a7e45e4565e11321bbb1cda94
|
| --- /dev/null
|
| +++ b/device/vibration/BUILD.gn
|
| @@ -0,0 +1,45 @@
|
| +# Copyright 2014 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.
|
| +
|
| +import("//build/config/features.gni")
|
| +import("//mojo/public/tools/bindings/mojom.gni")
|
| +
|
| +component("vibration") {
|
| + output_name = "device_vibration"
|
| +
|
| + sources = [
|
| + "vibration_export.h",
|
| + "vibration_manager_impl.cc",
|
| + "vibration_manager_impl.h",
|
| + "vibration_provider.h",
|
| + "vibration_provider_android.cc",
|
| + "vibration_provider_android.h",
|
| + ]
|
| +
|
| + defines = [
|
| + "DEVICE_VIBRATION_IMPLEMENTATION",
|
| + ]
|
| +
|
| + deps = [
|
| + ":mojo_bindings",
|
| + "//base",
|
| + "//base/third_party/dynamic_annotations",
|
| + "//mojo/environment:chromium",
|
| + "//mojo/public/cpp/bindings",
|
| + "//mojo/system",
|
| + ]
|
| +
|
| + if (is_android) {
|
| + deps += [
|
| + "//device/vibration/android",
|
| + "//device/vibration/android:vibration_jni_headers",
|
| + ]
|
| + }
|
| +}
|
| +
|
| +mojom("mojo_bindings") {
|
| + sources = [
|
| + "vibration_manager.mojom",
|
| + ]
|
| +}
|
|
|