blob: 5ac5fb36a235db642f84663416e10568f3ae3088 [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 := \
21 libnanopb-c-2.8.0-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
31
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080032LOCAL_MODULE:= libril
33
Dheeraj Shetty27976c42014-07-02 21:27:57 +020034LOCAL_COPY_HEADERS_TO := libril
35LOCAL_COPY_HEADERS := ril_ex.h
36
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080037include $(BUILD_SHARED_LIBRARY)
38
39
40# For RdoServD which needs a static library
41# =========================================
42ifneq ($(ANDROID_BIONIC_TRANSITION),)
43include $(CLEAR_VARS)
44
45LOCAL_SRC_FILES:= \
Dima Zavin622bf2b2013-05-22 11:29:34 -070046 ril.cpp
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080047
48LOCAL_STATIC_LIBRARIES := \
49 libutils_static \
Dima Zavin622bf2b2013-05-22 11:29:34 -070050 libcutils \
Dheeraj Shetty27976c42014-07-02 21:27:57 +020051 librilutils_static \
52 libnanopb-c-2.8.0-enable_malloc \
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080053
Wink Saville7f856802009-06-09 10:23:37 -070054LOCAL_CFLAGS :=
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080055
56LOCAL_MODULE:= libril_static
57
The Android Open Source Project00f06fc2009-03-03 19:32:15 -080058include $(BUILD_STATIC_LIBRARY)
59endif # ANDROID_BIONIC_TRANSITION