blob: 952e6be4e142a52c2c19fd48483f63e5476fe97a [file] [log] [blame]
The Android Open Source Project00f06fc2009-03-03 19:32:15 -08001# Copyright 2006 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
Steven Moreland8265b402017-04-07 13:39:55 -07006LOCAL_VENDOR_MODULE := true
7
The Android Open Source Project00f06fc2009-03-03 19:32:15 -08008LOCAL_SRC_FILES:= \
9 ril.cpp \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020010 ril_event.cpp\
Dheeraj Shetty27976c42014-07-02 21:27:57 +020011 RilSapSocket.cpp \
Amit Mahajanc2c71852016-11-29 16:48:54 -080012 ril_service.cpp \
13 sap_service.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080014
15LOCAL_SHARED_LIBRARIES := \
Ying Wang52688262013-04-09 22:31:00 -070016 liblog \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080017 libutils \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080018 libcutils \
Dima Zavin622bf2b2013-05-22 11:29:34 -070019 libhardware_legacy \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020020 librilutils \
Amit Mahajan18fe36b2016-08-25 11:19:21 -070021 android.hardware.radio@1.0 \
Amit Mahajanabd72752017-02-13 17:43:04 -080022 android.hardware.radio.deprecated@1.0 \
Amit Mahajan18fe36b2016-08-25 11:19:21 -070023 libhidlbase \
24 libhidltransport \
25 libhwbinder
Dheeraj Shetty27976c42014-07-02 21:27:57 +020026
27LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070028 libprotobuf-c-nano-enable_malloc \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080029
Etan Cohend3652192014-06-20 08:28:44 -070030#LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1
Aurimas Liutikasce968ee2016-04-28 20:47:16 -070031LOCAL_CFLAGS += -Wno-unused-parameter
Etan Cohend3652192014-06-20 08:28:44 -070032
33ifeq ($(SIM_COUNT), 2)
34 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
35endif
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080036
Dheeraj Shetty27976c42014-07-02 21:27:57 +020037LOCAL_C_INCLUDES += external/nanopb-c
Dan Willemsenf5d7ea32015-09-24 16:18:04 -070038LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
Dan Willemsen3cf07752015-09-28 14:33:14 -070039LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
Dheeraj Shetty27976c42014-07-02 21:27:57 +020040
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080041LOCAL_MODULE:= libril
Sanket Padawe2f0b4522016-03-07 18:09:55 -080042LOCAL_CLANG := true
43LOCAL_SANITIZE := integer
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080044
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080045include $(BUILD_SHARED_LIBRARY)
46