• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_defaults {
21    name: "android.hardware.vibrator-defaults.bramble",
22    cflags: [
23        "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)",
24        "-DLOG_TAG=\"android.hardware.vibrator-bramble\"",
25    ],
26    shared_libs: [
27        "libandroid",
28    ],
29    target: {
30        vendor: {
31            exclude_shared_libs: [
32                "libandroid",
33            ],
34            shared_libs: [
35                "libsensorndkbridge",
36            ],
37        }
38    },
39}
40
41cc_defaults {
42    name: "VibratorHalDrv2624BinaryDefaultsBramble",
43    defaults: [
44        "PixelVibratorBinaryDefaults",
45        "android.hardware.vibrator-defaults.bramble",
46    ],
47}
48
49cc_defaults {
50    name: "VibratorHalDrv2624TestDefaultsBramble",
51    defaults: [
52        "PixelVibratorTestDefaults",
53        "android.hardware.vibrator-defaults.bramble",
54    ],
55    static_libs: ["android.hardware.vibrator-impl.bramble"],
56}
57
58cc_library {
59    name: "android.hardware.vibrator-impl.bramble",
60    defaults: ["VibratorHalDrv2624BinaryDefaultsBramble"],
61    srcs: ["Vibrator.cpp"],
62    export_include_dirs: ["."],
63    vendor_available: true,
64    visibility: [":__subpackages__"],
65}
66
67cc_binary {
68    name: "android.hardware.vibrator-service.bramble",
69    defaults: ["VibratorHalDrv2624BinaryDefaultsBramble"],
70    init_rc: ["android.hardware.vibrator-service.bramble.rc"],
71    vintf_fragments: ["android.hardware.vibrator-service.bramble.xml"],
72    srcs: ["service.cpp"],
73    static_libs: ["android.hardware.vibrator-impl.bramble"],
74    proprietary: true,
75}
76