blob: 625b00fd47a1fadd1b6b8b19902be9fce5a93027 [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 \
22 libhidlbase \
23 libhidltransport \
24 libhwbinder
Dheeraj Shetty27976c42014-07-02 21:27:57 +020025
26LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070027 libprotobuf-c-nano-enable_malloc \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080028
Etan Cohend3652192014-06-20 08:28:44 -070029#LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1
Aurimas Liutikasce968ee2016-04-28 20:47:16 -070030LOCAL_CFLAGS += -Wno-unused-parameter
Etan Cohend3652192014-06-20 08:28:44 -070031
32ifeq ($(SIM_COUNT), 2)
33 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
34endif
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080035
Dheeraj Shetty27976c42014-07-02 21:27:57 +020036LOCAL_C_INCLUDES += external/nanopb-c
Dan Willemsenf5d7ea32015-09-24 16:18:04 -070037LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
Dan Willemsen3cf07752015-09-28 14:33:14 -070038LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
Dheeraj Shetty27976c42014-07-02 21:27:57 +020039
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080040LOCAL_MODULE:= libril
Sanket Padawe2f0b4522016-03-07 18:09:55 -080041LOCAL_CLANG := true
42LOCAL_SANITIZE := integer
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080043
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080044include $(BUILD_SHARED_LIBRARY)
45
46
47# For RdoServD which needs a static library
48# =========================================
49ifneq ($(ANDROID_BIONIC_TRANSITION),)
50include $(CLEAR_VARS)
51
52LOCAL_SRC_FILES:= \
Dima Zavin622bf2b2013-05-22 11:29:34 -070053 ril.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080054
55LOCAL_STATIC_LIBRARIES := \
56 libutils_static \
Dima Zavin622bf2b2013-05-22 11:29:34 -070057 libcutils \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020058 librilutils_static \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070059 libprotobuf-c-nano-enable_malloc
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080060
Aurimas Liutikasce968ee2016-04-28 20:47:16 -070061LOCAL_CFLAGS += -Wno-unused-parameter
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080062
63LOCAL_MODULE:= libril_static
64
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080065include $(BUILD_STATIC_LIBRARY)
66endif # ANDROID_BIONIC_TRANSITION