• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2024 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_defaults {
25    name: "android.hardware.radio-minradio@defaults",
26    relative_install_path: "hw",
27    vendor: true,
28    cflags: [
29        "-Wall",
30        "-Wextra",
31        "-Werror",
32        "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
33        "-g",
34
35        // binder_to_string.h uses deprecated codecvt_utf8_utf16.
36        // We can't fix it in foreesable future.
37        "-D_LIBCPP_DISABLE_DEPRECATION_WARNINGS",
38    ],
39    shared_libs: [
40        "android.hardware.radio.config-V4-ndk",
41        "android.hardware.radio.data-V4-ndk",
42        "android.hardware.radio.modem-V4-ndk",
43        "android.hardware.radio.network-V4-ndk",
44        "android.hardware.radio.sim-V4-ndk",
45        "libbase",
46        "libbinder_ndk",
47        "libutils",
48    ],
49    sanitize: {
50        address: true,
51        all_undefined: true,
52        fuzzer: true,
53        integer_overflow: true,
54    },
55    strip: {
56        none: true,
57    },
58}
59
60cc_library {
61    name: "android.hardware.radio-library.minradio",
62    defaults: ["android.hardware.radio-minradio@defaults"],
63    export_include_dirs: ["include"],
64    srcs: [
65        "RadioSlotBase.cpp",
66        "ResponseTracker.cpp",
67        "SlotContext.cpp",
68        "config/RadioConfig.cpp",
69        "data/RadioData.cpp",
70        "modem/RadioModem.cpp",
71        "network/RadioNetwork.cpp",
72        "network/RadioNetworkResponseTracker.cpp",
73        "network/structs.cpp",
74        "response.cpp",
75        "sim/apps/AraM.cpp",
76        "sim/apps/FilesystemApp.cpp",
77        "sim/apps/tlv.cpp",
78        "sim/App.cpp",
79        "sim/AppManager.cpp",
80        "sim/Filesystem.cpp",
81        "sim/IccUtils.cpp",
82        "sim/RadioSim.cpp",
83    ],
84}
85