blob: ee0530f32b3133ba72f2ea87ae7467d6114e5545 [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 \
pkanwardb8e0942017-03-17 12:49:34 -070022 android.hardware.radio@1.1 \
Amit Mahajanabd72752017-02-13 17:43:04 -080023 android.hardware.radio.deprecated@1.0 \
Amit Mahajan18fe36b2016-08-25 11:19:21 -070024 libhidlbase \
25 libhidltransport \
26 libhwbinder
Dheeraj Shetty27976c42014-07-02 21:27:57 +020027
28LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070029 libprotobuf-c-nano-enable_malloc \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080030
Tomasz Wasilczyk88961c22017-04-11 09:21:08 -070031LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
Etan Cohend3652192014-06-20 08:28:44 -070032
33ifeq ($(SIM_COUNT), 2)
Amit Mahajanb3a11bb2017-05-15 16:41:44 -070034 LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1
Etan Cohend3652192014-06-20 08:28:44 -070035 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
36endif
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080037
Steven Moreland6cc40042018-03-20 11:20:05 -070038ifneq ($(DISABLE_RILD_OEM_HOOK),)
39 LOCAL_CFLAGS += -DOEM_HOOK_DISABLED
40endif
41
Dheeraj Shetty27976c42014-07-02 21:27:57 +020042LOCAL_C_INCLUDES += external/nanopb-c
Dan Willemsenf5d7ea32015-09-24 16:18:04 -070043LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
Dan Willemsen3cf07752015-09-28 14:33:14 -070044LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
Dheeraj Shetty27976c42014-07-02 21:27:57 +020045
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080046LOCAL_MODULE:= libril
Sanket Padawe2f0b4522016-03-07 18:09:55 -080047LOCAL_SANITIZE := integer
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080048
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080049include $(BUILD_SHARED_LIBRARY)
50