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