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