summaryrefslogtreecommitdiffstats
path: root/device/vibration/BUILD.gn
blob: 443e2dd32375b7fecae4aad28fb3d161981ec561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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.h",
    "vibration_manager_impl_default.cc",
  ]

  defines = [ "DEVICE_VIBRATION_IMPLEMENTATION" ]

  deps = [
    ":mojo_bindings",
    "//base",
    "//base/third_party/dynamic_annotations",
    "//mojo/edk/system",
    "//mojo/public/cpp/bindings",
  ]

  if (is_android) {
    sources -= [ "vibration_manager_impl_default.cc" ]
  }
}

mojom("mojo_bindings") {
  sources = [
    "vibration_manager.mojom",
  ]
}