Android.mk revision 81784c37c61b09289654b979567a42bf73cd2b12
1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
6    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
16LOCAL_SRC_FILES:=               \
17    AudioFlinger.cpp            \
18    Threads.cpp                 \
19    Tracks.cpp                  \
20    Effects.cpp                 \
21    AudioMixer.cpp.arm          \
22    AudioResampler.cpp.arm      \
23    AudioPolicyService.cpp      \
24    ServiceUtilities.cpp        \
25	AudioResamplerCubic.cpp.arm \
26    AudioResamplerSinc.cpp.arm
27
28LOCAL_SRC_FILES += StateQueue.cpp
29
30# uncomment for debugging timing problems related to StateQueue::push()
31LOCAL_CFLAGS += -DSTATE_QUEUE_DUMP
32
33LOCAL_C_INCLUDES := \
34    $(call include-path-for, audio-effects) \
35    $(call include-path-for, audio-utils)
36
37LOCAL_SHARED_LIBRARIES := \
38    libaudioutils \
39    libcommon_time_client \
40    libcutils \
41    libutils \
42    libbinder \
43    libmedia \
44    libnbaio \
45    libhardware \
46    libhardware_legacy \
47    libeffects \
48    libdl \
49    libpowermanager
50
51LOCAL_STATIC_LIBRARIES := \
52    libscheduling_policy \
53    libcpustats \
54    libmedia_helper
55
56LOCAL_MODULE:= libaudioflinger
57
58LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp
59
60LOCAL_CFLAGS += -DFAST_MIXER_STATISTICS
61
62# uncomment to display CPU load adjusted for CPU frequency
63# LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS
64
65LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
66
67LOCAL_CFLAGS += -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
68
69# uncomment for systrace
70# LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_AUDIO
71
72# uncomment for dumpsys to write most recent audio output to .wav file
73# 47.5 seconds at 44.1 kHz, 8 megabytes
74# LOCAL_CFLAGS += -DTEE_SINK_FRAMES=0x200000
75
76# uncomment for dumpsys to write most recent audio input to .wav file
77# 47.5 seconds at 44.1 kHz, 8 megabytes
78# LOCAL_CFLAGS += -DTEE_SINK_INPUT_FRAMES=0x200000
79
80# uncomment to enable the audio watchdog
81# LOCAL_SRC_FILES += AudioWatchdog.cpp
82# LOCAL_CFLAGS += -DAUDIO_WATCHDOG
83
84include $(BUILD_SHARED_LIBRARY)
85
86#
87# build audio resampler test tool
88#
89include $(CLEAR_VARS)
90
91LOCAL_SRC_FILES:=               \
92	test-resample.cpp 			\
93    AudioResampler.cpp.arm      \
94	AudioResamplerCubic.cpp.arm \
95    AudioResamplerSinc.cpp.arm
96
97LOCAL_SHARED_LIBRARIES := \
98	libdl \
99    libcutils \
100    libutils
101
102LOCAL_MODULE:= test-resample
103
104LOCAL_MODULE_TAGS := optional
105
106include $(BUILD_EXECUTABLE)
107
108
109include $(call all-makefiles-under,$(LOCAL_PATH))
110