blob: 58c4be4b17f7730aa7d094ad793a348b71705870 [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
Mathias Agopian65ab4712010-07-14 17:59:35 -070016LOCAL_SRC_FILES:= \
17 AudioFlinger.cpp \
18 AudioMixer.cpp.arm \
19 AudioResampler.cpp.arm \
Glenn Kasten44deb052012-02-05 18:09:08 -080020 AudioPolicyService.cpp \
SathishKumar Mani41dfd122012-01-17 10:49:47 -080021 ServiceUtilities.cpp \
Mathias Agopian51ba3c72012-10-26 14:11:01 -070022 AudioResamplerCubic.cpp.arm \
SathishKumar Mani41dfd122012-01-17 10:49:47 -080023 AudioResamplerSinc.cpp.arm
Glenn Kastena6d41332012-10-01 14:04:31 -070024
Glenn Kastendc998c82012-03-23 18:53:59 -070025LOCAL_SRC_FILES += StateQueue.cpp
26
Glenn Kasten39993082012-05-31 13:40:27 -070027# uncomment for debugging timing problems related to StateQueue::push()
28LOCAL_CFLAGS += -DSTATE_QUEUE_DUMP
29
Eric Laurent6d8b6942011-06-24 07:01:31 -070030LOCAL_C_INCLUDES := \
Glenn Kasten33b38392012-03-13 15:59:35 -070031 $(call include-path-for, audio-effects) \
32 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070033
Mathias Agopian65ab4712010-07-14 17:59:35 -070034LOCAL_SHARED_LIBRARIES := \
Glenn Kasten3b21c502011-12-15 09:52:39 -080035 libaudioutils \
John Grossman4ff14ba2012-02-08 16:37:41 -080036 libcommon_time_client \
Mathias Agopian65ab4712010-07-14 17:59:35 -070037 libcutils \
38 libutils \
39 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070040 libmedia \
Glenn Kastenfc7992b2012-08-29 11:10:32 -070041 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070042 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070043 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070044 libeffects \
Eric Laurentfeb0db62011-07-22 09:04:31 -070045 libdl \
46 libpowermanager
Mathias Agopian65ab4712010-07-14 17:59:35 -070047
Dima Zavinfce7a472011-04-19 22:30:36 -070048LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070049 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070050 libcpustats \
Dima Zavinfce7a472011-04-19 22:30:36 -070051 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070052
Mathias Agopian65ab4712010-07-14 17:59:35 -070053LOCAL_MODULE:= libaudioflinger
54
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070055LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp
56
Glenn Kasten21e8c502012-04-12 09:39:42 -070057LOCAL_CFLAGS += -DFAST_MIXER_STATISTICS
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070058
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070059# uncomment to display CPU load adjusted for CPU frequency
60# LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS
61
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070062LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
63
Glenn Kastenc1dae242012-07-03 13:13:53 -070064LOCAL_CFLAGS += -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
Glenn Kasten3acbd052012-02-28 10:39:56 -080065
Glenn Kasten99c99d02012-05-14 16:37:13 -070066# uncomment for systrace
67# LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_AUDIO
68
Glenn Kastenfbae5da2012-05-21 09:17:20 -070069# uncomment for dumpsys to write most recent audio output to .wav file
70# 47.5 seconds at 44.1 kHz, 8 megabytes
71# LOCAL_CFLAGS += -DTEE_SINK_FRAMES=0x200000
72
Glenn Kastenc15d6652012-05-30 14:52:57 -070073# uncomment to enable the audio watchdog
Glenn Kasten02e5dbb2012-09-27 13:49:02 -070074# LOCAL_SRC_FILES += AudioWatchdog.cpp
75# LOCAL_CFLAGS += -DAUDIO_WATCHDOG
Glenn Kastenc15d6652012-05-30 14:52:57 -070076
Mathias Agopian65ab4712010-07-14 17:59:35 -070077include $(BUILD_SHARED_LIBRARY)
ty.lee2b5232d2012-10-01 13:54:14 +090078
Mathias Agopianbcf52202012-10-21 01:01:38 -070079#
80# build audio resampler test tool
81#
82include $(CLEAR_VARS)
83
84LOCAL_SRC_FILES:= \
85 test-resample.cpp \
86 AudioResampler.cpp.arm \
87 AudioResamplerCubic.cpp.arm \
88 AudioResamplerSinc.cpp.arm
89
90LOCAL_SHARED_LIBRARIES := \
91 libdl \
92 libcutils \
93 libutils
94
95LOCAL_MODULE:= test-resample
96
97LOCAL_MODULE_TAGS := optional
98
99include $(BUILD_EXECUTABLE)
100
101
ty.lee2b5232d2012-10-01 13:54:14 +0900102include $(call all-makefiles-under,$(LOCAL_PATH))