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@1.3-defaults.sunfish", 22 defaults: ["PixelVibratorDefaultsSunfish"], 23 shared_libs: [ 24 "android.hardware.vibrator@1.0", 25 "android.hardware.vibrator@1.1", 26 "android.hardware.vibrator@1.2", 27 "android.hardware.vibrator@1.3", 28 ], 29 cflags: [ 30 "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)", 31 "-DLOG_TAG=\"android.hardware.vibrator@1.3-sunfish\"", 32 ], 33} 34 35cc_defaults { 36 name: "VibratorHalDrv2624TestDefaultsSunfish", 37 defaults: ["android.hardware.vibrator@1.3-defaults.sunfish"], 38 static_libs: ["android.hardware.vibrator@1.3-impl.sunfish"], 39 test_suites: ["device-tests"], 40 require_root: true, 41} 42 43cc_library { 44 name: "android.hardware.vibrator@1.3-impl.sunfish", 45 defaults: ["android.hardware.vibrator@1.3-defaults.sunfish"], 46 srcs: ["Vibrator.cpp"], 47 export_include_dirs: ["."], 48 vendor_available: true, 49} 50 51cc_binary { 52 name: "android.hardware.vibrator@1.3-service.sunfish", 53 defaults: ["android.hardware.vibrator@1.3-defaults.sunfish"], 54 srcs: ["service.cpp"], 55 static_libs: ["android.hardware.vibrator@1.3-impl.sunfish"], 56 proprietary: true, 57} 58 59prebuilt_firmware { 60 name: "drv2624.bin.sunfish", 61 src: "drv2624.bin", 62 filename_from_src: true, 63 proprietary: true, 64} 65