blob: ca6c00498a0cf5f2d063da886c997d55570253c4 [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
6LOCAL_SRC_FILES:= \
7 ril.cpp \
Dheeraj Shetty27976c42014-07-02 21:27:57 +02008 ril_event.cpp\
9 RilSocket.cpp \
10 RilSapSocket.cpp \
Amit Mahajanc2c71852016-11-29 16:48:54 -080011 ril_service.cpp \
12 sap_service.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080013
14LOCAL_SHARED_LIBRARIES := \
Ying Wang52688262013-04-09 22:31:00 -070015 liblog \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080016 libutils \
Mathias Agopian8a3c48c2009-05-19 19:11:50 -070017 libbinder \
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
47
48# For RdoServD which needs a static library
49# =========================================
50ifneq ($(ANDROID_BIONIC_TRANSITION),)
51include $(CLEAR_VARS)
52
53LOCAL_SRC_FILES:= \
Dima Zavin622bf2b2013-05-22 11:29:34 -070054 ril.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080055
56LOCAL_STATIC_LIBRARIES := \
57 libutils_static \
Dima Zavin622bf2b2013-05-22 11:29:34 -070058 libcutils \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020059 librilutils_static \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070060 libprotobuf-c-nano-enable_malloc
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080061
Aurimas Liutikasce968ee2016-04-28 20:47:16 -070062LOCAL_CFLAGS += -Wno-unused-parameter
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080063
64LOCAL_MODULE:= libril_static
65
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080066include $(BUILD_STATIC_LIBRARY)
67endif # ANDROID_BIONIC_TRANSITION