blob: 520c2479cfd53c414cac835f386525b5e271d842 [file] [log] [blame]
Daniel Hillenbrand601dc852013-07-07 10:06:59 +02001# Copyright 2006 The Android Open Source Project
2
3ifeq ($(BOARD_PROVIDES_LIBRIL),true)
4
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8LOCAL_SRC_FILES:= \
9 ril.cpp \
10 ril_event.cpp
11
12LOCAL_SHARED_LIBRARIES := \
Ethan Chend6e30652013-08-04 22:49:56 -070013 liblog \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020014 libutils \
15 libbinder \
16 libcutils \
Andrew Jiangca4a9a02014-01-18 18:04:08 -050017 libhardware_legacy \
18 librilutils
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020019
20LOCAL_CFLAGS :=
21
Andreas Schneider29472682015-01-01 19:00:04 +010022ifeq ($(BOARD_MODEM_TYPE),xmm7260)
23LOCAL_CFLAGS += -DMODEM_TYPE_XMM7260
24endif
25
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020026LOCAL_MODULE:= libril
27
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020028include $(BUILD_SHARED_LIBRARY)
29
30
31# For RdoServD which needs a static library
32# =========================================
33ifneq ($(ANDROID_BIONIC_TRANSITION),)
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES:= \
37 ril.cpp
38
39LOCAL_STATIC_LIBRARIES := \
40 libutils_static \
Andrew Jiangca4a9a02014-01-18 18:04:08 -050041 libcutils \
42 librilutils_static
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020043
44LOCAL_CFLAGS :=
45
46LOCAL_MODULE:= libril_static
47
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020048include $(BUILD_STATIC_LIBRARY)
49endif # ANDROID_BIONIC_TRANSITION
50endif # BOARD_PROVIDES_LIBRIL