blob: 696051e2bdfeb69d090d80225bfd0d3fda8d6471 [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 \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080011
12LOCAL_SHARED_LIBRARIES := \
Ying Wang52688262013-04-09 22:31:00 -070013 liblog \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080014 libutils \
Mathias Agopian8a3c48c2009-05-19 19:11:50 -070015 libbinder \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080016 libcutils \
Dima Zavin622bf2b2013-05-22 11:29:34 -070017 libhardware_legacy \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020018 librilutils \
19
20LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070021 libprotobuf-c-nano-enable_malloc \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080022
Etan Cohend3652192014-06-20 08:28:44 -070023#LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1
24
25ifeq ($(SIM_COUNT), 2)
26 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
27endif
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080028
Dheeraj Shetty27976c42014-07-02 21:27:57 +020029LOCAL_C_INCLUDES += $(TARGET_OUT_HEADER)/librilutils
30LOCAL_C_INCLUDES += external/nanopb-c
Dan Willemsenf5d7ea32015-09-24 16:18:04 -070031LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
Dan Willemsen3cf07752015-09-28 14:33:14 -070032LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
Dheeraj Shetty27976c42014-07-02 21:27:57 +020033
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080034LOCAL_MODULE:= libril
35
Dheeraj Shetty27976c42014-07-02 21:27:57 +020036LOCAL_COPY_HEADERS_TO := libril
37LOCAL_COPY_HEADERS := ril_ex.h
38
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080039include $(BUILD_SHARED_LIBRARY)
40
41
42# For RdoServD which needs a static library
43# =========================================
44ifneq ($(ANDROID_BIONIC_TRANSITION),)
45include $(CLEAR_VARS)
46
47LOCAL_SRC_FILES:= \
Dima Zavin622bf2b2013-05-22 11:29:34 -070048 ril.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080049
50LOCAL_STATIC_LIBRARIES := \
51 libutils_static \
Dima Zavin622bf2b2013-05-22 11:29:34 -070052 libcutils \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020053 librilutils_static \
Vinit Deshpande1b1ec2d2015-04-15 13:31:05 -070054 libprotobuf-c-nano-enable_malloc
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080055
Wink Saville7f856802009-06-09 10:23:37 -070056LOCAL_CFLAGS :=
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080057
58LOCAL_MODULE:= libril_static
59
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080060include $(BUILD_STATIC_LIBRARY)
61endif # ANDROID_BIONIC_TRANSITION