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 "ril.cpp", 34 "RilSapSocket.cpp", 35 "ril_config.cpp", 36 "ril_event.cpp", 37 "ril_service.cpp", 38 "sap_service.cpp", 39 ], 40 include_dirs: [ 41 "device/google/cuttlefish", 42 "hardware/ril/include", 43 ], 44 shared_libs: [ 45 "android.hardware.radio-library.compat", 46 "android.hardware.radio.config-V2-ndk", 47 "android.hardware.radio.data-V2-ndk", 48 "android.hardware.radio.ims-V1-ndk", 49 "android.hardware.radio.ims.media-V1-ndk", 50 "android.hardware.radio.messaging-V2-ndk", 51 "android.hardware.radio.modem-V2-ndk", 52 "android.hardware.radio.network-V2-ndk", 53 "android.hardware.radio.sap-V1-ndk", 54 "android.hardware.radio.sim-V2-ndk", 55 "android.hardware.radio.voice-V2-ndk", 56 "android.hardware.radio@1.0", 57 "android.hardware.radio@1.1", 58 "android.hardware.radio@1.2", 59 "android.hardware.radio@1.3", 60 "android.hardware.radio@1.4", 61 "android.hardware.radio@1.5", 62 "android.hardware.radio@1.6", 63 "android.hardware.radio.config@1.0", 64 "android.hardware.radio.config@1.1", 65 "android.hardware.radio.config@1.2", 66 "android.hardware.radio.config@1.3", 67 "android.hardware.radio.deprecated@1.0", 68 "libbase", 69 "libbinder_ndk", 70 "libcutils", 71 "libhardware_legacy", 72 "libhidlbase", 73 "liblog", 74 "librilutils", 75 "libutils", 76 ], 77 static_libs: [ 78 "libprotobuf-c-nano-enable_malloc", 79 ], 80} 81 82filegroup { 83 name: "libril-modem-lib-manifests", 84 srcs: [ 85 "android.hardware.radio@2.1.xml", 86 ], 87} 88