qnx: Add 64 bit defines
[ipc/ipcdev.git] / Android.mk
1 #
2 #   Copyright (c) 2015, Texas Instruments Incorporated
3 #
4 #   Redistribution and use in source and binary forms, with or without
5 #   modification, are permitted provided that the following conditions
6 #   are met:
7 #
8 #   *  Redistributions of source code must retain the above copyright
9 #      notice, this list of conditions and the following disclaimer.
10 #
11 #   *  Redistributions in binary form must reproduce the above copyright
12 #      notice, this list of conditions and the following disclaimer in the
13 #      documentation and/or other materials provided with the distribution.
14 #
15 #   *  Neither the name of Texas Instruments Incorporated nor the names of
16 #      its contributors may be used to endorse or promote products derived
17 #      from this software without specific prior written permission.
18 #
19 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 #   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 #   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 #   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 #   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 #   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 #   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 #   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 #   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 #   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29 #   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 #
32 LOCAL_PATH:= $(call my-dir)
34 ############### libtiipc ###############
35 include $(CLEAR_VARS)
37 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
38                      $(LOCAL_PATH)/packages \
39                      $(LOCAL_PATH)/hlos_common/include
41 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -fPIC
42 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
43 LOCAL_MODULE_TAGS:= optional
44 LOCAL_VENDOR_MODULE := true
46 LOCAL_SRC_FILES:= linux/src/api/MultiProc.c \
47                   linux/src/api/NameServer.c \
48                   linux/src/api/Ipc.c \
49                   linux/src/api/MessageQ.c \
50                   linux/src/api/gates/GateMP.c \
51                   linux/src/api/gates/GateMutex.c \
52                   linux/src/api/gates/GateHWSpinlock.c \
53                   linux/src/heaps/HeapStd.c
55 LOCAL_SHARED_LIBRARIES := \
56     liblog libtiipcutils
58 LOCAL_MODULE:= libtiipc
59 include $(BUILD_SHARED_LIBRARY)
62 ############### libtiipcutils ###############
63 include $(CLEAR_VARS)
65 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
66                      $(LOCAL_PATH)/packages \
67                      $(LOCAL_PATH)/hlos_common/include
69 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
70 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
71 LOCAL_MODULE_TAGS:= optional
72 LOCAL_VENDOR_MODULE := true
74 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
75                   linux/src/utils/SocketFxns.c \
76                   linux/src/utils/MultiProc_app.c \
77                   hlos_common/src/utils/MultiProc.c
79 LOCAL_SHARED_LIBRARIES := \
80     liblog
82 LOCAL_MODULE:= libtiipcutils
83 include $(BUILD_SHARED_LIBRARY)
86 ############### libtiipcutils_lad ###############
87 include $(CLEAR_VARS)
89 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
90                      $(LOCAL_PATH)/packages \
91                      $(LOCAL_PATH)/hlos_common/include
93 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
94 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
95 LOCAL_MODULE_TAGS:= optional
96 LOCAL_VENDOR_MODULE := true
98 LOCAL_SRC_FILES:= linux/src/utils/LAD_client.c \
99                   linux/src/utils/SocketFxns.c \
100                   hlos_common/src/utils/MultiProc.c
102 LOCAL_SHARED_LIBRARIES := \
103     liblog
105 LOCAL_ALLOW_UNDEFINED_SYMBOLS:= true
107 LOCAL_MODULE:= libtiipcutils_lad
108 include $(BUILD_SHARED_LIBRARY)
111 ############### libtitransportrpmsg ###############
112 include $(CLEAR_VARS)
114 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
115                      $(LOCAL_PATH)/packages \
116                      $(LOCAL_PATH)/hlos_common/include
118 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
119 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
120 LOCAL_MODULE_TAGS:= optional
121 LOCAL_VENDOR_MODULE := true
123 LOCAL_SRC_FILES:= linux/src/transport/TransportRpmsg.c
125 LOCAL_SHARED_LIBRARIES := \
126     liblog libtiipcutils libtiipc
128 LOCAL_MODULE:= libtitransportrpmsg
129 include $(BUILD_SHARED_LIBRARY)
132 ############### libmmrpc ###############
133 include $(CLEAR_VARS)
135 LOCAL_C_INCLUDES += $(LOCAL_PATH) \
136                     $(LOCAL_PATH)/packages
138 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
139 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
140 LOCAL_MODULE_TAGS:= optional
141 LOCAL_VENDOR_MODULE := true
143 LOCAL_SRC_FILES:= packages/ti/ipc/mm/MmRpc.c
145 LOCAL_SHARED_LIBRARIES := \
146     liblog
148 LOCAL_MODULE:= libmmrpc
149 include $(BUILD_SHARED_LIBRARY)
152 ############### lad_dra7xx ###############
153 include $(CLEAR_VARS)
155 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
156                      $(LOCAL_PATH)/packages \
157                      $(LOCAL_PATH)/hlos_common/include
159 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID -DGATEMP_SUPPORT -DDAEMON=0
160 LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
161 LOCAL_MODULE_TAGS:= optional
162 LOCAL_VENDOR_MODULE := true
164 LOCAL_SRC_FILES:= linux/src/daemon/lad.c \
165                   linux/src/daemon/Ipc_daemon.c \
166                   linux/src/daemon/MessageQ_daemon.c \
167                   linux/src/daemon/MultiProc_daemon.c \
168                   linux/src/daemon/NameServer_daemon.c \
169                   linux/src/daemon/cfg/MultiProcCfg_dra7xx.c \
170                   linux/src/daemon/GateMP_daemon.c \
171                   linux/src/daemon/GateHWSpinlock.c \
172                   linux/src/daemon/GateHWSpinlock_daemon.c \
173                   linux/src/daemon/cfg/GateHWSpinlockCfg_dra7xx.c \
174                   linux/src/daemon/cfg/IpcCfg.c \
175                   linux/src/daemon/cfg/MessageQCfg.c \
176                   linux/src/api/gates/GateMutex.c
178 LOCAL_SHARED_LIBRARIES := \
179     liblog libtiipcutils_lad
181 LOCAL_MODULE:= lad_dra7xx
182 include $(BUILD_EXECUTABLE)
185 ############### MessageQApp ###############
186 include $(CLEAR_VARS)
188 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
189                      $(LOCAL_PATH)/packages
191 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
192 LOCAL_MODULE_TAGS:= optional
193 LOCAL_VENDOR_MODULE := true
195 LOCAL_SRC_FILES:= linux/src/tests/MessageQApp.c
197 LOCAL_SHARED_LIBRARIES := \
198     liblog libtiipcutils libtiipc libtitransportrpmsg
200 LOCAL_MODULE:= messageQApp
201 include $(BUILD_EXECUTABLE)
204 ############### MessageQBench ###############
205 include $(CLEAR_VARS)
207 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
208                      $(LOCAL_PATH)/packages
210 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
211 LOCAL_MODULE_TAGS:= optional
212 LOCAL_VENDOR_MODULE := true
214 LOCAL_SRC_FILES:= linux/src/tests/MessageQBench.c
216 LOCAL_SHARED_LIBRARIES := \
217     liblog libtiipcutils libtiipc libtitransportrpmsg
219 LOCAL_MODULE:= messageQBench
220 include $(BUILD_EXECUTABLE)
223 ############### MessageQMulti ###############
224 include $(CLEAR_VARS)
226 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
227                      $(LOCAL_PATH)/packages
229 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
230 LOCAL_MODULE_TAGS:= optional
231 LOCAL_VENDOR_MODULE := true
233 LOCAL_SRC_FILES:= linux/src/tests/MessageQMulti.c
235 LOCAL_SHARED_LIBRARIES := \
236     liblog libtiipcutils libtiipc libtitransportrpmsg
238 LOCAL_MODULE:= messageQMulti
239 include $(BUILD_EXECUTABLE)
242 ############# NameServerApp ###############
243 include $(CLEAR_VARS)
245 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
246                      $(LOCAL_PATH)/hlos_common/include \
247                      $(LOCAL_PATH)/packages
249 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
250 LOCAL_MODULE_TAGS:= optional
251 LOCAL_VENDOR_MODULE := true
253 LOCAL_SRC_FILES:= linux/src/tests/NameServerApp.c
255 LOCAL_SHARED_LIBRARIES := \
256     liblog libtiipcutils libtiipc libtitransportrpmsg
258 LOCAL_MODULE:= nameServerApp
259 include $(BUILD_EXECUTABLE)
262 ############### ping_rpmsg ###############
263 include $(CLEAR_VARS)
265 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include
267 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
268 LOCAL_MODULE_TAGS:= optional
269 LOCAL_VENDOR_MODULE := true
271 LOCAL_SRC_FILES:= linux/src/tests/ping_rpmsg.c
273 LOCAL_SHARED_LIBRARIES := \
274     liblog
276 LOCAL_MODULE:= ping_rpmsg
277 include $(BUILD_EXECUTABLE)
280 ############### MessageQFaultApp ###############
281 include $(CLEAR_VARS)
283 LOCAL_C_INCLUDES +=  $(LOCAL_PATH)/linux/include \
284                      $(LOCAL_PATH)/packages
286 LOCAL_CFLAGS += -DIPC_BUILDOS_ANDROID
287 LOCAL_MODULE_TAGS:= optional
288 LOCAL_VENDOR_MODULE := true
290 LOCAL_SRC_FILES:= linux/src/tests/MessageQFaultApp.c
292 LOCAL_SHARED_LIBRARIES := \
293     liblog libtiipcutils libtiipc libtitransportrpmsg
295 LOCAL_MODULE:= messageQFaultApp
296 include $(BUILD_EXECUTABLE)