blob: e2a93add3afd49877cc0198e13a7129ebc71e043 [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 := \
Andy Hungdeb03352016-08-29 14:40:14 -07006 ServiceUtilities.cpp
Eric Laurentc7e50402014-03-06 14:35:55 -08007
8# FIXME Move this library to frameworks/native
9LOCAL_MODULE := libserviceutility
10
Chong Zhang5db78972015-01-07 10:42:33 -080011LOCAL_SHARED_LIBRARIES := \
12 libcutils \
13 libutils \
14 liblog \
15 libbinder
16
Glenn Kastenfcddb0b2016-07-08 17:19:25 -070017LOCAL_CFLAGS := -Wall -Werror
18
Chong Zhang5db78972015-01-07 10:42:33 -080019include $(BUILD_SHARED_LIBRARY)
Eric Laurentc7e50402014-03-06 14:35:55 -080020
21include $(CLEAR_VARS)
22
Mathias Agopian65ab4712010-07-14 17:59:35 -070023LOCAL_SRC_FILES:= \
24 AudioFlinger.cpp \
Eric Laurent81784c32012-11-19 14:55:58 -080025 Threads.cpp \
26 Tracks.cpp \
Phil Burk062e67a2015-02-11 13:40:50 -080027 AudioHwDevice.cpp \
28 AudioStreamOut.cpp \
29 SpdifStreamOut.cpp \
Eric Laurent81784c32012-11-19 14:55:58 -080030 Effects.cpp \
Mathias Agopian65ab4712010-07-14 17:59:35 -070031 AudioMixer.cpp.arm \
Andy Hung857d5a22015-03-26 18:46:00 -070032 BufferProviders.cpp \
33 PatchPanel.cpp \
rago3bd1c872016-09-26 12:58:14 -070034 StateQueue.cpp \
35 BufLog.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 \
Marco Nelissen8ad94762016-11-02 09:59:52 -070039 $(TOPDIR)frameworks/av/services/medialog \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070040 $(TOPDIR)external/sonic \
Glenn Kasten33b38392012-03-13 15:59:35 -070041 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070042
Mathias Agopian65ab4712010-07-14 17:59:35 -070043LOCAL_SHARED_LIBRARIES := \
Mikhail Naganova0c91332016-09-19 10:01:12 -070044 libaudiohal \
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 \
Marco Nelissen538ec5e2016-11-02 13:21:22 -070052 libaudioclient \
Marco Nelissen8ad94762016-11-02 09:59:52 -070053 libmedialogservice \
Wei Jia3f273d12015-11-24 09:06:49 -080054 libmediautils \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070055 libnbaio \
Chong Zhang5db78972015-01-07 10:42:33 -080056 libpowermanager \
Ricardo Garciaf097cae2015-04-13 12:17:21 -070057 libserviceutility \
Eino-Ville Talvalaf99498e2015-09-25 16:52:55 -070058 libsonic \
Andy Hung35fec5f2016-04-13 14:21:48 -070059 libmediautils \
60 libmemunreachable
Mathias Agopian65ab4712010-07-14 17:59:35 -070061
Dima Zavinfce7a472011-04-19 22:30:36 -070062LOCAL_STATIC_LIBRARIES := \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070063 libcpustats \
Chong Zhang5db78972015-01-07 10:42:33 -080064 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070065
Andy Hung8fa26972016-03-03 13:19:27 -080066LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
67
Mathias Agopian65ab4712010-07-14 17:59:35 -070068LOCAL_MODULE:= libaudioflinger
69
Glenn Kasten045ee7e2015-02-17 16:22:04 -080070LOCAL_SRC_FILES += \
71 AudioWatchdog.cpp \
72 FastCapture.cpp \
Glenn Kasten04333cd2015-02-17 16:23:03 -080073 FastCaptureDumpState.cpp \
Glenn Kasten045ee7e2015-02-17 16:22:04 -080074 FastCaptureState.cpp \
75 FastMixer.cpp \
Glenn Kasten04333cd2015-02-17 16:23:03 -080076 FastMixerDumpState.cpp \
Glenn Kasten045ee7e2015-02-17 16:22:04 -080077 FastMixerState.cpp \
78 FastThread.cpp \
79 FastThreadDumpState.cpp \
80 FastThreadState.cpp
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070081
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070082LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
83
Mathias Agopiane762be92013-05-09 16:26:45 -070084LOCAL_CFLAGS += -fvisibility=hidden
85
Glenn Kastene875c802016-03-18 14:52:27 -070086LOCAL_CFLAGS += -Werror -Wall
87
Mathias Agopian65ab4712010-07-14 17:59:35 -070088include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090089
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070090#
91# build audio resampler test tool
92#
93include $(CLEAR_VARS)
94
95LOCAL_SRC_FILES:= \
Andy Hung86eae0e2013-12-09 12:12:46 -080096 test-resample.cpp \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070097
Glenn Kastenf5293642013-12-17 14:49:17 -080098LOCAL_C_INCLUDES := \
99 $(call include-path-for, audio-utils)
100
101LOCAL_STATIC_LIBRARIES := \
102 libsndfile
103
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700104LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -0700105 libaudioresampler \
Glenn Kastenf5293642013-12-17 14:49:17 -0800106 libaudioutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700107 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700108 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700109 libutils \
110 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700111
112LOCAL_MODULE:= test-resample
113
114LOCAL_MODULE_TAGS := optional
115
Glenn Kastene875c802016-03-18 14:52:27 -0700116LOCAL_CFLAGS := -Werror -Wall
117
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700118include $(BUILD_EXECUTABLE)
119
Glenn Kastenddf887c2014-03-19 09:05:08 -0700120include $(CLEAR_VARS)
121
122LOCAL_SRC_FILES:= \
123 AudioResampler.cpp.arm \
124 AudioResamplerCubic.cpp.arm \
Glenn Kasten46d1b4a2014-03-19 13:21:51 -0700125 AudioResamplerSinc.cpp.arm \
126 AudioResamplerDyn.cpp.arm
Glenn Kastenddf887c2014-03-19 09:05:08 -0700127
Andy Hung5e58b0a2014-06-23 19:07:29 -0700128LOCAL_C_INCLUDES := \
129 $(call include-path-for, audio-utils)
130
Glenn Kastenddf887c2014-03-19 09:05:08 -0700131LOCAL_SHARED_LIBRARIES := \
132 libcutils \
133 libdl \
134 liblog
135
136LOCAL_MODULE := libaudioresampler
137
Glenn Kastene875c802016-03-18 14:52:27 -0700138LOCAL_CFLAGS := -Werror -Wall
139
Glenn Kasten4699a6a2016-02-16 10:49:09 -0800140# uncomment to disable NEON on architectures that actually do support NEON, for benchmarking
141#LOCAL_CFLAGS += -DUSE_NEON=false
142
Glenn Kastenddf887c2014-03-19 09:05:08 -0700143include $(BUILD_SHARED_LIBRARY)
144
ty.leec8823992012-10-01 13:54:14 +0900145include $(call all-makefiles-under,$(LOCAL_PATH))