• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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.redfin",
22    cflags: [
23        "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)",
24        "-DLOG_TAG=\"android.hardware.vibrator-redfin\"",
25    ],
26}
27
28cc_defaults {
29    name: "VibratorHalDrv2624BinaryDefaultsRedfin",
30    defaults: [
31        "PixelVibratorBinaryDefaults",
32        "android.hardware.vibrator-defaults.redfin",
33    ],
34    target: {
35        android: {
36            // TODO: Add sensor stub for tests.
37        },
38        vendor: {
39            shared_libs: [
40                "libsensorndkbridge",
41            ],
42        }
43    },
44}
45
46cc_library {
47    name: "android.hardware.vibrator-impl.redfin",
48    defaults: ["VibratorHalDrv2624BinaryDefaultsRedfin"],
49    srcs: ["Vibrator.cpp"],
50    export_include_dirs: ["."],
51    proprietary: true,
52    visibility: [":__subpackages__"],
53}
54
55cc_binary {
56    name: "android.hardware.vibrator-service.redfin",
57    defaults: ["VibratorHalDrv2624BinaryDefaultsRedfin"],
58    init_rc: ["android.hardware.vibrator-service.redfin.rc"],
59    vintf_fragments: ["android.hardware.vibrator-service.redfin.xml"],
60    srcs: ["service.cpp"],
61    static_libs: ["android.hardware.vibrator-impl.redfin"],
62    proprietary: true,
63}
64