Home | History | Annotate | Download | only in libril
      1 # Copyright 2006 The Android Open Source Project
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 include $(CLEAR_VARS)
      5 
      6 LOCAL_SRC_FILES:= \
      7     ril.cpp \
      8     ril_event.cpp\
      9     RilSocket.cpp \
     10     RilSapSocket.cpp \
     11 
     12 LOCAL_SHARED_LIBRARIES := \
     13     liblog \
     14     libutils \
     15     libbinder \
     16     libcutils \
     17     libhardware_legacy \
     18     librilutils \
     19 
     20 LOCAL_STATIC_LIBRARIES := \
     21     libprotobuf-c-nano-enable_malloc \
     22 
     23 #LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1
     24 
     25 ifeq ($(SIM_COUNT), 2)
     26     LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
     27 endif
     28 
     29 LOCAL_C_INCLUDES += external/nanopb-c
     30 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
     31 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
     32 
     33 LOCAL_MODULE:= libril
     34 LOCAL_CLANG := true
     35 LOCAL_SANITIZE := integer
     36 
     37 include $(BUILD_SHARED_LIBRARY)
     38 
     39 
     40 # For RdoServD which needs a static library
     41 # =========================================
     42 ifneq ($(ANDROID_BIONIC_TRANSITION),)
     43 include $(CLEAR_VARS)
     44 
     45 LOCAL_SRC_FILES:= \
     46     ril.cpp
     47 
     48 LOCAL_STATIC_LIBRARIES := \
     49     libutils_static \
     50     libcutils \
     51     librilutils_static \
     52     libprotobuf-c-nano-enable_malloc
     53 
     54 LOCAL_CFLAGS :=
     55 
     56 LOCAL_MODULE:= libril_static
     57 
     58 include $(BUILD_STATIC_LIBRARY)
     59 endif # ANDROID_BIONIC_TRANSITION
     60