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.barbet", 22 cflags: [ 23 "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)", 24 "-DLOG_TAG=\"android.hardware.vibrator-barbet\"", 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: "VibratorHalDrv2624BinaryDefaultsBarbet", 43 defaults: [ 44 "PixelVibratorBinaryDefaults", 45 "android.hardware.vibrator-defaults.barbet", 46 ], 47} 48 49cc_defaults { 50 name: "VibratorHalDrv2624TestDefaultsBarbet", 51 defaults: [ 52 "PixelVibratorTestDefaults", 53 "android.hardware.vibrator-defaults.barbet", 54 ], 55 static_libs: ["android.hardware.vibrator-impl_system.barbet"], 56} 57 58// TODO(eliptus): Combine library definitions when b/129505315 is resolved. 59 60cc_library { 61 name: "android.hardware.vibrator-impl_system.barbet", 62 defaults: ["VibratorHalDrv2624BinaryDefaultsBarbet"], 63 srcs: ["Vibrator.cpp"], 64 export_include_dirs: ["."], 65 visibility: [":__subpackages__"], 66} 67 68cc_library { 69 name: "android.hardware.vibrator-impl_vendor.barbet", 70 defaults: ["VibratorHalDrv2624BinaryDefaultsBarbet"], 71 srcs: ["Vibrator.cpp"], 72 export_include_dirs: ["."], 73 proprietary: true, 74 cppflags: [ 75 "-DVIBRATOR_FACTORY_MODE=0", 76 ], 77} 78 79cc_binary { 80 name: "android.hardware.vibrator-service.barbet", 81 defaults: ["VibratorHalDrv2624BinaryDefaultsBarbet"], 82 init_rc: ["android.hardware.vibrator-service.barbet.rc"], 83 vintf_fragments: ["android.hardware.vibrator-service.barbet.xml"], 84 srcs: ["service.cpp"], 85 static_libs: ["android.hardware.vibrator-impl_vendor.barbet"], 86 proprietary: true, 87 cppflags: [ 88 "-DVIBRATOR_FACTORY_MODE=0", 89 ], 90} 91