blob: 4ec635b17365dedeb435df4ac3730d1dd295dcad [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
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_library_static {
27 name: "android.hardware.broadcastradio@common-utils-aidl-lib",
Weilin Xu25409e52023-09-06 10:36:24 -070028 defaults: [
29 "VtsBroadcastRadioDefaults",
30 ],
31 shared_libs: [
32 "android.hardware.broadcastradio-V1-ndk",
33 ],
34}
35
36cc_library_static {
37 name: "android.hardware.broadcastradio@common-utils-aidl-lib-V2",
38 defaults: [
39 "VtsBroadcastRadioDefaults",
40 ],
41 srcs: [
42 "src/UtilsV2.cpp",
43 ],
44 shared_libs: [
45 "android.hardware.broadcastradio-V2-ndk",
46 ],
47}
48
49cc_defaults {
50 name: "VtsBroadcastRadioDefaults",
Weilin Xub2a6ca62022-05-08 23:47:04 +000051 vendor_available: true,
52 relative_install_path: "hw",
53 cflags: [
54 "-Wall",
55 "-Wextra",
56 "-Werror",
57 "-Wno-error=implicit-fallthrough",
58 ],
59 cppflags: [
60 "-std=c++1z",
61 ],
62 srcs: [
Weilin Xu25409e52023-09-06 10:36:24 -070063 "src/Utils.cpp",
Weilin Xub2a6ca62022-05-08 23:47:04 +000064 ],
65 export_include_dirs: ["include"],
66 shared_libs: [
Weilin Xub2a6ca62022-05-08 23:47:04 +000067 "libbase",
68 ],
69 static_libs: [
70 "libmath",
71 ],
72}