xref: /aosp_15_r20/hardware/interfaces/radio/aidl/compat/libradiocompat/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1// 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    default_team: "trendy_team_fwk_telephony",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "hardware_interfaces_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["hardware_interfaces_license"],
23}
24
25cc_defaults {
26    name: "android.hardware.radio-library.aidl_deps",
27    shared_libs: [
28        "android.hardware.radio.config-V4-ndk",
29        "android.hardware.radio.data-V4-ndk",
30        "android.hardware.radio.ims-V3-ndk",
31        "android.hardware.radio.ims.media-V3-ndk",
32        "android.hardware.radio.messaging-V4-ndk",
33        "android.hardware.radio.modem-V4-ndk",
34        "android.hardware.radio.network-V4-ndk",
35        "android.hardware.radio.sap-V1-ndk",
36        "android.hardware.radio.sim-V4-ndk",
37        "android.hardware.radio.voice-V4-ndk",
38    ],
39}
40
41cc_library {
42    name: "android.hardware.radio-library.compat",
43    defaults: ["android.hardware.radio-library.aidl_deps"],
44    relative_install_path: "hw",
45    vendor: true,
46    cflags: [
47        "-Wall",
48        "-Wextra",
49        "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
50    ],
51    shared_libs: [
52        "[email protected]",
53        "[email protected]",
54        "[email protected]",
55        "[email protected]",
56        "[email protected]",
57        "[email protected]",
58        "[email protected]",
59        "[email protected]",
60        "[email protected]",
61        "[email protected]",
62        "[email protected]",
63        "libbase",
64        "libbinder_ndk",
65        "libhidlbase",
66        "libutils",
67    ],
68    srcs: [
69        "CallbackManager.cpp",
70        "DriverContext.cpp",
71        "RadioCompatBase.cpp",
72        "RadioIndication.cpp",
73        "RadioResponse.cpp",
74        "commonStructs.cpp",
75        "config/RadioConfig.cpp",
76        "config/RadioConfigIndication.cpp",
77        "config/RadioConfigResponse.cpp",
78        "config/structs.cpp",
79        "data/RadioIndication-data.cpp",
80        "data/RadioResponse-data.cpp",
81        "data/RadioData.cpp",
82        "data/structs.cpp",
83        "ims/RadioIndication-ims.cpp",
84        "ims/RadioResponse-ims.cpp",
85        "ims/RadioIms.cpp",
86        "ims/media/RadioImsMediaSession.cpp",
87        "ims/media/RadioImsMedia.cpp",
88        "messaging/RadioIndication-messaging.cpp",
89        "messaging/RadioMessaging.cpp",
90        "messaging/RadioResponse-messaging.cpp",
91        "messaging/structs.cpp",
92        "modem/RadioIndication-modem.cpp",
93        "modem/RadioResponse-modem.cpp",
94        "modem/RadioModem.cpp",
95        "modem/structs.cpp",
96        "network/RadioIndication-network.cpp",
97        "network/RadioNetwork.cpp",
98        "network/RadioResponse-network.cpp",
99        "network/structs.cpp",
100        "network/utils.cpp",
101        "sap/Sap.cpp",
102        "sap/SapCallback.cpp",
103        "sap/structs.cpp",
104        "sim/RadioIndication-sim.cpp",
105        "sim/RadioResponse-sim.cpp",
106        "sim/RadioSim.cpp",
107        "sim/structs.cpp",
108        "voice/RadioIndication-voice.cpp",
109        "voice/RadioResponse-voice.cpp",
110        "voice/RadioVoice.cpp",
111        "voice/structs.cpp",
112    ],
113    export_include_dirs: ["include"],
114}
115