• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2025 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
16package {
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 "device_generic_goldfish_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["device_generic_goldfish_license"],
23}
24
25cc_binary {
26    name: "android.hardware.radio-service.ranchu",
27    relative_install_path: "hw",
28    vendor: true,
29    cpp_std: "c++20",
30    srcs: [
31        "AtChannel.cpp",
32        "AtResponse.cpp",
33        "hexbin.cpp",
34        "IdAllocator.cpp",
35        "ImsMedia.cpp",
36        "main.cpp",
37        "makeRadioResponseInfo.cpp",
38        "Parser.cpp",
39        "ratUtils.cpp",
40        "RadioConfig.cpp",
41        "RadioData.cpp",
42        "RadioIms.cpp",
43        "RadioMessaging.cpp",
44        "RadioModem.cpp",
45        "RadioNetwork.cpp",
46        "RadioSim.cpp",
47        "RadioVoice.cpp",
48        "Sap.cpp",
49    ],
50    init_rc: ["android.hardware.radio.ranchu.rc"],
51    vintf_fragments: ["android.hardware.radio.ranchu.xml"],
52    shared_libs: [
53        "android.hardware.radio.config-V3-ndk",
54        "android.hardware.radio.data-V3-ndk",
55        "android.hardware.radio.ims-V2-ndk",
56        "android.hardware.radio.ims.media-V2-ndk",
57        "android.hardware.radio.messaging-V3-ndk",
58        "android.hardware.radio.modem-V3-ndk",
59        "android.hardware.radio.network-V3-ndk",
60        "android.hardware.radio.sap-V1-ndk",
61        "android.hardware.radio.sim-V3-ndk",
62        "android.hardware.radio.voice-V3-ndk",
63        "libbase",
64        "libbinder_ndk",
65        "libcrypto",
66        "libcutils",
67        "liblog",
68        "libutils",
69    ],
70    cflags: [
71        "-DLOG_TAG=\"radio-service.ranchu\"",
72        "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
73    ],
74    required: [
75        "EmulatorRadioConfig",
76        "EmulatorTetheringConfigOverlay",
77    ],
78}
79