blob: 7daef99f2aeba67710681166633a27dae3650723 [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 \
Eric Laurent81784c32012-11-19 14:55:58 -080018 Threads.cpp \
19 Tracks.cpp \
20 Effects.cpp \
Mathias Agopian65ab4712010-07-14 17:59:35 -070021 AudioMixer.cpp.arm \
22 AudioResampler.cpp.arm \
Glenn Kasten44deb052012-02-05 18:09:08 -080023 AudioPolicyService.cpp \
SathishKumar Mani76b11162012-01-17 10:49:47 -080024 ServiceUtilities.cpp \
Mathias Agopian93d07672012-10-26 14:11:01 -070025 AudioResamplerCubic.cpp.arm \
SathishKumar Mani76b11162012-01-17 10:49:47 -080026 AudioResamplerSinc.cpp.arm
Glenn Kastenac602052012-10-01 14:04:31 -070027
Glenn Kastendc998c82012-03-23 18:53:59 -070028LOCAL_SRC_FILES += StateQueue.cpp
29
Glenn Kasten39993082012-05-31 13:40:27 -070030# uncomment for debugging timing problems related to StateQueue::push()
31LOCAL_CFLAGS += -DSTATE_QUEUE_DUMP
32
Eric Laurent6d8b6942011-06-24 07:01:31 -070033LOCAL_C_INCLUDES := \
Glenn Kasten33b38392012-03-13 15:59:35 -070034 $(call include-path-for, audio-effects) \
35 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070036
Mathias Agopian65ab4712010-07-14 17:59:35 -070037LOCAL_SHARED_LIBRARIES := \
Glenn Kasten3b21c502011-12-15 09:52:39 -080038 libaudioutils \
John Grossman4ff14ba2012-02-08 16:37:41 -080039 libcommon_time_client \
Mathias Agopian65ab4712010-07-14 17:59:35 -070040 libcutils \
41 libutils \
42 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070043 libmedia \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070044 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070045 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070046 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070047 libeffects \
Eric Laurentfeb0db62011-07-22 09:04:31 -070048 libdl \
49 libpowermanager
Mathias Agopian65ab4712010-07-14 17:59:35 -070050
Dima Zavinfce7a472011-04-19 22:30:36 -070051LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070052 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070053 libcpustats \
Dima Zavinfce7a472011-04-19 22:30:36 -070054 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070055
Mathias Agopian65ab4712010-07-14 17:59:35 -070056LOCAL_MODULE:= libaudioflinger
57
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070058LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp
59
Glenn Kasten21e8c502012-04-12 09:39:42 -070060LOCAL_CFLAGS += -DFAST_MIXER_STATISTICS
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070061
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070062# uncomment to display CPU load adjusted for CPU frequency
63# LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS
64
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070065LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
66
Glenn Kastenc1dae242012-07-03 13:13:53 -070067LOCAL_CFLAGS += -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
Glenn Kasten3acbd052012-02-28 10:39:56 -080068
Glenn Kasten46909e72013-02-26 09:20:22 -080069# uncomment to allow tee sink debugging to be enabled by property
70# LOCAL_CFLAGS += -DTEE_SINK
71
Glenn Kastenc15d6652012-05-30 14:52:57 -070072# uncomment to enable the audio watchdog
Glenn Kasten087dd8e2012-09-27 13:49:02 -070073# LOCAL_SRC_FILES += AudioWatchdog.cpp
74# LOCAL_CFLAGS += -DAUDIO_WATCHDOG
Glenn Kastenc15d6652012-05-30 14:52:57 -070075
Alex Rayb3a83642012-11-30 19:42:28 -080076# Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
77ifeq ($(TARGET_CPU_SMP),true)
78 LOCAL_CFLAGS += -DANDROID_SMP=1
79else
80 LOCAL_CFLAGS += -DANDROID_SMP=0
81endif
82
Mathias Agopian65ab4712010-07-14 17:59:35 -070083include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090084
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070085#
86# build audio resampler test tool
87#
88include $(CLEAR_VARS)
89
90LOCAL_SRC_FILES:= \
91 test-resample.cpp \
92 AudioResampler.cpp.arm \
93 AudioResamplerCubic.cpp.arm \
94 AudioResamplerSinc.cpp.arm
95
96LOCAL_SHARED_LIBRARIES := \
97 libdl \
98 libcutils \
99 libutils
100
101LOCAL_MODULE:= test-resample
102
103LOCAL_MODULE_TAGS := optional
104
105include $(BUILD_EXECUTABLE)
106
107
ty.leec8823992012-10-01 13:54:14 +0900108include $(call all-makefiles-under,$(LOCAL_PATH))