heaps: Avoid possible divide by zero error
[ipc/ipcdev.git] / Android.mk
index 148e11bbe0120cdf66dd2e6b8c383a0fe8dec056..3417ace5385996f1d79d2d8d3bb33fbc44131a62 100644 (file)
@@ -39,7 +39,9 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
                      $(LOCAL_PATH)/hlos_common/include
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -fPIC
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/api/MultiProc.c \
                   linux/src/api/NameServer.c \
@@ -65,7 +67,9 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
                      $(LOCAL_PATH)/hlos_common/include
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
                   linux/src/utils/SocketFxns.c \
@@ -87,7 +91,9 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
                      $(LOCAL_PATH)/hlos_common/include
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
                   linux/src/utils/SocketFxns.c \
@@ -110,7 +116,9 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
                      $(LOCAL_PATH)/hlos_common/include
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/transport/TransportRpmsg.c
 
@@ -128,7 +136,9 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH) \
                     $(LOCAL_PATH)/packages
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= packages/ti/ipc/mm/MmRpc.c
 
@@ -146,8 +156,10 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
                      $(LOCAL_PATH)/packages \
                      $(LOCAL_PATH)/hlos_common/include
 
-LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT
+LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -DDAEMON=0
+LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/daemon/lad.c \
                   linux/src/daemon/Ipc_daemon.c \
@@ -178,6 +190,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQApp.c
 
@@ -196,6 +209,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQBench.c
 
@@ -214,6 +228,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/tests/MessageQMulti.c
 
@@ -233,6 +248,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/tests/NameServerApp.c
 
@@ -250,6 +266,7 @@ LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include
 
 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
 LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
 
 LOCAL_SRC_FILES:= linux/src/tests/ping_rpmsg.c
 
@@ -258,3 +275,22 @@ LOCAL_SHARED_LIBRARIES := \
 
 LOCAL_MODULE:= ping_rpmsg
 include $(BUILD_EXECUTABLE)
+
+
+############### MessageQFaultApp ###############
+include $(CLEAR_VARS)
+
+LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
+                     $(LOCAL_PATH)/packages
+
+LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
+LOCAL_MODULE_TAGS:= optional
+LOCAL_VENDOR_MODULE := true
+
+LOCAL_SRC_FILES:= linux/src/tests/MessageQFaultApp.c
+
+LOCAL_SHARED_LIBRARIES := \
+    liblog libtiipcutils libtiipc libtitransportrpmsg
+
+LOCAL_MODULE:= messageQFaultApp
+include $(BUILD_EXECUTABLE)