blob: 7d68c52c65eb21b87b4e1e699e2ff70f608894a6 [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 Mahajan18fe36b2016-08-25 11:19:21 -070011 ril_service.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080012
13LOCAL_SHARED_LIBRARIES := \
Ying Wang52688262013-04-09 22:31:00 -070014 liblog \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080015 libutils \
Mathias Agopian8a3c48c2009-05-19 19:11:50 -070016 libbinder \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080017 libcutils \
Dima Zavin622bf2b2013-05-22 11:29:34 -070018 libhardware_legacy \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020019 librilutils \
Amit Mahajan18fe36b2016-08-25 11:19:21 -070020 android.hardware.radio@1.0 \
21 libhidlbase \
22 libhidltransport \
23 libhwbinder
Dheeraj Shetty27976c42014-07-02 21:27:57 +020024
25LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070026 libprotobuf-c-nano-enable_malloc \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080027
Etan Cohend3652192014-06-20 08:28:44 -070028#LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1
Aurimas Liutikasce968ee2016-04-28 20:47:16 -070029LOCAL_CFLAGS += -Wno-unused-parameter
Etan Cohend3652192014-06-20 08:28:44 -070030
31ifeq ($(SIM_COUNT), 2)
32 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
33endif
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080034
Dheeraj Shetty27976c42014-07-02 21:27:57 +020035LOCAL_C_INCLUDES += external/nanopb-c
Dan Willemsenf5d7ea32015-09-24 16:18:04 -070036LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
Dan Willemsen3cf07752015-09-28 14:33:14 -070037LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
Dheeraj Shetty27976c42014-07-02 21:27:57 +020038
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080039LOCAL_MODULE:= libril
Sanket Padawe2f0b4522016-03-07 18:09:55 -080040LOCAL_CLANG := true
41LOCAL_SANITIZE := integer
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080042
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080043include $(BUILD_SHARED_LIBRARY)
44
45
46# For RdoServD which needs a static library
47# =========================================
48ifneq ($(ANDROID_BIONIC_TRANSITION),)
49include $(CLEAR_VARS)
50
51LOCAL_SRC_FILES:= \
Dima Zavin622bf2b2013-05-22 11:29:34 -070052 ril.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080053
54LOCAL_STATIC_LIBRARIES := \
55 libutils_static \
Dima Zavin622bf2b2013-05-22 11:29:34 -070056 libcutils \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020057 librilutils_static \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070058 libprotobuf-c-nano-enable_malloc
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080059
Aurimas Liutikasce968ee2016-04-28 20:47:16 -070060LOCAL_CFLAGS += -Wno-unused-parameter
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080061
62LOCAL_MODULE:= libril_static
63
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080064include $(BUILD_STATIC_LIBRARY)
65endif # ANDROID_BIONIC_TRANSITION