1// 2// Copyright (C) 2021 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.cs40l26-private", 22 cflags: [ 23 "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)", 24 ], 25 shared_libs: [ 26 "libbinder", 27 ], 28} 29 30cc_defaults { 31 name: "VibratorHalCs40l26BinaryDefaultsPrivate", 32 defaults: [ 33 "PixelVibratorBinaryDefaultsPrivate", 34 "android.hardware.vibrator-defaults.cs40l26-private", 35 ], 36 shared_libs: [ 37 "libcutils", 38 "libtinyalsa", 39 ], 40 include_dirs: [ 41 "external/tinyalsa/include", 42 ], 43} 44 45cc_defaults { 46 name: "VibratorHalCs40l26TestDefaultsPrivate", 47 defaults: [ 48 "PixelVibratorTestDefaultsPrivate", 49 "android.hardware.vibrator-defaults.cs40l26-private", 50 ], 51 static_libs: [ 52 "android.hardware.vibrator-impl.cs40l26-private", 53 "libtinyalsa", 54 ], 55} 56 57cc_library { 58 name: "android.hardware.vibrator-impl.cs40l26-private", 59 defaults: ["VibratorHalCs40l26BinaryDefaultsPrivate"], 60 srcs: [ 61 "Vibrator.cpp", 62 ], 63 shared_libs: ["//device/google/gs-common:PixelVibratorFlagsL26"], 64 export_include_dirs: ["."], 65 vendor_available: true, 66 visibility: [":__subpackages__"], 67} 68 69cc_binary { 70 name: "android.hardware.vibrator-service.cs40l26-private", 71 defaults: ["VibratorHalCs40l26BinaryDefaultsPrivate"], 72 init_rc: ["android.hardware.vibrator-service.cs40l26-private.rc"], 73 vintf_fragments: ["android.hardware.vibrator-service.cs40l26-private.xml"], 74 srcs: ["service.cpp"], 75 shared_libs: [ 76 "android.hardware.vibrator-impl.cs40l26-private", 77 ], 78 proprietary: true, 79} 80