jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1324 lines
51KB

  1. #
  2. # jack-1.9.10
  3. #
  4. LOCAL_PATH := $(call my-dir)
  5. JACK_ROOT := $(call my-dir)/..
  6. SUPPORT_ALSA_IN_JACK := true
  7. SUPPORT_ANDROID_REALTIME_SCHED := false
  8. ifeq ($(TARGET_BOARD_PLATFORM),mrvl)
  9. ALSA_INCLUDES := vendor/marvell/external/alsa-lib/include
  10. else
  11. ALSA_INCLUDES := vendor/samsung/common/external/alsa-lib/include
  12. endif
  13. JACK_STL_LDFLAGS := -Lprebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/libs/$(TARGET_CPU_ABI) -lgnustl_static
  14. JACK_STL_INCLUDES := $(JACK_ROOT)/android/cxx-stl/gnu-libstdc++/libs/$(TARGET_CPU_ABI)/include \
  15. prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/libs/$(TARGET_CPU_ABI)/include \
  16. prebuilts/ndk/current/sources/cxx-stl/gnu-libstdc++/include
  17. ##########################################################
  18. # common
  19. ##########################################################
  20. common_cflags := -O0 -g -Wall -fexceptions -fvisibility=hidden -DHAVE_CONFIG_H
  21. common_cflags += -Wno-unused -Wno-sign-compare -Wno-deprecated-declarations -Wno-cpp
  22. common_cppflags := -frtti -Wno-sign-promo -fcheck-new
  23. common_shm_cflags := -O0 -g -Wall -fexceptions -DHAVE_CONFIG_H -Wno-unused
  24. ifeq ($(TARGET_BOARD_PLATFORM),clovertrail)
  25. common_ldflags := -ldl
  26. else
  27. common_ldflags :=
  28. endif
  29. common_c_includes := \
  30. $(JACK_ROOT) \
  31. $(JACK_ROOT)/common \
  32. $(JACK_ROOT)/common/jack \
  33. $(JACK_ROOT)/android \
  34. $(JACK_ROOT)/linux \
  35. $(JACK_ROOT)/linux/alsa \
  36. $(JACK_ROOT)/posix \
  37. $(JACK_STL_INCLUDES)
  38. # copy common source file
  39. common_libsource_server_dir = .server
  40. common_libsource_client_dir = .client
  41. $(shell rm -rf $(LOCAL_PATH)/$(common_libsource_server_dir))
  42. $(shell rm -rf $(LOCAL_PATH)/$(common_libsource_client_dir))
  43. $(shell mkdir $(LOCAL_PATH)/$(common_libsource_server_dir))
  44. $(shell mkdir $(LOCAL_PATH)/$(common_libsource_client_dir))
  45. $(shell cp -f $(LOCAL_PATH)/../common/JackActivationCount.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackActivationCount.cpp)
  46. $(shell cp -f $(LOCAL_PATH)/../common/JackAPI.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackAPI.cpp)
  47. $(shell cp -f $(LOCAL_PATH)/../common/JackClient.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackClient.cpp)
  48. $(shell cp -f $(LOCAL_PATH)/../common/JackConnectionManager.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackConnectionManager.cpp)
  49. $(shell cp -f $(LOCAL_PATH)/../common/ringbuffer.c $(LOCAL_PATH)/$(common_libsource_server_dir)/ringbuffer.c)
  50. $(shell cp -f $(LOCAL_PATH)/JackError.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackError.cpp)
  51. $(shell cp -f $(LOCAL_PATH)/../common/JackException.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackException.cpp)
  52. $(shell cp -f $(LOCAL_PATH)/../common/JackFrameTimer.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackFrameTimer.cpp)
  53. $(shell cp -f $(LOCAL_PATH)/../common/JackGraphManager.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackGraphManager.cpp)
  54. $(shell cp -f $(LOCAL_PATH)/../common/JackPort.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackPort.cpp)
  55. $(shell cp -f $(LOCAL_PATH)/../common/JackPortType.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackPortType.cpp)
  56. $(shell cp -f $(LOCAL_PATH)/../common/JackAudioPort.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackAudioPort.cpp)
  57. $(shell cp -f $(LOCAL_PATH)/../common/JackMidiPort.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackMidiPort.cpp)
  58. $(shell cp -f $(LOCAL_PATH)/../common/JackMidiAPI.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackMidiAPI.cpp)
  59. $(shell cp -f $(LOCAL_PATH)/../common/JackEngineControl.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackEngineControl.cpp)
  60. $(shell cp -f $(LOCAL_PATH)/../common/JackShmMem.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackShmMem.cpp)
  61. $(shell cp -f $(LOCAL_PATH)/../common/JackGenericClientChannel.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackGenericClientChannel.cpp)
  62. $(shell cp -f $(LOCAL_PATH)/../common/JackGlobals.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackGlobals.cpp)
  63. $(shell cp -f $(LOCAL_PATH)/../common/JackDebugClient.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackDebugClient.cpp)
  64. $(shell cp -f $(LOCAL_PATH)/../common/JackTransportEngine.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackTransportEngine.cpp)
  65. $(shell cp -f $(LOCAL_PATH)/../common/timestamps.c $(LOCAL_PATH)/$(common_libsource_server_dir)/timestamps.c)
  66. $(shell cp -f $(LOCAL_PATH)/../common/JackTools.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackTools.cpp)
  67. $(shell cp -f $(LOCAL_PATH)/../common/JackMessageBuffer.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackMessageBuffer.cpp)
  68. $(shell cp -f $(LOCAL_PATH)/../common/JackEngineProfiling.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackEngineProfiling.cpp)
  69. $(shell cp -f $(LOCAL_PATH)/JackAndroidThread.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackAndroidThread.cpp)
  70. $(shell cp -f $(LOCAL_PATH)/JackAndroidSemaphore.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackAndroidSemaphore.cpp)
  71. $(shell cp -f $(LOCAL_PATH)/../posix/JackPosixProcessSync.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackPosixProcessSync.cpp)
  72. $(shell cp -f $(LOCAL_PATH)/../posix/JackPosixMutex.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackPosixMutex.cpp)
  73. $(shell cp -f $(LOCAL_PATH)/../posix/JackSocket.cpp $(LOCAL_PATH)/$(common_libsource_server_dir)/JackSocket.cpp)
  74. $(shell cp -f $(LOCAL_PATH)/../linux/JackLinuxTime.c $(LOCAL_PATH)/$(common_libsource_server_dir)/JackLinuxTime.c)
  75. $(shell cp -f $(LOCAL_PATH)/../common/JackActivationCount.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackActivationCount.cpp)
  76. $(shell cp -f $(LOCAL_PATH)/../common/JackAPI.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackAPI.cpp)
  77. $(shell cp -f $(LOCAL_PATH)/../common/JackClient.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackClient.cpp)
  78. $(shell cp -f $(LOCAL_PATH)/../common/JackConnectionManager.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackConnectionManager.cpp)
  79. $(shell cp -f $(LOCAL_PATH)/../common/ringbuffer.c $(LOCAL_PATH)/$(common_libsource_client_dir)/ringbuffer.c)
  80. $(shell cp -f $(LOCAL_PATH)/JackError.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackError.cpp)
  81. $(shell cp -f $(LOCAL_PATH)/../common/JackException.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackException.cpp)
  82. $(shell cp -f $(LOCAL_PATH)/../common/JackFrameTimer.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackFrameTimer.cpp)
  83. $(shell cp -f $(LOCAL_PATH)/../common/JackGraphManager.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackGraphManager.cpp)
  84. $(shell cp -f $(LOCAL_PATH)/../common/JackPort.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackPort.cpp)
  85. $(shell cp -f $(LOCAL_PATH)/../common/JackPortType.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackPortType.cpp)
  86. $(shell cp -f $(LOCAL_PATH)/../common/JackAudioPort.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackAudioPort.cpp)
  87. $(shell cp -f $(LOCAL_PATH)/../common/JackMidiPort.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackMidiPort.cpp)
  88. $(shell cp -f $(LOCAL_PATH)/../common/JackMidiAPI.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackMidiAPI.cpp)
  89. $(shell cp -f $(LOCAL_PATH)/../common/JackEngineControl.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackEngineControl.cpp)
  90. $(shell cp -f $(LOCAL_PATH)/../common/JackShmMem.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackShmMem.cpp)
  91. $(shell cp -f $(LOCAL_PATH)/../common/JackGenericClientChannel.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackGenericClientChannel.cpp)
  92. $(shell cp -f $(LOCAL_PATH)/../common/JackGlobals.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackGlobals.cpp)
  93. $(shell cp -f $(LOCAL_PATH)/../common/JackDebugClient.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackDebugClient.cpp)
  94. $(shell cp -f $(LOCAL_PATH)/../common/JackTransportEngine.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackTransportEngine.cpp)
  95. $(shell cp -f $(LOCAL_PATH)/../common/timestamps.c $(LOCAL_PATH)/$(common_libsource_client_dir)/timestamps.c)
  96. $(shell cp -f $(LOCAL_PATH)/../common/JackTools.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackTools.cpp)
  97. $(shell cp -f $(LOCAL_PATH)/../common/JackMessageBuffer.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackMessageBuffer.cpp)
  98. $(shell cp -f $(LOCAL_PATH)/../common/JackEngineProfiling.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackEngineProfiling.cpp)
  99. $(shell cp -f $(LOCAL_PATH)/JackAndroidThread.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackAndroidThread.cpp)
  100. $(shell cp -f $(LOCAL_PATH)/JackAndroidSemaphore.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackAndroidSemaphore.cpp)
  101. $(shell cp -f $(LOCAL_PATH)/../posix/JackPosixProcessSync.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackPosixProcessSync.cpp)
  102. $(shell cp -f $(LOCAL_PATH)/../posix/JackPosixMutex.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackPosixMutex.cpp)
  103. $(shell cp -f $(LOCAL_PATH)/../posix/JackSocket.cpp $(LOCAL_PATH)/$(common_libsource_client_dir)/JackSocket.cpp)
  104. $(shell cp -f $(LOCAL_PATH)/../linux/JackLinuxTime.c $(LOCAL_PATH)/$(common_libsource_client_dir)/JackLinuxTime.c)
  105. common_libsource_server := \
  106. $(common_libsource_server_dir)/JackActivationCount.cpp \
  107. $(common_libsource_server_dir)/JackAPI.cpp \
  108. $(common_libsource_server_dir)/JackClient.cpp \
  109. $(common_libsource_server_dir)/JackConnectionManager.cpp \
  110. $(common_libsource_server_dir)/ringbuffer.c \
  111. $(common_libsource_server_dir)/JackError.cpp \
  112. $(common_libsource_server_dir)/JackException.cpp \
  113. $(common_libsource_server_dir)/JackFrameTimer.cpp \
  114. $(common_libsource_server_dir)/JackGraphManager.cpp \
  115. $(common_libsource_server_dir)/JackPort.cpp \
  116. $(common_libsource_server_dir)/JackPortType.cpp \
  117. $(common_libsource_server_dir)/JackAudioPort.cpp \
  118. $(common_libsource_server_dir)/JackMidiPort.cpp \
  119. $(common_libsource_server_dir)/JackMidiAPI.cpp \
  120. $(common_libsource_server_dir)/JackEngineControl.cpp \
  121. $(common_libsource_server_dir)/JackShmMem.cpp \
  122. $(common_libsource_server_dir)/JackGenericClientChannel.cpp \
  123. $(common_libsource_server_dir)/JackGlobals.cpp \
  124. $(common_libsource_server_dir)/JackDebugClient.cpp \
  125. $(common_libsource_server_dir)/JackTransportEngine.cpp \
  126. $(common_libsource_server_dir)/timestamps.c \
  127. $(common_libsource_server_dir)/JackTools.cpp \
  128. $(common_libsource_server_dir)/JackMessageBuffer.cpp \
  129. $(common_libsource_server_dir)/JackEngineProfiling.cpp \
  130. $(common_libsource_server_dir)/JackAndroidThread.cpp \
  131. $(common_libsource_server_dir)/JackAndroidSemaphore.cpp \
  132. $(common_libsource_server_dir)/JackPosixProcessSync.cpp \
  133. $(common_libsource_server_dir)/JackPosixMutex.cpp \
  134. $(common_libsource_server_dir)/JackSocket.cpp \
  135. $(common_libsource_server_dir)/JackLinuxTime.c
  136. common_libsource_client := \
  137. $(common_libsource_client_dir)/JackActivationCount.cpp \
  138. $(common_libsource_client_dir)/JackAPI.cpp \
  139. $(common_libsource_client_dir)/JackClient.cpp \
  140. $(common_libsource_client_dir)/JackConnectionManager.cpp \
  141. $(common_libsource_client_dir)/ringbuffer.c \
  142. $(common_libsource_client_dir)/JackError.cpp \
  143. $(common_libsource_client_dir)/JackException.cpp \
  144. $(common_libsource_client_dir)/JackFrameTimer.cpp \
  145. $(common_libsource_client_dir)/JackGraphManager.cpp \
  146. $(common_libsource_client_dir)/JackPort.cpp \
  147. $(common_libsource_client_dir)/JackPortType.cpp \
  148. $(common_libsource_client_dir)/JackAudioPort.cpp \
  149. $(common_libsource_client_dir)/JackMidiPort.cpp \
  150. $(common_libsource_client_dir)/JackMidiAPI.cpp \
  151. $(common_libsource_client_dir)/JackEngineControl.cpp \
  152. $(common_libsource_client_dir)/JackShmMem.cpp \
  153. $(common_libsource_client_dir)/JackGenericClientChannel.cpp \
  154. $(common_libsource_client_dir)/JackGlobals.cpp \
  155. $(common_libsource_client_dir)/JackDebugClient.cpp \
  156. $(common_libsource_client_dir)/JackTransportEngine.cpp \
  157. $(common_libsource_client_dir)/timestamps.c \
  158. $(common_libsource_client_dir)/JackTools.cpp \
  159. $(common_libsource_client_dir)/JackMessageBuffer.cpp \
  160. $(common_libsource_client_dir)/JackEngineProfiling.cpp \
  161. $(common_libsource_client_dir)/JackAndroidThread.cpp \
  162. $(common_libsource_client_dir)/JackAndroidSemaphore.cpp \
  163. $(common_libsource_client_dir)/JackPosixProcessSync.cpp \
  164. $(common_libsource_client_dir)/JackPosixMutex.cpp \
  165. $(common_libsource_client_dir)/JackSocket.cpp \
  166. $(common_libsource_client_dir)/JackLinuxTime.c
  167. server_libsource := \
  168. ../common/JackAudioDriver.cpp \
  169. ../common/JackTimedDriver.cpp \
  170. ../common/JackMidiDriver.cpp \
  171. ../common/JackDriver.cpp \
  172. ../common/JackEngine.cpp \
  173. ../common/JackExternalClient.cpp \
  174. ../common/JackFreewheelDriver.cpp \
  175. ../common/JackInternalClient.cpp \
  176. ../common/JackServer.cpp \
  177. ../common/JackThreadedDriver.cpp \
  178. ../common/JackRestartThreadedDriver.cpp \
  179. ../common/JackWaitThreadedDriver.cpp \
  180. ../common/JackServerAPI.cpp \
  181. ../common/JackDriverLoader.cpp \
  182. ../common/JackServerGlobals.cpp \
  183. ../common/JackControlAPI.cpp \
  184. JackControlAPIAndroid.cpp \
  185. ../common/JackNetTool.cpp \
  186. ../common/JackNetInterface.cpp \
  187. ../common/JackArgParser.cpp \
  188. ../common/JackRequestDecoder.cpp \
  189. ../common/JackMidiAsyncQueue.cpp \
  190. ../common/JackMidiAsyncWaitQueue.cpp \
  191. ../common/JackMidiBufferReadQueue.cpp \
  192. ../common/JackMidiBufferWriteQueue.cpp \
  193. ../common/JackMidiRawInputWriteQueue.cpp \
  194. ../common/JackMidiRawOutputWriteQueue.cpp \
  195. ../common/JackMidiReadQueue.cpp \
  196. ../common/JackMidiReceiveQueue.cpp \
  197. ../common/JackMidiSendQueue.cpp \
  198. ../common/JackMidiUtil.cpp \
  199. ../common/JackMidiWriteQueue.cpp \
  200. ../posix/JackSocketServerChannel.cpp \
  201. ../posix/JackSocketNotifyChannel.cpp \
  202. ../posix/JackSocketServerNotifyChannel.cpp \
  203. ../posix/JackNetUnixSocket.cpp
  204. net_libsource := \
  205. ../common/JackNetAPI.cpp \
  206. ../common/JackNetInterface.cpp \
  207. ../common/JackNetTool.cpp \
  208. ../common/JackException.cpp \
  209. ../common/JackAudioAdapterInterface.cpp \
  210. ../common/JackLibSampleRateResampler.cpp \
  211. ../common/JackResampler.cpp \
  212. ../common/JackGlobals.cpp \
  213. ../posix/JackPosixMutex.cpp \
  214. ../common/ringbuffer.c \
  215. ../posix/JackNetUnixSocket.cpp \
  216. $(common_libsource_server_dir)/JackAndroidThread.cpp \
  217. ../linux/JackLinuxTime.c
  218. client_libsource := \
  219. ../common/JackLibClient.cpp \
  220. ../common/JackLibAPI.cpp \
  221. ../posix/JackSocketClientChannel.cpp \
  222. ../posix/JackPosixServerLaunch.cpp
  223. netadapter_libsource := \
  224. ../common/JackResampler.cpp \
  225. ../common/JackLibSampleRateResampler.cpp \
  226. ../common/JackAudioAdapter.cpp \
  227. ../common/JackAudioAdapterInterface.cpp \
  228. ../common/JackNetAdapter.cpp
  229. audioadapter_libsource := \
  230. ../common/JackResampler.cpp \
  231. ../common/JackLibSampleRateResampler.cpp \
  232. ../common/JackAudioAdapter.cpp \
  233. ../common/JackAudioAdapterInterface.cpp \
  234. ../common/JackAudioAdapterFactory.cpp \
  235. ../linux/alsa/JackAlsaAdapter.cpp
  236. ifeq ($(SUPPORT_ANDROID_REALTIME_SCHED), true)
  237. sched_c_include := bionic/libc/bionic \
  238. frameworks/av/services/audioflinger
  239. endif
  240. # ========================================================
  241. # libjackserver.so
  242. # ========================================================
  243. include $(CLEAR_VARS)
  244. LOCAL_SRC_FILES := $(common_libsource_server) $(server_libsource)
  245. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  246. LOCAL_CPPFLAGS := $(common_cppflags)
  247. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  248. LOCAL_C_INCLUDES := $(common_c_includes)
  249. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libjackshm
  250. LOCAL_MODULE_TAGS := eng optional
  251. LOCAL_MODULE := libjackserver
  252. ifeq ($(SUPPORT_ANDROID_REALTIME_SCHED), true)
  253. LOCAL_CFLAGS += -DJACK_ANDROID_REALTIME_SCHED
  254. LOCAL_C_INCLUDES += $(sched_c_include)
  255. LOCAL_SHARED_LIBRARIES += libbinder
  256. LOCAL_STATIC_LIBRARIES := libscheduling_policy
  257. endif
  258. include $(BUILD_SHARED_LIBRARY)
  259. ## ========================================================
  260. ## libjacknet.so
  261. ## ========================================================
  262. #include $(CLEAR_VARS)
  263. #
  264. #LOCAL_SRC_FILES := $(net_libsource)
  265. #LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  266. #LOCAL_CPPFLAGS := $(common_cppflags)
  267. #LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  268. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include
  269. #LOCAL_SHARED_LIBRARIES := libc libdl libcutils libsamplerate
  270. #LOCAL_MODULE_TAGS := eng optional
  271. #LOCAL_MODULE := libjacknet
  272. #
  273. #include $(BUILD_SHARED_LIBRARY)
  274. # ========================================================
  275. # libjack.so
  276. # ========================================================
  277. include $(CLEAR_VARS)
  278. LOCAL_SRC_FILES := $(common_libsource_client) $(client_libsource)
  279. LOCAL_CFLAGS := $(common_cflags)
  280. LOCAL_CPPFLAGS := $(common_cppflags)
  281. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  282. LOCAL_C_INCLUDES := $(common_c_includes)
  283. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libjackshm
  284. LOCAL_MODULE_TAGS := eng optional
  285. LOCAL_MODULE := libjack
  286. ifeq ($(SUPPORT_ANDROID_REALTIME_SCHED), true)
  287. LOCAL_CFLAGS += -DJACK_ANDROID_REALTIME_SCHED
  288. LOCAL_C_INCLUDES += $(sched_c_include)
  289. LOCAL_SHARED_LIBRARIES += libbinder
  290. LOCAL_STATIC_LIBRARIES := libscheduling_policy
  291. endif
  292. include $(BUILD_SHARED_LIBRARY)
  293. # ========================================================
  294. # netmanager.so
  295. # ========================================================
  296. include $(CLEAR_VARS)
  297. LOCAL_SRC_FILES := ../common/JackNetManager.cpp
  298. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  299. LOCAL_CPPFLAGS := $(common_cppflags)
  300. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  301. LOCAL_C_INCLUDES := $(common_c_includes)
  302. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  303. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  304. LOCAL_MODULE_TAGS := eng optional
  305. LOCAL_MODULE := netmanager
  306. include $(BUILD_SHARED_LIBRARY)
  307. # ========================================================
  308. # profiler.so
  309. # ========================================================
  310. include $(CLEAR_VARS)
  311. LOCAL_SRC_FILES := ../common/JackProfiler.cpp
  312. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  313. LOCAL_CPPFLAGS := $(common_cppflags)
  314. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  315. LOCAL_C_INCLUDES := $(common_c_includes)
  316. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  317. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  318. LOCAL_MODULE_TAGS := eng optional
  319. LOCAL_MODULE := profiler
  320. include $(BUILD_SHARED_LIBRARY)
  321. ## ========================================================
  322. ## netadapter.so
  323. ## ========================================================
  324. #include $(CLEAR_VARS)
  325. #
  326. #LOCAL_SRC_FILES := $(netadapter_libsource)
  327. #LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  328. #LOCAL_CPPFLAGS := $(common_cppflags)
  329. #LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  330. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include
  331. #LOCAL_SHARED_LIBRARIES := libc libdl libcutils libsamplerate libjackserver
  332. #LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  333. #LOCAL_MODULE_TAGS := eng optional
  334. #LOCAL_MODULE := netadapter
  335. #
  336. #include $(BUILD_SHARED_LIBRARY)
  337. ## ========================================================
  338. ## audioadapter.so
  339. ## ========================================================
  340. #ifeq ($(SUPPORT_ALSA_IN_JACK),true)
  341. #include $(CLEAR_VARS)
  342. #
  343. #LOCAL_SRC_FILES := $(audioadapter_libsource)
  344. #LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE -D_POSIX_SOURCE
  345. #LOCAL_CPPFLAGS := $(common_cppflags)
  346. #LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  347. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include $(ALSA_INCLUDES)
  348. #LOCAL_SHARED_LIBRARIES := libc libdl libcutils libasound libsamplerate libjackserver
  349. #LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  350. #LOCAL_MODULE_TAGS := eng optional
  351. #LOCAL_MODULE := audioadapter
  352. #
  353. #include $(BUILD_SHARED_LIBRARY)
  354. ##endif
  355. # ========================================================
  356. # in.so - sapaproxy internal client
  357. # ========================================================
  358. include $(CLEAR_VARS)
  359. LOCAL_SRC_FILES := JackSapaProxy.cpp JackSapaProxyIn.cpp
  360. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  361. LOCAL_CPPFLAGS := $(common_cppflags)
  362. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  363. LOCAL_C_INCLUDES := $(common_c_includes)
  364. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  365. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  366. LOCAL_MODULE_TAGS := eng optional
  367. LOCAL_MODULE := in
  368. include $(BUILD_SHARED_LIBRARY)
  369. # ========================================================
  370. # out.so - sapaproxy internal client
  371. # ========================================================
  372. include $(CLEAR_VARS)
  373. LOCAL_SRC_FILES := JackSapaProxy.cpp JackSapaProxyOut.cpp
  374. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  375. LOCAL_CPPFLAGS := $(common_cppflags)
  376. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  377. LOCAL_C_INCLUDES := $(common_c_includes)
  378. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  379. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  380. LOCAL_MODULE_TAGS := eng optional
  381. LOCAL_MODULE := out
  382. include $(BUILD_SHARED_LIBRARY)
  383. ##########################################################
  384. # linux
  385. ##########################################################
  386. # ========================================================
  387. # jackd
  388. # ========================================================
  389. include $(CLEAR_VARS)
  390. LOCAL_SRC_FILES := \
  391. ../common/Jackdmp.cpp
  392. # ../dbus/reserve.c
  393. # ../dbus/audio_reserve.c
  394. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  395. LOCAL_CPPFLAGS := $(common_cppflags)
  396. LOCAL_LDFLAGS := $(JACK_STL_LDFLAGS) -ldl -Wl,--no-fatal-warnings
  397. LOCAL_C_INCLUDES := $(common_c_includes)
  398. LOCAL_SHARED_LIBRARIES := libc libutils libjackserver
  399. LOCAL_MODULE_TAGS := eng optional
  400. LOCAL_MODULE := jackd
  401. include $(BUILD_EXECUTABLE)
  402. # ========================================================
  403. # driver - dummy
  404. # ========================================================
  405. include $(CLEAR_VARS)
  406. LOCAL_SRC_FILES := ../common/JackDummyDriver.cpp
  407. #'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  408. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  409. LOCAL_CPPFLAGS := $(common_cppflags)
  410. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  411. LOCAL_C_INCLUDES := $(common_c_includes)
  412. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  413. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  414. LOCAL_MODULE_TAGS := eng optional
  415. LOCAL_MODULE := jack_dummy
  416. include $(BUILD_SHARED_LIBRARY)
  417. # ========================================================
  418. # driver - alsa
  419. # ========================================================
  420. ifeq ($(SUPPORT_ALSA_IN_JACK),true)
  421. include $(CLEAR_VARS)
  422. LOCAL_SRC_FILES := \
  423. ../linux/alsa/JackAlsaDriver.cpp \
  424. ../linux/alsa/alsa_midi_jackmp.cpp \
  425. ../common/memops.c \
  426. ../linux/alsa/generic_hw.c \
  427. ../linux/alsa/hdsp.c \
  428. ../linux/alsa/alsa_driver.c \
  429. ../linux/alsa/hammerfall.c \
  430. ../linux/alsa/ice1712.c
  431. # ../linux/alsa/alsa_rawmidi.c
  432. # ../linux/alsa/alsa_seqmidi.c
  433. #'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  434. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE -D_POSIX_SOURCE -D_XOPEN_SOURCE=600
  435. LOCAL_CPPFLAGS := $(common_cppflags)
  436. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  437. LOCAL_C_INCLUDES := $(common_c_includes) $(ALSA_INCLUDES)
  438. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver libasound
  439. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  440. LOCAL_MODULE_TAGS := eng optional
  441. LOCAL_MODULE := jack_alsa
  442. include $(BUILD_SHARED_LIBRARY)
  443. endif
  444. ## ========================================================
  445. ## driver - alsarawmidi
  446. ## ========================================================
  447. #include $(CLEAR_VARS)
  448. #
  449. #LOCAL_SRC_FILES := \
  450. # ../linux/alsarawmidi/JackALSARawMidiDriver.cpp \
  451. # ../linux/alsarawmidi/JackALSARawMidiInputPort.cpp \
  452. # ../linux/alsarawmidi/JackALSARawMidiOutputPort.cpp \
  453. # ../linux/alsarawmidi/JackALSARawMidiPort.cpp \
  454. # ../linux/alsarawmidi/JackALSARawMidiReceiveQueue.cpp \
  455. # ../linux/alsarawmidi/JackALSARawMidiSendQueue.cpp \
  456. # ../linux/alsarawmidi/JackALSARawMidiUtil.cpp
  457. ##'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  458. #LOCAL_CFLAGS := $(common_cflags) -D_POSIX_SOURCE -D__ALSA_RAWMIDI_H
  459. #LOCAL_CPPFLAGS := $(common_cppflags)
  460. #LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  461. #LOCAL_C_INCLUDES := $(common_c_includes) $(ALSA_INCLUDES)
  462. #LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver libasound
  463. #LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  464. #LOCAL_MODULE_TAGS := eng optional
  465. #LOCAL_MODULE := jack_alsarawmidi
  466. #
  467. #include $(BUILD_SHARED_LIBRARY)
  468. ## LIBFFADO required
  469. ## ========================================================
  470. ## driver - firewire
  471. ## ========================================================
  472. #include $(CLEAR_VARS)
  473. #
  474. #LOCAL_SRC_FILES := \
  475. # ../linux/firewire/JackFFADODriver.cpp \
  476. # ../linux/firewire/JackFFADOMidiInputPort.cpp \
  477. # ../linux/firewire/JackFFADOMidiOutputPort.cpp \
  478. # ../linux/firewire/JackFFADOMidiReceiveQueue.cpp \
  479. # ../linux/firewire/JackFFADOMidiSendQueue.cpp
  480. ##'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  481. #LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  482. #LOCAL_CPPFLAGS := $(common_cppflags)
  483. #LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  484. #LOCAL_C_INCLUDES := $(common_c_includes)
  485. #LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  486. #LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  487. #LOCAL_MODULE_TAGS := eng optional
  488. #LOCAL_MODULE := jack_firewire
  489. #
  490. #include $(BUILD_SHARED_LIBRARY)
  491. # ========================================================
  492. # driver - net
  493. # ========================================================
  494. include $(CLEAR_VARS)
  495. LOCAL_SRC_FILES := ../common/JackNetDriver.cpp
  496. #'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  497. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  498. LOCAL_CPPFLAGS := $(common_cppflags)
  499. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  500. LOCAL_C_INCLUDES := $(common_c_includes)
  501. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  502. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  503. LOCAL_MODULE_TAGS := eng optional
  504. LOCAL_MODULE := jack_net
  505. include $(BUILD_SHARED_LIBRARY)
  506. # ========================================================
  507. # driver - loopback
  508. # ========================================================
  509. include $(CLEAR_VARS)
  510. LOCAL_SRC_FILES := ../common/JackLoopbackDriver.cpp
  511. #'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  512. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  513. LOCAL_CPPFLAGS := $(common_cppflags)
  514. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  515. LOCAL_C_INCLUDES := $(common_c_includes)
  516. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  517. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  518. LOCAL_MODULE_TAGS := eng optional
  519. LOCAL_MODULE := jack_loopback
  520. include $(BUILD_SHARED_LIBRARY)
  521. ##HAVE_SAMPLERATE, HAVE_CELT required
  522. ## ========================================================
  523. ## driver - netone
  524. ## ========================================================
  525. #include $(CLEAR_VARS)
  526. #
  527. #LOCAL_SRC_FILES := \
  528. # ../common/JackNetOneDriver.cpp \
  529. # ../common/netjack.c \
  530. # ../common/netjack_packet.c
  531. ##'HAVE_CONFIG_H','SERVER_SIDE', 'HAVE_PPOLL', 'HAVE_TIMERFD
  532. #LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  533. #LOCAL_CPPFLAGS := $(common_cppflags)
  534. #LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  535. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include
  536. #LOCAL_SHARED_LIBRARIES := libc libdl libcutils libsamplerate libjackserver
  537. #LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  538. #LOCAL_MODULE_TAGS := eng optional
  539. #LOCAL_MODULE := jack_netone
  540. #
  541. #include $(BUILD_SHARED_LIBRARY)
  542. ##########################################################
  543. # android
  544. ##########################################################
  545. # ========================================================
  546. # libjackshm.so
  547. # ========================================================
  548. include $(CLEAR_VARS)
  549. LOCAL_SRC_FILES := BnAndroidShm.cpp BpAndroidShm.cpp IAndroidShm.cpp AndroidShm.cpp Shm.cpp
  550. LOCAL_CFLAGS := $(common_shm_cflags) -DSERVER_SIDE
  551. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  552. LOCAL_C_INCLUDES := $(common_c_includes)
  553. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libbinder
  554. LOCAL_MODULE_TAGS := eng optional
  555. LOCAL_MODULE := libjackshm
  556. include $(BUILD_SHARED_LIBRARY)
  557. # ========================================================
  558. # jack_goldfish.so - Goldfish driver for emulator
  559. # ========================================================
  560. include $(CLEAR_VARS)
  561. LOCAL_SRC_FILES := JackGoldfishDriver.cpp
  562. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  563. LOCAL_CPPFLAGS := $(common_cppflags)
  564. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  565. LOCAL_C_INCLUDES := $(common_c_includes)
  566. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  567. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  568. LOCAL_MODULE_TAGS := eng optional
  569. LOCAL_MODULE := jack_goldfish
  570. include $(BUILD_SHARED_LIBRARY)
  571. # ========================================================
  572. # jack_opensles.so - OpenSL ES driver
  573. # ========================================================
  574. include $(CLEAR_VARS)
  575. LOCAL_SRC_FILES := JackOpenSLESDriver.cpp opensl_io.c
  576. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  577. LOCAL_CPPFLAGS := $(common_cppflags)
  578. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  579. LOCAL_C_INCLUDES := $(common_c_includes) frameworks/wilhelm/include
  580. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver libOpenSLES
  581. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  582. LOCAL_MODULE_TAGS := eng optional
  583. LOCAL_MODULE := jack_opensles
  584. include $(BUILD_SHARED_LIBRARY)
  585. ##########################################################
  586. # android/AndroidShmServer
  587. ##########################################################
  588. # ========================================================
  589. # androidshmservice
  590. # ========================================================
  591. include $(CLEAR_VARS)
  592. LOCAL_SRC_FILES := ./AndroidShmServer/main_androidshmservice.cpp
  593. LOCAL_CFLAGS := $(common_cflags)
  594. LOCAL_CPPFLAGS := $(common_cppflags)
  595. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  596. LOCAL_C_INCLUDES := $(common_c_includes)
  597. LOCAL_SHARED_LIBRARIES := libcutils libutils libbinder libjackshm
  598. LOCAL_MODULE_TAGS := eng optional
  599. LOCAL_MODULE:= androidshmservice
  600. include $(BUILD_EXECUTABLE)
  601. # ========================================================
  602. # shmservicetest
  603. # ========================================================
  604. include $(CLEAR_VARS)
  605. LOCAL_SRC_FILES := ./AndroidShmServer/test/shmservicetest.cpp
  606. LOCAL_CFLAGS := $(common_cflags) -DLOG_TAG=\"ShmServiceTest\"
  607. LOCAL_CPPFLAGS := $(common_cppflags)
  608. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  609. LOCAL_C_INCLUDES := $(common_c_includes)
  610. LOCAL_SHARED_LIBRARIES := libcutils libutils libjackshm libbinder
  611. LOCAL_MODULE_TAGS := eng optional
  612. LOCAL_MODULE := shmservicetest
  613. include $(BUILD_EXECUTABLE)
  614. # ========================================================
  615. # shmservicedump
  616. # ========================================================
  617. include $(CLEAR_VARS)
  618. LOCAL_SRC_FILES := ./AndroidShmServer/test/shmservicedump.cpp
  619. LOCAL_CFLAGS := $(common_cflags) -DLOG_TAG=\"ShmServiceDump\"
  620. LOCAL_CPPFLAGS := $(common_cppflags)
  621. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  622. LOCAL_SHARED_LIBRARIES := libcutils libutils libjackshm libbinder
  623. LOCAL_C_INCLUDES := $(common_c_includes)
  624. LOCAL_MODULE_TAGS := eng optional
  625. LOCAL_MODULE := shmservicedump
  626. include $(BUILD_EXECUTABLE)
  627. ##########################################################
  628. # example-clients
  629. ##########################################################
  630. # ========================================================
  631. # jack_freewheel
  632. # ========================================================
  633. include $(CLEAR_VARS)
  634. LOCAL_SRC_FILES := ../example-clients/freewheel.c
  635. LOCAL_CFLAGS := $(common_cflags)
  636. LOCAL_LDFLAGS := $(common_ldflags)
  637. LOCAL_C_INCLUDES := $(common_c_includes)
  638. LOCAL_SHARED_LIBRARIES := libjack
  639. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  640. LOCAL_MODULE_TAGS := eng optional
  641. LOCAL_MODULE := jack_freewheel
  642. include $(BUILD_EXECUTABLE)
  643. # ========================================================
  644. # jack_connect
  645. # ========================================================
  646. include $(CLEAR_VARS)
  647. LOCAL_SRC_FILES := ../example-clients/connect.c
  648. LOCAL_CFLAGS := $(common_cflags)
  649. LOCAL_LDFLAGS := $(common_ldflags)
  650. LOCAL_C_INCLUDES := $(common_c_includes)
  651. LOCAL_SHARED_LIBRARIES := libjack
  652. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  653. LOCAL_MODULE_TAGS := eng optional
  654. LOCAL_MODULE := jack_connect
  655. include $(BUILD_EXECUTABLE)
  656. # ========================================================
  657. # jack_disconnect
  658. # ========================================================
  659. include $(CLEAR_VARS)
  660. LOCAL_SRC_FILES := ../example-clients/connect.c
  661. LOCAL_CFLAGS := $(common_cflags)
  662. LOCAL_LDFLAGS := $(common_ldflags)
  663. LOCAL_C_INCLUDES := $(common_c_includes)
  664. LOCAL_SHARED_LIBRARIES := libjack
  665. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  666. LOCAL_MODULE_TAGS := eng optional
  667. LOCAL_MODULE := jack_disconnect
  668. include $(BUILD_EXECUTABLE)
  669. # ========================================================
  670. # jack_lsp
  671. # ========================================================
  672. include $(CLEAR_VARS)
  673. LOCAL_SRC_FILES := ../example-clients/lsp.c
  674. LOCAL_CFLAGS := $(common_cflags)
  675. LOCAL_LDFLAGS := $(common_ldflags)
  676. LOCAL_C_INCLUDES := $(common_c_includes)
  677. LOCAL_SHARED_LIBRARIES := libjack
  678. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  679. LOCAL_MODULE_TAGS := eng optional
  680. LOCAL_MODULE := jack_lsp
  681. include $(BUILD_EXECUTABLE)
  682. # ========================================================
  683. # jack_metro
  684. # ========================================================
  685. include $(CLEAR_VARS)
  686. LOCAL_SRC_FILES := ../example-clients/metro.c
  687. LOCAL_CFLAGS := $(common_cflags)
  688. LOCAL_LDFLAGS := $(common_ldflags)
  689. LOCAL_C_INCLUDES := $(common_c_includes)
  690. LOCAL_SHARED_LIBRARIES := libjack
  691. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  692. LOCAL_MODULE_TAGS := eng optional
  693. LOCAL_MODULE := jack_metro
  694. include $(BUILD_EXECUTABLE)
  695. # ========================================================
  696. # jack_midiseq
  697. # ========================================================
  698. include $(CLEAR_VARS)
  699. LOCAL_SRC_FILES := ../example-clients/midiseq.c
  700. LOCAL_CFLAGS := $(common_cflags)
  701. LOCAL_LDFLAGS := $(common_ldflags)
  702. LOCAL_C_INCLUDES := $(common_c_includes)
  703. LOCAL_SHARED_LIBRARIES := libjack
  704. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  705. LOCAL_MODULE_TAGS := eng optional
  706. LOCAL_MODULE := jack_midiseq
  707. include $(BUILD_EXECUTABLE)
  708. # ========================================================
  709. # jack_midisine
  710. # ========================================================
  711. include $(CLEAR_VARS)
  712. LOCAL_SRC_FILES := ../example-clients/midisine.c
  713. LOCAL_CFLAGS := $(common_cflags)
  714. LOCAL_LDFLAGS := $(common_ldflags)
  715. LOCAL_C_INCLUDES := $(common_c_includes)
  716. LOCAL_SHARED_LIBRARIES := libjack
  717. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  718. LOCAL_MODULE_TAGS := eng optional
  719. LOCAL_MODULE := jack_midisine
  720. include $(BUILD_EXECUTABLE)
  721. # ========================================================
  722. # jack_showtime
  723. # ========================================================
  724. include $(CLEAR_VARS)
  725. LOCAL_SRC_FILES := ../example-clients/showtime.c
  726. LOCAL_CFLAGS := $(common_cflags)
  727. LOCAL_LDFLAGS := $(common_ldflags)
  728. LOCAL_C_INCLUDES := $(common_c_includes)
  729. LOCAL_SHARED_LIBRARIES := libjack
  730. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  731. LOCAL_MODULE_TAGS := eng optional
  732. LOCAL_MODULE := jack_showtime
  733. include $(BUILD_EXECUTABLE)
  734. # ========================================================
  735. # jack_simple_client
  736. # ========================================================
  737. include $(CLEAR_VARS)
  738. LOCAL_SRC_FILES := ../example-clients/simple_client.c
  739. LOCAL_CFLAGS := $(common_cflags)
  740. LOCAL_LDFLAGS := $(common_ldflags)
  741. LOCAL_C_INCLUDES := $(common_c_includes)
  742. LOCAL_SHARED_LIBRARIES := libjack
  743. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  744. LOCAL_MODULE_TAGS := eng optional
  745. LOCAL_MODULE := jack_simple_client
  746. include $(BUILD_EXECUTABLE)
  747. # ========================================================
  748. # jack_zombie
  749. # ========================================================
  750. include $(CLEAR_VARS)
  751. LOCAL_SRC_FILES := ../example-clients/zombie.c
  752. LOCAL_CFLAGS := $(common_cflags)
  753. LOCAL_LDFLAGS := $(common_ldflags)
  754. LOCAL_C_INCLUDES := $(common_c_includes)
  755. LOCAL_SHARED_LIBRARIES := libjack
  756. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  757. LOCAL_MODULE_TAGS := eng optional
  758. LOCAL_MODULE := jack_zombie
  759. include $(BUILD_EXECUTABLE)
  760. # ========================================================
  761. # jack_load
  762. # ========================================================
  763. include $(CLEAR_VARS)
  764. LOCAL_SRC_FILES := ../example-clients/ipload.c
  765. LOCAL_CFLAGS := $(common_cflags)
  766. LOCAL_LDFLAGS := $(common_ldflags)
  767. LOCAL_C_INCLUDES := $(common_c_includes)
  768. LOCAL_SHARED_LIBRARIES := libjack
  769. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  770. LOCAL_MODULE_TAGS := eng optional
  771. LOCAL_MODULE := jack_load
  772. include $(BUILD_EXECUTABLE)
  773. # ========================================================
  774. # jack_unload
  775. # ========================================================
  776. include $(CLEAR_VARS)
  777. LOCAL_SRC_FILES := ../example-clients/ipunload.c
  778. LOCAL_CFLAGS := $(common_cflags)
  779. LOCAL_LDFLAGS := $(common_ldflags)
  780. LOCAL_C_INCLUDES := $(common_c_includes)
  781. LOCAL_SHARED_LIBRARIES := libjack
  782. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  783. LOCAL_MODULE_TAGS := eng optional
  784. LOCAL_MODULE := jack_unload
  785. include $(BUILD_EXECUTABLE)
  786. # ========================================================
  787. # jack_alias
  788. # ========================================================
  789. include $(CLEAR_VARS)
  790. LOCAL_SRC_FILES := ../example-clients/alias.c
  791. LOCAL_CFLAGS := $(common_cflags)
  792. LOCAL_LDFLAGS := $(common_ldflags)
  793. LOCAL_C_INCLUDES := $(common_c_includes)
  794. LOCAL_SHARED_LIBRARIES := libjack
  795. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  796. LOCAL_MODULE_TAGS := eng optional
  797. LOCAL_MODULE := jack_alias
  798. include $(BUILD_EXECUTABLE)
  799. # ========================================================
  800. # jack_bufsize
  801. # ========================================================
  802. include $(CLEAR_VARS)
  803. LOCAL_SRC_FILES := ../example-clients/bufsize.c
  804. LOCAL_CFLAGS := $(common_cflags)
  805. LOCAL_LDFLAGS := $(common_ldflags)
  806. LOCAL_C_INCLUDES := $(common_c_includes)
  807. LOCAL_SHARED_LIBRARIES := libjack
  808. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  809. LOCAL_MODULE_TAGS := eng optional
  810. LOCAL_MODULE := jack_bufsize
  811. include $(BUILD_EXECUTABLE)
  812. # ========================================================
  813. # jack_wait
  814. # ========================================================
  815. include $(CLEAR_VARS)
  816. LOCAL_SRC_FILES := ../example-clients/wait.c
  817. LOCAL_CFLAGS := $(common_cflags)
  818. LOCAL_LDFLAGS := $(common_ldflags)
  819. LOCAL_C_INCLUDES := $(common_c_includes)
  820. LOCAL_SHARED_LIBRARIES := libjack
  821. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  822. LOCAL_MODULE_TAGS := eng optional
  823. LOCAL_MODULE := jack_wait
  824. include $(BUILD_EXECUTABLE)
  825. # ========================================================
  826. # jack_samplerate
  827. # ========================================================
  828. include $(CLEAR_VARS)
  829. LOCAL_SRC_FILES := ../example-clients/samplerate.c
  830. LOCAL_CFLAGS := $(common_cflags)
  831. LOCAL_LDFLAGS := $(common_ldflags)
  832. LOCAL_C_INCLUDES := $(common_c_includes)
  833. LOCAL_SHARED_LIBRARIES := libjack
  834. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  835. LOCAL_MODULE_TAGS := eng optional
  836. LOCAL_MODULE := jack_samplerate
  837. include $(BUILD_EXECUTABLE)
  838. # ========================================================
  839. # jack_evmon
  840. # ========================================================
  841. include $(CLEAR_VARS)
  842. LOCAL_SRC_FILES := ../example-clients/evmon.c
  843. LOCAL_CFLAGS := $(common_cflags)
  844. LOCAL_LDFLAGS := $(common_ldflags)
  845. LOCAL_C_INCLUDES := $(common_c_includes)
  846. LOCAL_SHARED_LIBRARIES := libjack
  847. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  848. LOCAL_MODULE_TAGS := eng optional
  849. LOCAL_MODULE := jack_evmon
  850. include $(BUILD_EXECUTABLE)
  851. # ========================================================
  852. # jack_monitor_client
  853. # ========================================================
  854. include $(CLEAR_VARS)
  855. LOCAL_SRC_FILES := ../example-clients/monitor_client.c
  856. LOCAL_CFLAGS := $(common_cflags)
  857. LOCAL_LDFLAGS := $(common_ldflags)
  858. LOCAL_C_INCLUDES := $(common_c_includes)
  859. LOCAL_SHARED_LIBRARIES := libjack
  860. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  861. LOCAL_MODULE_TAGS := eng optional
  862. LOCAL_MODULE := jack_monitor_client
  863. include $(BUILD_EXECUTABLE)
  864. # ========================================================
  865. # jack_thru
  866. # ========================================================
  867. include $(CLEAR_VARS)
  868. LOCAL_SRC_FILES := ../example-clients/thru_client.c
  869. LOCAL_CFLAGS := $(common_cflags)
  870. LOCAL_LDFLAGS := $(common_ldflags)
  871. LOCAL_C_INCLUDES := $(common_c_includes)
  872. LOCAL_SHARED_LIBRARIES := libjack
  873. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  874. LOCAL_MODULE_TAGS := eng optional
  875. LOCAL_MODULE := jack_thru
  876. include $(BUILD_EXECUTABLE)
  877. # ========================================================
  878. # jack_cpu_load
  879. # ========================================================
  880. include $(CLEAR_VARS)
  881. LOCAL_SRC_FILES := ../example-clients/cpu_load.c
  882. LOCAL_CFLAGS := $(common_cflags)
  883. LOCAL_LDFLAGS := $(common_ldflags)
  884. LOCAL_C_INCLUDES := $(common_c_includes)
  885. LOCAL_SHARED_LIBRARIES := libjack
  886. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  887. LOCAL_MODULE_TAGS := eng optional
  888. LOCAL_MODULE := jack_cpu_load
  889. include $(BUILD_EXECUTABLE)
  890. # ========================================================
  891. # jack_simple_session_client
  892. # ========================================================
  893. include $(CLEAR_VARS)
  894. LOCAL_SRC_FILES := ../example-clients/simple_session_client.c
  895. LOCAL_CFLAGS := $(common_cflags)
  896. LOCAL_LDFLAGS := $(common_ldflags)
  897. LOCAL_C_INCLUDES := $(common_c_includes)
  898. LOCAL_SHARED_LIBRARIES := libjack
  899. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  900. LOCAL_MODULE_TAGS := eng optional
  901. LOCAL_MODULE := jack_simple_session_client
  902. include $(BUILD_EXECUTABLE)
  903. # ========================================================
  904. # jack_session_notify
  905. # ========================================================
  906. include $(CLEAR_VARS)
  907. LOCAL_SRC_FILES := ../example-clients/session_notify.c
  908. LOCAL_CFLAGS := $(common_cflags)
  909. LOCAL_LDFLAGS := $(common_ldflags)
  910. LOCAL_C_INCLUDES := $(common_c_includes)
  911. LOCAL_SHARED_LIBRARIES := libjack
  912. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  913. LOCAL_MODULE_TAGS := eng optional
  914. LOCAL_MODULE := jack_session_notify
  915. include $(BUILD_EXECUTABLE)
  916. # ========================================================
  917. # jack_server_control
  918. # ========================================================
  919. include $(CLEAR_VARS)
  920. LOCAL_SRC_FILES := ../example-clients/server_control.cpp
  921. LOCAL_CFLAGS := $(common_cflags)
  922. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  923. LOCAL_C_INCLUDES := $(common_c_includes)
  924. LOCAL_SHARED_LIBRARIES := libjackserver
  925. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  926. LOCAL_MODULE_TAGS := eng optional
  927. LOCAL_MODULE := jack_server_control
  928. include $(BUILD_EXECUTABLE)
  929. ## ========================================================
  930. ## jack_net_slave
  931. ## ========================================================
  932. #include $(CLEAR_VARS)
  933. #
  934. #LOCAL_SRC_FILES := ../example-clients/netslave.c
  935. #LOCAL_CFLAGS := $(common_cflags)
  936. #LOCAL_LDFLAGS := $(common_ldflags)
  937. #LOCAL_C_INCLUDES := $(common_c_includes)
  938. #LOCAL_SHARED_LIBRARIES := libjacknet
  939. #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  940. #LOCAL_MODULE_TAGS := eng optional
  941. #LOCAL_MODULE := jack_net_slave
  942. #
  943. #include $(BUILD_EXECUTABLE)
  944. ## ========================================================
  945. ## jack_net_master
  946. ## ========================================================
  947. #include $(CLEAR_VARS)
  948. #
  949. #LOCAL_SRC_FILES := ../example-clients/netmaster.c
  950. #LOCAL_CFLAGS := $(common_cflags)
  951. #LOCAL_LDFLAGS := $(common_ldflags)
  952. #LOCAL_C_INCLUDES := $(common_c_includes)
  953. #LOCAL_SHARED_LIBRARIES := libjacknet
  954. #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  955. #LOCAL_MODULE_TAGS := eng optional
  956. #LOCAL_MODULE := jack_net_master
  957. #
  958. #include $(BUILD_EXECUTABLE)
  959. # ========================================================
  960. # jack_latent_client
  961. # ========================================================
  962. include $(CLEAR_VARS)
  963. LOCAL_SRC_FILES := ../example-clients/latent_client.c
  964. LOCAL_CFLAGS := $(common_cflags)
  965. LOCAL_LDFLAGS := $(common_ldflags)
  966. LOCAL_C_INCLUDES := $(common_c_includes)
  967. LOCAL_SHARED_LIBRARIES := libjack
  968. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  969. LOCAL_MODULE_TAGS := eng optional
  970. LOCAL_MODULE := jack_latent_client
  971. include $(BUILD_EXECUTABLE)
  972. # ========================================================
  973. # jack_midi_dump
  974. # ========================================================
  975. include $(CLEAR_VARS)
  976. LOCAL_SRC_FILES := ../example-clients/midi_dump.c
  977. LOCAL_CFLAGS := $(common_cflags)
  978. LOCAL_LDFLAGS := $(common_ldflags)
  979. LOCAL_C_INCLUDES := $(common_c_includes)
  980. LOCAL_SHARED_LIBRARIES := libjack
  981. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  982. LOCAL_MODULE_TAGS := eng optional
  983. LOCAL_MODULE := jack_midi_dump
  984. include $(BUILD_EXECUTABLE)
  985. # ========================================================
  986. # jack_midi_latency_test
  987. # ========================================================
  988. include $(CLEAR_VARS)
  989. LOCAL_SRC_FILES := ../example-clients/midi_latency_test.c
  990. LOCAL_CFLAGS := $(common_cflags)
  991. LOCAL_LDFLAGS := $(common_ldflags)
  992. LOCAL_C_INCLUDES := $(common_c_includes)
  993. LOCAL_SHARED_LIBRARIES := libjack
  994. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  995. LOCAL_MODULE_TAGS := eng optional
  996. LOCAL_MODULE := jack_midi_latency_test
  997. include $(BUILD_EXECUTABLE)
  998. # ========================================================
  999. # jack_transport
  1000. # ========================================================
  1001. include $(CLEAR_VARS)
  1002. LOCAL_SRC_FILES := ../example-clients/transport.c
  1003. LOCAL_CFLAGS := $(common_cflags)
  1004. LOCAL_LDFLAGS := $(common_ldflags)
  1005. LOCAL_C_INCLUDES := $(common_c_includes)
  1006. LOCAL_SHARED_LIBRARIES := libjack
  1007. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1008. LOCAL_MODULE_TAGS := eng optional
  1009. LOCAL_MODULE := jack_transport
  1010. include $(BUILD_EXECUTABLE)
  1011. ## ========================================================
  1012. ## jack_rec
  1013. ## ========================================================
  1014. #include $(CLEAR_VARS)
  1015. #
  1016. #LOCAL_SRC_FILES := ../example-clients/capture_client.c
  1017. #LOCAL_CFLAGS := $(common_cflags)
  1018. #LOCAL_LDFLAGS := $(common_ldflags)
  1019. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsndfile/src
  1020. #LOCAL_SHARED_LIBRARIES := libjack libsndfile
  1021. #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1022. #LOCAL_MODULE_TAGS := eng optional
  1023. #LOCAL_MODULE := jack_rec
  1024. #
  1025. #include $(BUILD_EXECUTABLE)
  1026. ## ========================================================
  1027. ## jack_netsource
  1028. ## ========================================================
  1029. #include $(CLEAR_VARS)
  1030. #
  1031. #LOCAL_SRC_FILES := ../example-clients/netsource.c ../common/netjack_packet.c
  1032. #LOCAL_CFLAGS := $(common_cflags) -DNO_JACK_ERROR
  1033. #LOCAL_LDFLAGS := $(common_ldflags)
  1034. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include
  1035. #LOCAL_SHARED_LIBRARIES := libsamplerate libjack
  1036. #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1037. #LOCAL_MODULE_TAGS := eng optional
  1038. #LOCAL_MODULE := jack_netsource
  1039. #
  1040. #include $(BUILD_EXECUTABLE)
  1041. ## ========================================================
  1042. ## alsa_in
  1043. ## ========================================================
  1044. #ifeq ($(SUPPORT_ALSA_IN_JACK),true)
  1045. #include $(CLEAR_VARS)
  1046. #
  1047. #LOCAL_SRC_FILES := ../example-clients/alsa_in.c ../common/memops.c
  1048. #LOCAL_CFLAGS := $(common_cflags) -DNO_JACK_ERROR -D_POSIX_SOURCE -D_XOPEN_SOURCE=600
  1049. #LOCAL_LDFLAGS := $(common_ldflags)
  1050. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include $(ALSA_INCLUDES)
  1051. #LOCAL_SHARED_LIBRARIES := libasound libsamplerate libjack
  1052. #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1053. #LOCAL_MODULE_TAGS := eng optional
  1054. #LOCAL_MODULE := alsa_in
  1055. #
  1056. #include $(BUILD_EXECUTABLE)
  1057. #endif
  1058. ## ========================================================
  1059. ## alsa_out
  1060. ## ========================================================
  1061. #ifeq ($(SUPPORT_ALSA_IN_JACK),true)
  1062. #include $(CLEAR_VARS)
  1063. #
  1064. #LOCAL_SRC_FILES := ../example-clients/alsa_out.c ../common/memops.c
  1065. #LOCAL_CFLAGS := $(common_cflags) -DNO_JACK_ERROR -D_POSIX_SOURCE -D_XOPEN_SOURCE=600
  1066. #LOCAL_LDFLAGS := $(common_ldflags)
  1067. #LOCAL_C_INCLUDES := $(common_c_includes) $(JACK_ROOT)/../libsamplerate/include $(ALSA_INCLUDES)
  1068. #LOCAL_SHARED_LIBRARIES := libasound libsamplerate libjack
  1069. #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1070. #LOCAL_MODULE_TAGS := eng optional
  1071. #LOCAL_MODULE := alsa_out
  1072. #
  1073. #include $(BUILD_EXECUTABLE)
  1074. #endif
  1075. # ========================================================
  1076. # inprocess
  1077. # ========================================================
  1078. include $(CLEAR_VARS)
  1079. LOCAL_SRC_FILES := ../example-clients/inprocess.c
  1080. LOCAL_CFLAGS := $(common_cflags) -DSERVER_SIDE
  1081. LOCAL_LDFLAGS := $(common_ldflags)
  1082. LOCAL_C_INCLUDES := $(common_c_includes)
  1083. LOCAL_SHARED_LIBRARIES := libc libdl libcutils libjackserver
  1084. LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/jack
  1085. LOCAL_MODULE_TAGS := eng optional
  1086. LOCAL_MODULE := inprocess
  1087. include $(BUILD_SHARED_LIBRARY)
  1088. ##########################################################
  1089. # tests
  1090. ##########################################################
  1091. # ========================================================
  1092. # jack_test
  1093. # ========================================================
  1094. include $(CLEAR_VARS)
  1095. LOCAL_SRC_FILES := ../tests/test.cpp
  1096. LOCAL_CFLAGS := $(common_cflags)
  1097. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  1098. LOCAL_C_INCLUDES := $(common_c_includes)
  1099. LOCAL_SHARED_LIBRARIES := libjack libjackshm
  1100. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1101. LOCAL_MODULE_TAGS := eng optional
  1102. LOCAL_MODULE := jack_test
  1103. include $(BUILD_EXECUTABLE)
  1104. # ========================================================
  1105. # jack_cpu
  1106. # ========================================================
  1107. include $(CLEAR_VARS)
  1108. LOCAL_SRC_FILES := ../tests/cpu.c
  1109. LOCAL_CFLAGS := $(common_cflags)
  1110. LOCAL_LDFLAGS := $(common_ldflags)
  1111. LOCAL_C_INCLUDES := $(common_c_includes)
  1112. LOCAL_SHARED_LIBRARIES := libjack libjackshm
  1113. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1114. LOCAL_MODULE_TAGS := eng optional
  1115. LOCAL_MODULE := jack_cpu
  1116. include $(BUILD_EXECUTABLE)
  1117. # ========================================================
  1118. # jack_iodelay
  1119. # ========================================================
  1120. include $(CLEAR_VARS)
  1121. LOCAL_SRC_FILES := ../tests/iodelay.cpp
  1122. LOCAL_CFLAGS := $(common_cflags)
  1123. LOCAL_CFLAGS += -Wno-narrowing
  1124. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  1125. LOCAL_C_INCLUDES := $(common_c_includes)
  1126. LOCAL_SHARED_LIBRARIES := libjack libjackshm
  1127. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1128. LOCAL_MODULE_TAGS := eng optional
  1129. LOCAL_MODULE := jack_iodelay
  1130. include $(BUILD_EXECUTABLE)
  1131. # ========================================================
  1132. # jack_multiple_metro
  1133. # ========================================================
  1134. include $(CLEAR_VARS)
  1135. LOCAL_SRC_FILES := ../tests/external_metro.cpp
  1136. LOCAL_CFLAGS := $(common_cflags)
  1137. LOCAL_LDFLAGS := $(common_ldflags) $(JACK_STL_LDFLAGS)
  1138. LOCAL_C_INCLUDES := $(common_c_includes)
  1139. LOCAL_SHARED_LIBRARIES := libjack libjackshm
  1140. LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
  1141. LOCAL_MODULE_TAGS := eng optional
  1142. LOCAL_MODULE := jack_multiple_metro
  1143. include $(BUILD_EXECUTABLE)