OSDN Git Service

Skip stlport for simulator
[android-x86/hardware-ril.git] / mock-ril / Android.mk
1 # Copyright 2010 The Android Open Source Project
2
3 LOCAL_PATH:= $(call my-dir)
4 include $(CLEAR_VARS)
5
6 LOCAL_SRC_FILES:= \
7     t.pb.cpp \
8     mock-ril.cpp
9
10 LOCAL_SHARED_LIBRARIES := \
11     libcutils libutils libril
12
13 LOCAL_STATIC_LIBRARIES := \
14     libprotobuf-cpp-2.3.0-lite
15
16 # for asprinf
17 LOCAL_CFLAGS := -D_GNU_SOURCE -UNDEBUG -DGOOGLE_PROTOBUF_NO_RTTI
18
19 LOCAL_C_INCLUDES := \
20     external/protobuf/src \
21     bionic \
22     $(KERNEL_HEADERS)
23
24 # stlport conflicts with the host stl library
25 ifneq ($(TARGET_SIMULATOR),true)
26 LOCAL_SHARED_LIBRARIES += libstlport
27 LOCAL_C_INCLUDES += external/stlport/stlport
28 endif
29
30 # build shared library but don't require it be prelinked
31 LOCAL_PRELINK_MODULE := false
32 LOCAL_LDLIBS += -lpthread
33 LOCAL_CFLAGS += -DMOCK_RIL -DRIL_SHLIB
34 LOCAL_MODULE:= libmock_ril
35
36 include $(BUILD_SHARED_LIBRARY)