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.drv2624", 22 cflags: [ 23 "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)", 24 "-DLOG_TAG=\"android.hardware.vibrator-drv2624\"", 25 ], 26} 27 28cc_defaults { 29 name: "VibratorHalDrv2624BinaryDefaults", 30 defaults: [ 31 "PixelVibratorBinaryDefaults", 32 "android.hardware.vibrator-defaults.drv2624", 33 ], 34} 35 36cc_defaults { 37 name: "VibratorHalDrv2624TestDefaults", 38 defaults: [ 39 "PixelVibratorTestDefaults", 40 "android.hardware.vibrator-defaults.drv2624", 41 ], 42 static_libs: ["android.hardware.vibrator-impl.drv2624"], 43} 44 45cc_library { 46 name: "android.hardware.vibrator-impl.drv2624", 47 defaults: ["VibratorHalDrv2624BinaryDefaults"], 48 srcs: ["Vibrator.cpp"], 49 export_include_dirs: ["."], 50 vendor_available: true, 51 visibility: [":__subpackages__"], 52} 53 54cc_binary { 55 name: "android.hardware.vibrator-service.drv2624", 56 defaults: ["VibratorHalDrv2624BinaryDefaults"], 57 init_rc: ["android.hardware.vibrator-service.drv2624.rc"], 58 vintf_fragments: ["android.hardware.vibrator-service.drv2624.xml"], 59 srcs: ["service.cpp"], 60 static_libs: ["android.hardware.vibrator-impl.drv2624"], 61 proprietary: true, 62} 63