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", 22 cflags: [ 23 "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)", 24 "-DLOG_TAG=\"android.hardware.vibrator-cs40l26\"", 25 ], 26 shared_libs: [ 27 "libbinder", 28 ], 29} 30 31cc_defaults { 32 name: "VibratorHalCs40l26BinaryDefaults", 33 defaults: [ 34 "PixelVibratorBinaryDefaults", 35 "android.hardware.vibrator-defaults.cs40l26", 36 ], 37} 38 39cc_defaults { 40 name: "VibratorHalCs40l26TestDefaults", 41 defaults: [ 42 "PixelVibratorTestDefaults", 43 "android.hardware.vibrator-defaults.cs40l26", 44 ], 45 shared_libs: ["android.hardware.vibrator-impl.cs40l26"], 46 include_dirs: [ 47 "external/tinyalsa/include", 48 ], 49} 50 51cc_library_shared { 52 name: "android.hardware.vibrator-impl.cs40l26", 53 defaults: ["VibratorHalCs40l26BinaryDefaults"], 54 srcs: ["Vibrator.cpp"], 55 include_dirs: [ 56 "external/tinyalsa/include", 57 ], 58 shared_libs: [ 59 "libcutils", 60 "libtinyalsa", 61 ], 62 export_include_dirs: ["."], 63 vendor_available: true, 64 visibility: [":__subpackages__"], 65} 66 67cc_binary { 68 name: "android.hardware.vibrator-service.cs40l26", 69 defaults: ["VibratorHalCs40l26BinaryDefaults"], 70 init_rc: ["android.hardware.vibrator-service.cs40l26.rc"], 71 vintf_fragments: ["android.hardware.vibrator-service.cs40l26.xml"], 72 srcs: ["service.cpp"], 73 include_dirs: [ 74 "external/tinyalsa/include" 75 ], 76 shared_libs: [ 77 "android.hardware.vibrator-impl.cs40l26", 78 "libcutils", 79 "libtinyalsa", 80 ], 81 proprietary: true, 82} 83 84cc_binary { 85 name: "android.hardware.vibrator-service.cs40l26-dual", 86 defaults: ["VibratorHalCs40l26BinaryDefaults"], 87 init_rc: ["android.hardware.vibrator-service.cs40l26-dual.rc"], 88 vintf_fragments: ["android.hardware.vibrator-service.cs40l26-dual.xml"], 89 srcs: ["service.cpp"], 90 include_dirs: [ 91 "external/tinyalsa/include" 92 ], 93 shared_libs: [ 94 "android.hardware.vibrator-impl.cs40l26", 95 "libcutils", 96 "libtinyalsa", 97 ], 98 cflags: ["-DVIBRATOR_NAME=\"dual\""], 99 proprietary: true, 100} 101 102cc_binary { 103 name: "android.hardware.vibrator-service.cs40l26-evt", 104 defaults: ["VibratorHalCs40l26BinaryDefaults"], 105 init_rc: ["android.hardware.vibrator-service.cs40l26-evt.rc"], 106 vintf_fragments: ["android.hardware.vibrator-service.cs40l26.xml"], 107 srcs: ["service.cpp"], 108 include_dirs: [ 109 "external/tinyalsa/include" 110 ], 111 shared_libs: [ 112 "android.hardware.vibrator-impl.cs40l26", 113 "libcutils", 114 "libtinyalsa", 115 ], 116 proprietary: true, 117} 118 119cc_binary { 120 name: "android.hardware.vibrator-service.cs40l26-evt-dual", 121 defaults: ["VibratorHalCs40l26BinaryDefaults"], 122 init_rc: ["android.hardware.vibrator-service.cs40l26-evt-dual.rc"], 123 vintf_fragments: ["android.hardware.vibrator-service.cs40l26-dual.xml"], 124 srcs: ["service.cpp"], 125 include_dirs: [ 126 "external/tinyalsa/include" 127 ], 128 shared_libs: [ 129 "android.hardware.vibrator-impl.cs40l26", 130 "libcutils", 131 "libtinyalsa", 132 ], 133 cflags: ["-DVIBRATOR_NAME=\"dual\""], 134 proprietary: true, 135} 136 137cc_binary { 138 name: "android.hardware.vibrator-service.cs40l26-dvt", 139 defaults: ["VibratorHalCs40l26BinaryDefaults"], 140 init_rc: ["android.hardware.vibrator-service.cs40l26-dvt.rc"], 141 vintf_fragments: ["android.hardware.vibrator-service.cs40l26.xml"], 142 srcs: ["service.cpp"], 143 include_dirs: [ 144 "external/tinyalsa/include" 145 ], 146 shared_libs: [ 147 "android.hardware.vibrator-impl.cs40l26", 148 "libcutils", 149 "libtinyalsa", 150 ], 151 proprietary: true, 152} 153 154cc_binary { 155 name: "android.hardware.vibrator-service.cs40l26-dvt-dual", 156 defaults: ["VibratorHalCs40l26BinaryDefaults"], 157 init_rc: ["android.hardware.vibrator-service.cs40l26-dvt-dual.rc"], 158 vintf_fragments: ["android.hardware.vibrator-service.cs40l26-dual.xml"], 159 srcs: ["service.cpp"], 160 include_dirs: [ 161 "external/tinyalsa/include" 162 ], 163 shared_libs: [ 164 "android.hardware.vibrator-impl.cs40l26", 165 "libcutils", 166 "libtinyalsa", 167 ], 168 cflags: ["-DVIBRATOR_NAME=\"dual\""], 169 proprietary: true, 170} 171