blob: 697fb37020ae0f53cf152fea192c7c73a6bb1077 [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
22include $(BUILD_STATIC_LIBRARY)
23
24include $(CLEAR_VARS)
25
Mathias Agopian65ab4712010-07-14 17:59:35 -070026LOCAL_SRC_FILES:= \
27 AudioFlinger.cpp \
Eric Laurent81784c32012-11-19 14:55:58 -080028 Threads.cpp \
29 Tracks.cpp \
30 Effects.cpp \
Mathias Agopian65ab4712010-07-14 17:59:35 -070031 AudioMixer.cpp.arm \
Eric Laurent1c333e22014-05-20 10:48:17 -070032 PatchPanel.cpp
Glenn Kastenac602052012-10-01 14:04:31 -070033
Glenn Kastendc998c82012-03-23 18:53:59 -070034LOCAL_SRC_FILES += StateQueue.cpp
35
Eric Laurent6d8b6942011-06-24 07:01:31 -070036LOCAL_C_INCLUDES := \
Eric Laurentc7e50402014-03-06 14:35:55 -080037 $(TOPDIR)frameworks/av/services/audiopolicy \
Glenn Kasten33b38392012-03-13 15:59:35 -070038 $(call include-path-for, audio-effects) \
39 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070040
Mathias Agopian65ab4712010-07-14 17:59:35 -070041LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -070042 libaudioresampler \
Glenn Kasten3b21c502011-12-15 09:52:39 -080043 libaudioutils \
John Grossman4ff14ba2012-02-08 16:37:41 -080044 libcommon_time_client \
Mathias Agopian65ab4712010-07-14 17:59:35 -070045 libcutils \
46 libutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070047 liblog \
Mathias Agopian65ab4712010-07-14 17:59:35 -070048 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070049 libmedia \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070050 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070051 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070052 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070053 libeffects \
Eric Laurentfeb0db62011-07-22 09:04:31 -070054 libpowermanager
Mathias Agopian65ab4712010-07-14 17:59:35 -070055
Dima Zavinfce7a472011-04-19 22:30:36 -070056LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070057 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070058 libcpustats \
Eric Laurentc7e50402014-03-06 14:35:55 -080059 libmedia_helper \
60 libserviceutility
Mathias Agopian65ab4712010-07-14 17:59:35 -070061
Mathias Agopian65ab4712010-07-14 17:59:35 -070062LOCAL_MODULE:= libaudioflinger
Glenn Kastenaf783aa2014-03-02 19:48:19 -080063LOCAL_32_BIT_ONLY := true
Mathias Agopian65ab4712010-07-14 17:59:35 -070064
Glenn Kasten22340022014-04-07 12:04:41 -070065LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp AudioWatchdog.cpp
66LOCAL_SRC_FILES += FastThread.cpp FastThreadState.cpp
Glenn Kastenf91df1b2014-03-13 14:59:31 -070067LOCAL_SRC_FILES += FastCapture.cpp FastCaptureState.cpp
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070068
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070069LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
70
Alex Rayb3a83642012-11-30 19:42:28 -080071# Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
72ifeq ($(TARGET_CPU_SMP),true)
73 LOCAL_CFLAGS += -DANDROID_SMP=1
74else
75 LOCAL_CFLAGS += -DANDROID_SMP=0
76endif
77
Mathias Agopiane762be92013-05-09 16:26:45 -070078LOCAL_CFLAGS += -fvisibility=hidden
79
Mathias Agopian65ab4712010-07-14 17:59:35 -070080include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090081
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070082#
83# build audio resampler test tool
84#
85include $(CLEAR_VARS)
86
87LOCAL_SRC_FILES:= \
Andy Hung86eae0e2013-12-09 12:12:46 -080088 test-resample.cpp \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070089
Glenn Kastenf5293642013-12-17 14:49:17 -080090LOCAL_C_INCLUDES := \
91 $(call include-path-for, audio-utils)
92
93LOCAL_STATIC_LIBRARIES := \
94 libsndfile
95
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070096LOCAL_SHARED_LIBRARIES := \
Glenn Kastenddf887c2014-03-19 09:05:08 -070097 libaudioresampler \
Glenn Kastenf5293642013-12-17 14:49:17 -080098 libaudioutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070099 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700100 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700101 libutils \
102 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700103
104LOCAL_MODULE:= test-resample
105
106LOCAL_MODULE_TAGS := optional
107
108include $(BUILD_EXECUTABLE)
109
Glenn Kastenddf887c2014-03-19 09:05:08 -0700110include $(CLEAR_VARS)
111
112LOCAL_SRC_FILES:= \
113 AudioResampler.cpp.arm \
114 AudioResamplerCubic.cpp.arm \
Glenn Kasten46d1b4a2014-03-19 13:21:51 -0700115 AudioResamplerSinc.cpp.arm \
116 AudioResamplerDyn.cpp.arm
Glenn Kastenddf887c2014-03-19 09:05:08 -0700117
Andy Hung5e58b0a2014-06-23 19:07:29 -0700118LOCAL_C_INCLUDES := \
119 $(call include-path-for, audio-utils)
120
Glenn Kastenddf887c2014-03-19 09:05:08 -0700121LOCAL_SHARED_LIBRARIES := \
122 libcutils \
123 libdl \
124 liblog
125
126LOCAL_MODULE := libaudioresampler
127
128include $(BUILD_SHARED_LIBRARY)
129
ty.leec8823992012-10-01 13:54:14 +0900130include $(call all-makefiles-under,$(LOCAL_PATH))