blob: bf2c80c8244bcf6fb5c81954273438b0b3d9c12e [file] [log] [blame]
Tomasz Wasilczyk6301e8f2021-10-18 16:53:40 -07001// Copyright (C) 2021 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 "hardware_interfaces_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["hardware_interfaces_license"],
22}
23
24cc_library {
25 name: "android.hardware.radio-library.compat",
26 relative_install_path: "hw",
27 vendor: true,
28 cflags: [
29 "-Wall",
30 "-Wextra",
31 //"-Wold-style-cast", // TODO(b/203699028) enable after aosp/1900880 gets merged
32 "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
33 ],
34 shared_libs: [
35 "android.hardware.radio.config-V1-ndk",
36 "android.hardware.radio.config@1.0",
37 "android.hardware.radio.config@1.1",
38 "android.hardware.radio.config@1.2",
39 "android.hardware.radio.config@1.3",
Tomasz Wasilczyk1f16d3a2021-10-25 20:20:49 -070040 "android.hardware.radio.messaging-V1-ndk",
Tomasz Wasilczykfb10e002021-10-28 13:22:47 -070041 "android.hardware.radio.sim-V1-ndk",
Tomasz Wasilczyk1f16d3a2021-10-25 20:20:49 -070042 "android.hardware.radio@1.0",
43 "android.hardware.radio@1.1",
44 "android.hardware.radio@1.2",
45 "android.hardware.radio@1.3",
46 "android.hardware.radio@1.4",
47 "android.hardware.radio@1.5",
48 "android.hardware.radio@1.6",
Tomasz Wasilczyk6301e8f2021-10-18 16:53:40 -070049 "libbase",
50 "libbinder_ndk",
51 "libhidlbase",
52 "libutils",
53 ],
54 srcs: [
Tomasz Wasilczyk1f16d3a2021-10-25 20:20:49 -070055 "RadioCompatBase.cpp",
56 "RadioIndication.cpp",
57 "RadioResponse.cpp",
Tomasz Wasilczyk6301e8f2021-10-18 16:53:40 -070058 "commonStructs.cpp",
59 "config/RadioConfig.cpp",
60 "config/RadioConfigIndication.cpp",
61 "config/RadioConfigResponse.cpp",
62 "config/structs.cpp",
Tomasz Wasilczyk1f16d3a2021-10-25 20:20:49 -070063 "messaging/RadioIndication-messaging.cpp",
64 "messaging/RadioMessaging.cpp",
65 "messaging/RadioResponse-messaging.cpp",
66 "messaging/structs.cpp",
Tomasz Wasilczykfb10e002021-10-28 13:22:47 -070067 "sim/RadioIndication-sim.cpp",
68 "sim/RadioResponse-sim.cpp",
69 "sim/RadioSim.cpp",
70 "sim/structs.cpp",
Tomasz Wasilczyk6301e8f2021-10-18 16:53:40 -070071 ],
72 export_include_dirs: ["include"],
73}