1# ============================================================================= 2# 3# MobiCore Android build components 4# 5# ============================================================================= 6 7LOCAL_PATH := $(call my-dir) 8 9# Client Library 10# ============================================================================= 11include $(CLEAR_VARS) 12LOCAL_MODULE := libMcClient 13LOCAL_MODULE_TAGS := optional 14LOCAL_C_INCLUDES += $(GLOBAL_INCLUDES) 15LOCAL_SHARED_LIBRARIES += $(GLOBAL_LIBRARIES) 16 17LOCAL_CFLAGS := -fvisibility=hidden -fvisibility-inlines-hidden 18LOCAL_CFLAGS += -DLOG_TAG=\"McClient\" 19 20# Add new source files here 21LOCAL_SRC_FILES += \ 22 ClientLib/Device.cpp \ 23 ClientLib/ClientLib.cpp \ 24 ClientLib/Session.cpp \ 25 Common/CMutex.cpp \ 26 Common/Connection.cpp 27 28LOCAL_EXPORT_C_INCLUDE_DIRS +=\ 29 $(COMP_PATH_MobiCore)/inc \ 30 $(LOCAL_PATH)/ClientLib/public 31 32LOCAL_C_INCLUDES += $(LOCAL_PATH)/Common 33 34include $(LOCAL_PATH)/Kernel/Android.mk 35# Import logwrapper 36include $(LOG_WRAPPER)/Android.mk 37 38include $(BUILD_SHARED_LIBRARY) 39 40# Daemon Application 41# ============================================================================= 42include $(CLEAR_VARS) 43 44LOCAL_MODULE := mcDriverDaemon 45LOCAL_MODULE_TAGS := optional 46LOCAL_CFLAGS += -include buildTag.h 47LOCAL_CFLAGS += -DLOG_TAG=\"McDaemon\" 48LOCAL_C_INCLUDES += $(GLOBAL_INCLUDES) 49LOCAL_SHARED_LIBRARIES += $(GLOBAL_LIBRARIES) 50 51include $(LOCAL_PATH)/Daemon/Android.mk 52 53# Common Source files required for building the daemon 54LOCAL_SRC_FILES += Common/CMutex.cpp \ 55 Common/Connection.cpp \ 56 Common/NetlinkConnection.cpp \ 57 Common/CSemaphore.cpp \ 58 Common/CThread.cpp 59 60# Includes required for the Daemon 61LOCAL_C_INCLUDES += $(LOCAL_PATH)/ClientLib/public \ 62 $(LOCAL_PATH)/Common 63 64# Common components 65include $(LOCAL_PATH)/Kernel/Android.mk 66include $(LOCAL_PATH)/Registry/Android.mk 67# Logwrapper 68include $(LOG_WRAPPER)/Android.mk 69 70include $(BUILD_EXECUTABLE) 71