blob: 44d2553b3f1085b4abaa430aab84506b679fca51 [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 := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -07006 ISchedulingPolicyService.cpp \
7 SchedulingPolicyService.cpp
8
9# FIXME Move this library to frameworks/native
10LOCAL_MODULE := libscheduling_policy
11
12include $(BUILD_STATIC_LIBRARY)
13
14include $(CLEAR_VARS)
15
Eric Laurentc7e50402014-03-06 14:35:55 -080016LOCAL_SRC_FILES := \
17 ServiceUtilities.cpp
18
19# FIXME Move this library to frameworks/native
20LOCAL_MODULE := libserviceutility
21
Chong Zhang5db78972015-01-07 10:42:33 -080022LOCAL_SHARED_LIBRARIES := \
23 libcutils \
24 libutils \
25 liblog \
26 libbinder
27
28include $(BUILD_SHARED_LIBRARY)
Eric Laurentc7e50402014-03-06 14:35:55 -080029
30include $(CLEAR_VARS)
31
Chih-Hung Hsieh42e5a1e2014-11-14 09:57:36 -080032# Clang++ aborts on AudioMixer.cpp,
33# b/18373866, "do not know how to split this operator."
34ifeq ($(filter $(TARGET_ARCH),arm arm64),$(TARGET_ARCH))
35 LOCAL_CLANG := false
36endif
37
Mathias Agopian65ab4712010-07-14 17:59:35 -070038LOCAL_SRC_FILES:= \
39 AudioFlinger.cpp \
Eric Laurent81784c32012-11-19 14:55:58 -080040 Threads.cpp \
41 Tracks.cpp \
42 Effects.cpp \
Mathias Agopian65ab4712010-07-14 17:59:35 -070043 AudioMixer.cpp.arm \
Eric Laurent1c333e22014-05-20 10:48:17 -070044 PatchPanel.cpp
Glenn Kastenac602052012-10-01 14:04:31 -070045
Glenn Kastendc998c82012-03-23 18:53:59 -070046LOCAL_SRC_FILES += StateQueue.cpp
47
Eric Laurent6d8b6942011-06-24 07:01:31 -070048LOCAL_C_INCLUDES := \
Eric Laurentc7e50402014-03-06 14:35:55 -080049 $(TOPDIR)frameworks/av/services/audiopolicy \
Glenn Kasten33b38392012-03-13 15:59:35 -070050 $(call include-path-for, audio-effects) \
51 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070052
Mathias Agopian65ab4712010-07-14 17:59:35 -070053LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -070054 libaudioresampler \
Glenn Kasten3b21c502011-12-15 09:52:39 -080055 libaudioutils \
John Grossman4ff14ba2012-02-08 16:37:41 -080056 libcommon_time_client \
Mathias Agopian65ab4712010-07-14 17:59:35 -070057 libcutils \
58 libutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070059 liblog \
Mathias Agopian65ab4712010-07-14 17:59:35 -070060 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070061 libmedia \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070062 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070063 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070064 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070065 libeffects \
Chong Zhang5db78972015-01-07 10:42:33 -080066 libpowermanager \
67 libserviceutility
Mathias Agopian65ab4712010-07-14 17:59:35 -070068
Dima Zavinfce7a472011-04-19 22:30:36 -070069LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070070 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070071 libcpustats \
Chong Zhang5db78972015-01-07 10:42:33 -080072 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070073
Mathias Agopian65ab4712010-07-14 17:59:35 -070074LOCAL_MODULE:= libaudioflinger
Glenn Kastenaf783aa2014-03-02 19:48:19 -080075LOCAL_32_BIT_ONLY := true
Mathias Agopian65ab4712010-07-14 17:59:35 -070076
Glenn Kasten22340022014-04-07 12:04:41 -070077LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp AudioWatchdog.cpp
78LOCAL_SRC_FILES += FastThread.cpp FastThreadState.cpp
Glenn Kastenf91df1b2014-03-13 14:59:31 -070079LOCAL_SRC_FILES += FastCapture.cpp FastCaptureState.cpp
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070080
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070081LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
82
Mathias Agopiane762be92013-05-09 16:26:45 -070083LOCAL_CFLAGS += -fvisibility=hidden
84
Mathias Agopian65ab4712010-07-14 17:59:35 -070085include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090086
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070087#
88# build audio resampler test tool
89#
90include $(CLEAR_VARS)
91
92LOCAL_SRC_FILES:= \
Andy Hung86eae0e2013-12-09 12:12:46 -080093 test-resample.cpp \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070094
Glenn Kastenf5293642013-12-17 14:49:17 -080095LOCAL_C_INCLUDES := \
96 $(call include-path-for, audio-utils)
97
98LOCAL_STATIC_LIBRARIES := \
99 libsndfile
100
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700101LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -0700102 libaudioresampler \
Glenn Kastenf5293642013-12-17 14:49:17 -0800103 libaudioutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700104 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700105 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700106 libutils \
107 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700108
109LOCAL_MODULE:= test-resample
110
111LOCAL_MODULE_TAGS := optional
112
113include $(BUILD_EXECUTABLE)
114
Glenn Kastenddf887c2014-03-19 09:05:08 -0700115include $(CLEAR_VARS)
116
117LOCAL_SRC_FILES:= \
118 AudioResampler.cpp.arm \
119 AudioResamplerCubic.cpp.arm \
Glenn Kasten46d1b4a2014-03-19 13:21:51 -0700120 AudioResamplerSinc.cpp.arm \
121 AudioResamplerDyn.cpp.arm
Glenn Kastenddf887c2014-03-19 09:05:08 -0700122
Andy Hung5e58b0a2014-06-23 19:07:29 -0700123LOCAL_C_INCLUDES := \
124 $(call include-path-for, audio-utils)
125
Glenn Kastenddf887c2014-03-19 09:05:08 -0700126LOCAL_SHARED_LIBRARIES := \
127 libcutils \
128 libdl \
129 liblog
130
131LOCAL_MODULE := libaudioresampler
132
133include $(BUILD_SHARED_LIBRARY)
134
ty.leec8823992012-10-01 13:54:14 +0900135include $(call all-makefiles-under,$(LOCAL_PATH))