1// Copyright (C) 2020 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_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_library { 20 name: "libril-modem-lib", 21 vendor: true, 22 cflags: [ 23 "-Wextra", 24 "-Wno-unused-parameter", 25 ], 26 srcs: [ 27 "RefRadioSim.cpp", 28 "RefRadioModem.cpp", 29 "RefRadioIms.cpp", 30 "RefImsMedia.cpp", 31 "RefImsMediaSession.cpp", 32 "RefRadioNetwork.cpp", 33 "RefRadioConfig.cpp", 34 "ril.cpp", 35 "RilSapSocket.cpp", 36 "ril_config.cpp", 37 "ril_event.cpp", 38 "ril_service.cpp", 39 "sap_service.cpp", 40 ], 41 include_dirs: [ 42 "device/google/cuttlefish", 43 "hardware/ril/include", 44 ], 45 shared_libs: [ 46 "android.hardware.radio-library.compat", 47 "android.hardware.radio.config-V3-ndk", 48 "android.hardware.radio.data-V3-ndk", 49 "android.hardware.radio.ims-V2-ndk", 50 "android.hardware.radio.ims.media-V2-ndk", 51 "android.hardware.radio.messaging-V3-ndk", 52 "android.hardware.radio.modem-V3-ndk", 53 "android.hardware.radio.network-V3-ndk", 54 "android.hardware.radio.sap-V1-ndk", 55 "android.hardware.radio.sim-V3-ndk", 56 "android.hardware.radio.voice-V3-ndk", 57 "android.hardware.radio@1.0", 58 "android.hardware.radio@1.1", 59 "android.hardware.radio@1.2", 60 "android.hardware.radio@1.3", 61 "android.hardware.radio@1.4", 62 "android.hardware.radio@1.5", 63 "android.hardware.radio@1.6", 64 "android.hardware.radio.config@1.0", 65 "android.hardware.radio.config@1.1", 66 "android.hardware.radio.config@1.2", 67 "android.hardware.radio.config@1.3", 68 "android.hardware.radio.deprecated@1.0", 69 "libbase", 70 "libbinder_ndk", 71 "libcutils", 72 "libhardware_legacy", 73 "libhidlbase", 74 "liblog", 75 "librilutils", 76 "libutils", 77 ], 78 static_libs: [ 79 "libprotobuf-c-nano-enable_malloc", 80 ], 81} 82 83filegroup { 84 name: "libril-modem-lib-manifests", 85 srcs: [ 86 "android.hardware.radio@2.1.xml", 87 ], 88} 89