1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_native_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_native_license"], 22} 23 24cc_defaults { 25 name: "libvibrator_defaults", 26 27 defaults: [ 28 "aconfig_lib_cc_shared_link.defaults", 29 ], 30 31 cflags: [ 32 "-Wall", 33 "-Werror", 34 "-Wno-missing-field-initializers", 35 "-Wno-unused-variable", 36 "-Wno-unused-parameter", 37 ], 38 39 export_include_dirs: ["include"], 40 41 host_supported: true, 42 target: { 43 darwin: { 44 enabled: false, 45 }, 46 }, 47} 48 49cc_library { 50 name: "libvibrator", 51 defaults: ["libvibrator_defaults"], 52 53 shared_libs: [ 54 "libbinder", 55 "liblog", 56 "libutils", 57 "server_configurable_flags", 58 ], 59 60 whole_static_libs: [ 61 "android.os.vibrator.flags-aconfig-cc", 62 "libvibratorutils", 63 ], 64 65 header_libs: [ 66 "libaudio_system_headers", 67 ], 68 69 aidl: { 70 include_dirs: ["frameworks/base/core/java"], 71 local_include_dirs: ["include/"], 72 export_aidl_headers: true, 73 }, 74 75 srcs: [ 76 ":libvibrator_aidl", 77 "ExternalVibration.cpp", 78 ], 79} 80 81cc_library { 82 name: "libvibratorutils", 83 defaults: ["libvibrator_defaults"], 84 85 vendor_available: true, 86 double_loadable: true, 87 88 static_libs: [ 89 "android.os.vibrator.flags-aconfig-cc", 90 ], 91 92 shared_libs: [ 93 "liblog", 94 "libutils", 95 "server_configurable_flags", 96 ], 97 98 srcs: [ 99 "ExternalVibrationUtils.cpp", 100 ], 101 102 visibility: [ 103 "//frameworks/native/libs/vibrator", 104 "//frameworks/native/libs/vibrator/tests", 105 "//frameworks/av/media/libeffects/hapticgenerator", 106 ], 107} 108