1# Copyright (C) 2019 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 15# We're forced to use Android.mk here because: 16# This depends on headers in hardware/ril/libril 17# hardware/ril/libril is still on Android.mk 18 19ifeq (libril-modem-lib,$(CUTTLEFISH_LIBRIL_NAME)) 20LOCAL_PATH:= $(call my-dir) 21include $(CLEAR_VARS) 22 23LOCAL_VENDOR_MODULE := true 24LOCAL_MODULE := libril-modem-lib 25LOCAL_SRC_FILES:= \ 26 ril.cpp \ 27 ril_service.cpp \ 28 ril_event.cpp \ 29 RilSapSocket.cpp \ 30 sap_service.cpp \ 31 ril_config.cpp \ 32 33LOCAL_SHARED_LIBRARIES := \ 34 liblog \ 35 libutils \ 36 libcutils \ 37 libhardware_legacy \ 38 libhidlbase \ 39 librilutils \ 40 android.hardware.radio@1.0 \ 41 android.hardware.radio@1.1 \ 42 android.hardware.radio.deprecated@1.0 \ 43 android.hardware.radio@1.2 \ 44 android.hardware.radio@1.3 \ 45 android.hardware.radio@1.4 \ 46 android.hardware.radio@1.5 \ 47 android.hardware.radio@1.6 \ 48 android.hardware.radio.config@1.0 \ 49 android.hardware.radio.config@1.1 \ 50 android.hardware.radio.config@1.2 \ 51 52LOCAL_STATIC_LIBRARIES := \ 53 libprotobuf-c-nano-enable_malloc \ 54 55LOCAL_C_INCLUDES += \ 56 device/google/cuttlefish \ 57 hardware/include \ 58 external/nanopb-c \ 59 hardware/ril/include \ 60 hardware/ril/libril 61 62LOCAL_CFLAGS += \ 63 -Wextra \ 64 -Wno-unused-parameter 65 66LOCAL_EXPORT_C_INCLUDE_DIRS := hardware/ril/include 67 68include $(BUILD_SHARED_LIBRARY) 69endif 70