blob: 22454927efdd26b2306a7e2bdf5f3e6cb2a9deb0 [file] [log] [blame]
Weilin Xub2a6ca62022-05-08 23:47:04 +00001//
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
Weilin Xu942eb1c2024-02-13 11:58:57 -080023 default_team: "trendy_team_aaos_framework",
Weilin Xub2a6ca62022-05-08 23:47:04 +000024 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
Weilin Xu9d79f312024-10-18 10:37:05 -070027cc_library {
Weilin Xub2a6ca62022-05-08 23:47:04 +000028 name: "android.hardware.broadcastradio@common-utils-aidl-lib",
Weilin Xu25409e52023-09-06 10:36:24 -070029 defaults: [
Weilin Xuef981342023-12-13 16:08:04 -080030 "BroadcastRadioUtilsDefaults",
Weilin Xu25409e52023-09-06 10:36:24 -070031 ],
32 shared_libs: [
33 "android.hardware.broadcastradio-V1-ndk",
34 ],
35}
36
Weilin Xu9d79f312024-10-18 10:37:05 -070037cc_library {
Weilin Xu25409e52023-09-06 10:36:24 -070038 name: "android.hardware.broadcastradio@common-utils-aidl-lib-V2",
39 defaults: [
Weilin Xuef981342023-12-13 16:08:04 -080040 "BroadcastRadioUtilsDefaults",
Weilin Xu25409e52023-09-06 10:36:24 -070041 ],
42 srcs: [
43 "src/UtilsV2.cpp",
44 ],
45 shared_libs: [
46 "android.hardware.broadcastradio-V2-ndk",
47 ],
48}
49
Weilin Xu9d79f312024-10-18 10:37:05 -070050cc_library {
51 name: "android.hardware.broadcastradio@common-utils-aidl-lib-V3",
52 defaults: [
53 "BroadcastRadioUtilsDefaults",
54 ],
55 srcs: [
56 "src/UtilsV2.cpp",
57 "src/UtilsV3.cpp",
58 ],
59 shared_libs: [
60 "android.hardware.broadcastradio-V3-ndk",
61 ],
62}
63
64cc_library {
Weilin Xu3e6625c2024-04-16 15:41:26 -070065 name: "android.hardware.broadcastradio@common-utils-aidl-lib-latest",
66 defaults: [
67 "BroadcastRadioUtilsDefaults",
68 "latest_android_hardware_broadcastradio_ndk_static",
69 ],
70 srcs: [
71 "src/UtilsV2.cpp",
Weilin Xu9d79f312024-10-18 10:37:05 -070072 "src/UtilsV3.cpp",
Weilin Xu3e6625c2024-04-16 15:41:26 -070073 ],
74}
75
Weilin Xuef981342023-12-13 16:08:04 -080076cc_test {
77 name: "broadcastradio_utils_aidl_test",
78 defaults: [
79 "BroadcastRadioUtilsDefaults",
Weilin Xu3e6625c2024-04-16 15:41:26 -070080 "latest_android_hardware_broadcastradio_ndk_static",
Weilin Xuef981342023-12-13 16:08:04 -080081 ],
82 srcs: [
83 "test/*.cpp",
84 ],
85 static_libs: [
Weilin Xu3e6625c2024-04-16 15:41:26 -070086 "android.hardware.broadcastradio@common-utils-aidl-lib-latest",
Weilin Xuef981342023-12-13 16:08:04 -080087 ],
88 test_suites: ["general-tests"],
89}
90
Weilin Xu25409e52023-09-06 10:36:24 -070091cc_defaults {
Weilin Xuef981342023-12-13 16:08:04 -080092 name: "BroadcastRadioUtilsDefaults",
Weilin Xub2a6ca62022-05-08 23:47:04 +000093 vendor_available: true,
94 relative_install_path: "hw",
95 cflags: [
96 "-Wall",
97 "-Wextra",
98 "-Werror",
99 "-Wno-error=implicit-fallthrough",
100 ],
101 cppflags: [
102 "-std=c++1z",
103 ],
104 srcs: [
Weilin Xu25409e52023-09-06 10:36:24 -0700105 "src/Utils.cpp",
Weilin Xub2a6ca62022-05-08 23:47:04 +0000106 ],
107 export_include_dirs: ["include"],
108 shared_libs: [
Weilin Xub2a6ca62022-05-08 23:47:04 +0000109 "libbase",
110 ],
111 static_libs: [
112 "libmath",
113 ],
114}