blob: de7e3c3359fbebcc48cd3779ee23d386fd00b1b1 [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 \
32 AudioResampler.cpp.arm \
Ying Wangda0dc0a2013-04-09 21:53:49 -070033 AudioResamplerCubic.cpp.arm \
Andy Hung86eae0e2013-12-09 12:12:46 -080034 AudioResamplerSinc.cpp.arm \
35 AudioResamplerDyn.cpp.arm
Glenn Kastenac602052012-10-01 14:04:31 -070036
Glenn Kastendc998c82012-03-23 18:53:59 -070037LOCAL_SRC_FILES += StateQueue.cpp
38
Eric Laurent6d8b6942011-06-24 07:01:31 -070039LOCAL_C_INCLUDES := \
Eric Laurentc7e50402014-03-06 14:35:55 -080040 $(TOPDIR)frameworks/av/services/audiopolicy \
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 Kasten3b21c502011-12-15 09:52:39 -080045 libaudioutils \
John Grossman4ff14ba2012-02-08 16:37:41 -080046 libcommon_time_client \
Mathias Agopian65ab4712010-07-14 17:59:35 -070047 libcutils \
48 libutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070049 liblog \
Mathias Agopian65ab4712010-07-14 17:59:35 -070050 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070051 libmedia \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070052 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070053 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070054 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070055 libeffects \
Eric Laurentfeb0db62011-07-22 09:04:31 -070056 libdl \
57 libpowermanager
Mathias Agopian65ab4712010-07-14 17:59:35 -070058
Dima Zavinfce7a472011-04-19 22:30:36 -070059LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070060 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070061 libcpustats \
Eric Laurentc7e50402014-03-06 14:35:55 -080062 libmedia_helper \
63 libserviceutility
Mathias Agopian65ab4712010-07-14 17:59:35 -070064
Mathias Agopian65ab4712010-07-14 17:59:35 -070065LOCAL_MODULE:= libaudioflinger
Glenn Kastenaf783aa2014-03-02 19:48:19 -080066LOCAL_32_BIT_ONLY := true
Mathias Agopian65ab4712010-07-14 17:59:35 -070067
Glenn Kasten153b9fe2013-07-15 11:23:36 -070068LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp AudioWatchdog.cpp
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070069
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070070LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
71
Alex Rayb3a83642012-11-30 19:42:28 -080072# Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
73ifeq ($(TARGET_CPU_SMP),true)
74 LOCAL_CFLAGS += -DANDROID_SMP=1
75else
76 LOCAL_CFLAGS += -DANDROID_SMP=0
77endif
78
Mathias Agopiane762be92013-05-09 16:26:45 -070079LOCAL_CFLAGS += -fvisibility=hidden
80
Mathias Agopian65ab4712010-07-14 17:59:35 -070081include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090082
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070083#
84# build audio resampler test tool
85#
86include $(CLEAR_VARS)
87
88LOCAL_SRC_FILES:= \
Andy Hung86eae0e2013-12-09 12:12:46 -080089 test-resample.cpp \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070090 AudioResampler.cpp.arm \
Andy Hung86eae0e2013-12-09 12:12:46 -080091 AudioResamplerCubic.cpp.arm \
92 AudioResamplerSinc.cpp.arm \
93 AudioResamplerDyn.cpp.arm
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 Kastenf5293642013-12-17 14:49:17 -0800102 libaudioutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700103 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700104 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700105 libutils \
106 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700107
108LOCAL_MODULE:= test-resample
109
110LOCAL_MODULE_TAGS := optional
111
112include $(BUILD_EXECUTABLE)
113
ty.leec8823992012-10-01 13:54:14 +0900114include $(call all-makefiles-under,$(LOCAL_PATH))