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