Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 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 | |
| 17 | package { |
| 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 |
Weilin Xu | 942eb1c | 2024-02-13 11:58:57 -0800 | [diff] [blame] | 23 | default_team: "trendy_team_aaos_framework", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 24 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 25 | } |
| 26 | |
| 27 | cc_library_static { |
| 28 | name: "android.hardware.broadcastradio@common-utils-aidl-lib", |
Weilin Xu | 25409e5 | 2023-09-06 10:36:24 -0700 | [diff] [blame] | 29 | defaults: [ |
Weilin Xu | ef98134 | 2023-12-13 16:08:04 -0800 | [diff] [blame] | 30 | "BroadcastRadioUtilsDefaults", |
Weilin Xu | 25409e5 | 2023-09-06 10:36:24 -0700 | [diff] [blame] | 31 | ], |
| 32 | shared_libs: [ |
| 33 | "android.hardware.broadcastradio-V1-ndk", |
| 34 | ], |
| 35 | } |
| 36 | |
| 37 | cc_library_static { |
| 38 | name: "android.hardware.broadcastradio@common-utils-aidl-lib-V2", |
| 39 | defaults: [ |
Weilin Xu | ef98134 | 2023-12-13 16:08:04 -0800 | [diff] [blame] | 40 | "BroadcastRadioUtilsDefaults", |
Weilin Xu | 25409e5 | 2023-09-06 10:36:24 -0700 | [diff] [blame] | 41 | ], |
| 42 | srcs: [ |
| 43 | "src/UtilsV2.cpp", |
| 44 | ], |
| 45 | shared_libs: [ |
| 46 | "android.hardware.broadcastradio-V2-ndk", |
| 47 | ], |
| 48 | } |
| 49 | |
Weilin Xu | ef98134 | 2023-12-13 16:08:04 -0800 | [diff] [blame] | 50 | cc_test { |
| 51 | name: "broadcastradio_utils_aidl_test", |
| 52 | defaults: [ |
| 53 | "BroadcastRadioUtilsDefaults", |
| 54 | ], |
| 55 | srcs: [ |
| 56 | "test/*.cpp", |
| 57 | ], |
| 58 | static_libs: [ |
| 59 | "android.hardware.broadcastradio@common-utils-aidl-lib-V2", |
| 60 | "android.hardware.broadcastradio-V2-ndk", |
| 61 | ], |
| 62 | test_suites: ["general-tests"], |
| 63 | } |
| 64 | |
Weilin Xu | 25409e5 | 2023-09-06 10:36:24 -0700 | [diff] [blame] | 65 | cc_defaults { |
Weilin Xu | ef98134 | 2023-12-13 16:08:04 -0800 | [diff] [blame] | 66 | name: "BroadcastRadioUtilsDefaults", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 67 | vendor_available: true, |
| 68 | relative_install_path: "hw", |
| 69 | cflags: [ |
| 70 | "-Wall", |
| 71 | "-Wextra", |
| 72 | "-Werror", |
| 73 | "-Wno-error=implicit-fallthrough", |
| 74 | ], |
| 75 | cppflags: [ |
| 76 | "-std=c++1z", |
| 77 | ], |
| 78 | srcs: [ |
Weilin Xu | 25409e5 | 2023-09-06 10:36:24 -0700 | [diff] [blame] | 79 | "src/Utils.cpp", |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 80 | ], |
| 81 | export_include_dirs: ["include"], |
| 82 | shared_libs: [ |
Weilin Xu | b2a6ca6 | 2022-05-08 23:47:04 +0000 | [diff] [blame] | 83 | "libbase", |
| 84 | ], |
| 85 | static_libs: [ |
| 86 | "libmath", |
| 87 | ], |
| 88 | } |