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.cs40l25", 22 cflags: [ 23 "-DATRACE_TAG=(ATRACE_TAG_VIBRATOR | ATRACE_TAG_HAL)", 24 "-DLOG_TAG=\"android.hardware.vibrator-cs40l25\"", 25 ], 26 shared_libs: [ 27 "libbinder", 28 ], 29} 30 31cc_defaults { 32 name: "VibratorHalCs40l25BinaryDefaults", 33 defaults: [ 34 "PixelVibratorBinaryDefaults", 35 "android.hardware.vibrator-defaults.cs40l25", 36 ], 37} 38 39cc_defaults { 40 name: "VibratorHalCs40l25TestDefaults", 41 defaults: [ 42 "PixelVibratorTestDefaults", 43 "android.hardware.vibrator-defaults.cs40l25", 44 ], 45 shared_libs: ["android.hardware.vibrator-impl.cs40l25"], 46 include_dirs: [ 47 "external/tinyalsa/include", 48 ], 49} 50 51cc_library_shared { 52 name: "android.hardware.vibrator-impl.cs40l25", 53 defaults: ["VibratorHalCs40l25BinaryDefaults"], 54 srcs: ["Vibrator.cpp"], 55 include_dirs: [ 56 "external/tinyalsa/include", 57 ], 58 shared_libs: [ 59 "libcutils", 60 "libtinyalsa", 61 ], 62 export_include_dirs: ["."], 63 vendor_available: true, 64 visibility: [":__subpackages__"], 65} 66 67cc_binary { 68 name: "android.hardware.vibrator-service.cs40l25", 69 defaults: ["VibratorHalCs40l25BinaryDefaults"], 70 init_rc: ["android.hardware.vibrator-service.cs40l25.rc"], 71 vintf_fragments: ["android.hardware.vibrator-service.cs40l25.xml"], 72 srcs: ["service.cpp"], 73 include_dirs: [ 74 "external/tinyalsa/include" 75 ], 76 shared_libs: [ 77 "android.hardware.vibrator-impl.cs40l25", 78 "libcutils", 79 "libtinyalsa", 80 ], 81 proprietary: true, 82} 83 84cc_binary { 85 name: "android.hardware.vibrator-service.cs40l25-dual", 86 defaults: ["VibratorHalCs40l25BinaryDefaults"], 87 init_rc: ["android.hardware.vibrator-service.cs40l25-dual.rc"], 88 vintf_fragments: ["android.hardware.vibrator-service.cs40l25-dual.xml"], 89 srcs: ["service.cpp"], 90 include_dirs: [ 91 "external/tinyalsa/include" 92 ], 93 shared_libs: [ 94 "android.hardware.vibrator-impl.cs40l25", 95 "libcutils", 96 "libtinyalsa", 97 ], 98 cflags: ["-DVIBRATOR_NAME=\"dual\""], 99 proprietary: true, 100} 101