blob: 05dacacc71506ab6b239919ce4204fc53e2fdd0e [file] [log] [blame]
Mathias Agopian65ab4712010-07-14 17:59:35 -07001LOCAL_PATH:= $(call my-dir)
2
Mathias Agopian65ab4712010-07-14 17:59:35 -07003include $(CLEAR_VARS)
4
Glenn Kasten01066232012-02-27 11:50:44 -08005LOCAL_SRC_FILES := \
Eric Laurent17a58b22016-08-17 13:53:12 +02006 ServiceUtilities.cpp \
7 LockWatch.cpp
Eric Laurentc7e50402014-03-06 14:35:55 -08008
9# FIXME Move this library to frameworks/native
10LOCAL_MODULE := libserviceutility
11
Chong Zhang5db78972015-01-07 10:42:33 -080012LOCAL_SHARED_LIBRARIES := \
13 libcutils \
14 libutils \
15 liblog \
16 libbinder
17
Glenn Kastenfcddb0b2016-07-08 17:19:25 -070018LOCAL_CFLAGS := -Wall -Werror
19
Chong Zhang5db78972015-01-07 10:42:33 -080020include $(BUILD_SHARED_LIBRARY)
Eric Laurentc7e50402014-03-06 14:35:55 -080021
22include $(CLEAR_VARS)
23
Mathias Agopian65ab4712010-07-14 17:59:35 -070024LOCAL_SRC_FILES:= \
25 AudioFlinger.cpp \
Eric Laurent81784c32012-11-19 14:55:58 -080026 Threads.cpp \
27 Tracks.cpp \
Phil Burk062e67a2015-02-11 13:40:50 -080028 AudioHwDevice.cpp \
29 AudioStreamOut.cpp \
30 SpdifStreamOut.cpp \
Eric Laurent81784c32012-11-19 14:55:58 -080031 Effects.cpp \
Mathias Agopian65ab4712010-07-14 17:59:35 -070032 AudioMixer.cpp.arm \
Andy Hung857d5a22015-03-26 18:46:00 -070033 BufferProviders.cpp \
34 PatchPanel.cpp \
35 StateQueue.cpp
Glenn Kastendc998c82012-03-23 18:53:59 -070036
Eric Laurent6d8b6942011-06-24 07:01:31 -070037LOCAL_C_INCLUDES := \
Eric Laurentc7e50402014-03-06 14:35:55 -080038 $(TOPDIR)frameworks/av/services/audiopolicy \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070039 $(TOPDIR)external/sonic \
Andy Hung35fec5f2016-04-13 14:21:48 -070040 libcore/include \
Glenn Kasten33b38392012-03-13 15:59:35 -070041 $(call include-path-for, audio-effects) \
42 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070043
Mathias Agopian65ab4712010-07-14 17:59:35 -070044LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -070045 libaudioresampler \
Phil Burk062e67a2015-02-11 13:40:50 -080046 libaudiospdif \
Glenn Kasten3b21c502011-12-15 09:52:39 -080047 libaudioutils \
Mathias Agopian65ab4712010-07-14 17:59:35 -070048 libcutils \
49 libutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070050 liblog \
Mathias Agopian65ab4712010-07-14 17:59:35 -070051 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070052 libmedia \
Wei Jia3f273d12015-11-24 09:06:49 -080053 libmediautils \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070054 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070055 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070056 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070057 libeffects \
Chong Zhang5db78972015-01-07 10:42:33 -080058 libpowermanager \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070059 libserviceutility \
Eino-Ville Talvalaf99498e2015-09-25 16:52:55 -070060 libsonic \
Andy Hung35fec5f2016-04-13 14:21:48 -070061 libmediautils \
62 libmemunreachable
Mathias Agopian65ab4712010-07-14 17:59:35 -070063
Dima Zavinfce7a472011-04-19 22:30:36 -070064LOCAL_STATIC_LIBRARIES := \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070065 libcpustats \
Chong Zhang5db78972015-01-07 10:42:33 -080066 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070067
Andy Hung8fa26972016-03-03 13:19:27 -080068LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
69
Mathias Agopian65ab4712010-07-14 17:59:35 -070070LOCAL_MODULE:= libaudioflinger
71
Glenn Kasten045ee7e2015-02-17 16:22:04 -080072LOCAL_SRC_FILES += \
73 AudioWatchdog.cpp \
74 FastCapture.cpp \
Glenn Kasten04333cd2015-02-17 16:23:03 -080075 FastCaptureDumpState.cpp \
Glenn Kasten045ee7e2015-02-17 16:22:04 -080076 FastCaptureState.cpp \
77 FastMixer.cpp \
Glenn Kasten04333cd2015-02-17 16:23:03 -080078 FastMixerDumpState.cpp \
Glenn Kasten045ee7e2015-02-17 16:22:04 -080079 FastMixerState.cpp \
80 FastThread.cpp \
81 FastThreadDumpState.cpp \
82 FastThreadState.cpp
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070083
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070084LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
85
Mathias Agopiane762be92013-05-09 16:26:45 -070086LOCAL_CFLAGS += -fvisibility=hidden
87
Glenn Kastene875c802016-03-18 14:52:27 -070088LOCAL_CFLAGS += -Werror -Wall
89
Mathias Agopian65ab4712010-07-14 17:59:35 -070090include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090091
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070092#
93# build audio resampler test tool
94#
95include $(CLEAR_VARS)
96
97LOCAL_SRC_FILES:= \
Andy Hung86eae0e2013-12-09 12:12:46 -080098 test-resample.cpp \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070099
Glenn Kastenf5293642013-12-17 14:49:17 -0800100LOCAL_C_INCLUDES := \
101 $(call include-path-for, audio-utils)
102
103LOCAL_STATIC_LIBRARIES := \
104 libsndfile
105
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700106LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -0700107 libaudioresampler \
Glenn Kastenf5293642013-12-17 14:49:17 -0800108 libaudioutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700109 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700110 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700111 libutils \
112 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700113
114LOCAL_MODULE:= test-resample
115
116LOCAL_MODULE_TAGS := optional
117
Glenn Kastene875c802016-03-18 14:52:27 -0700118LOCAL_CFLAGS := -Werror -Wall
119
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700120include $(BUILD_EXECUTABLE)
121
Glenn Kastenddf887c2014-03-19 09:05:08 -0700122include $(CLEAR_VARS)
123
124LOCAL_SRC_FILES:= \
125 AudioResampler.cpp.arm \
126 AudioResamplerCubic.cpp.arm \
Glenn Kasten46d1b4a2014-03-19 13:21:51 -0700127 AudioResamplerSinc.cpp.arm \
128 AudioResamplerDyn.cpp.arm
Glenn Kastenddf887c2014-03-19 09:05:08 -0700129
Andy Hung5e58b0a2014-06-23 19:07:29 -0700130LOCAL_C_INCLUDES := \
131 $(call include-path-for, audio-utils)
132
Glenn Kastenddf887c2014-03-19 09:05:08 -0700133LOCAL_SHARED_LIBRARIES := \
134 libcutils \
135 libdl \
136 liblog
137
138LOCAL_MODULE := libaudioresampler
139
Glenn Kastene875c802016-03-18 14:52:27 -0700140LOCAL_CFLAGS := -Werror -Wall
141
Glenn Kasten4699a6a2016-02-16 10:49:09 -0800142# uncomment to disable NEON on architectures that actually do support NEON, for benchmarking
143#LOCAL_CFLAGS += -DUSE_NEON=false
144
Glenn Kastenddf887c2014-03-19 09:05:08 -0700145include $(BUILD_SHARED_LIBRARY)
146
ty.leec8823992012-10-01 13:54:14 +0900147include $(call all-makefiles-under,$(LOCAL_PATH))