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