1// 2// Copyright (C) 2022 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// 16 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "hardware_interfaces_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_team: "trendy_team_aaos_framework", 24 default_applicable_licenses: ["hardware_interfaces_license"], 25} 26 27cc_library_static { 28 name: "android.hardware.broadcastradio@common-utils-aidl-lib", 29 defaults: [ 30 "BroadcastRadioUtilsDefaults", 31 ], 32 shared_libs: [ 33 "android.hardware.broadcastradio-V1-ndk", 34 ], 35} 36 37cc_library_static { 38 name: "android.hardware.broadcastradio@common-utils-aidl-lib-V2", 39 defaults: [ 40 "BroadcastRadioUtilsDefaults", 41 ], 42 srcs: [ 43 "src/UtilsV2.cpp", 44 ], 45 shared_libs: [ 46 "android.hardware.broadcastradio-V2-ndk", 47 ], 48} 49 50cc_library_static { 51 name: "android.hardware.broadcastradio@common-utils-aidl-lib-latest", 52 defaults: [ 53 "BroadcastRadioUtilsDefaults", 54 "latest_android_hardware_broadcastradio_ndk_static", 55 ], 56 srcs: [ 57 "src/UtilsV2.cpp", 58 ], 59} 60 61cc_test { 62 name: "broadcastradio_utils_aidl_test", 63 defaults: [ 64 "BroadcastRadioUtilsDefaults", 65 "latest_android_hardware_broadcastradio_ndk_static", 66 ], 67 srcs: [ 68 "test/*.cpp", 69 ], 70 static_libs: [ 71 "android.hardware.broadcastradio@common-utils-aidl-lib-latest", 72 ], 73 test_suites: ["general-tests"], 74} 75 76cc_defaults { 77 name: "BroadcastRadioUtilsDefaults", 78 vendor_available: true, 79 relative_install_path: "hw", 80 cflags: [ 81 "-Wall", 82 "-Wextra", 83 "-Werror", 84 "-Wno-error=implicit-fallthrough", 85 ], 86 cppflags: [ 87 "-std=c++1z", 88 ], 89 srcs: [ 90 "src/Utils.cpp", 91 ], 92 export_include_dirs: ["include"], 93 shared_libs: [ 94 "libbase", 95 ], 96 static_libs: [ 97 "libmath", 98 ], 99} 100