blob: 061a07952dd02554bbdf26b753f85dbda71a41b7 [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 \
Ying Wangda0dc0a2013-04-09 21:53:49 -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 \
Ying Wangda0dc0a2013-04-09 21:53:49 -070042 liblog \
Mathias Agopian65ab4712010-07-14 17:59:35 -070043 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070044 libmedia \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070045 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070046 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070047 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070048 libeffects \
Eric Laurentfeb0db62011-07-22 09:04:31 -070049 libdl \
50 libpowermanager
Mathias Agopian65ab4712010-07-14 17:59:35 -070051
Dima Zavinfce7a472011-04-19 22:30:36 -070052LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070053 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070054 libcpustats \
Dima Zavinfce7a472011-04-19 22:30:36 -070055 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070056
Mathias Agopian65ab4712010-07-14 17:59:35 -070057LOCAL_MODULE:= libaudioflinger
58
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070059LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp
60
Glenn Kasten21e8c502012-04-12 09:39:42 -070061LOCAL_CFLAGS += -DFAST_MIXER_STATISTICS
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070062
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070063# uncomment to display CPU load adjusted for CPU frequency
64# LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS
65
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070066LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
67
Glenn Kastenc1dae242012-07-03 13:13:53 -070068LOCAL_CFLAGS += -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE
Glenn Kasten3acbd052012-02-28 10:39:56 -080069
Glenn Kasten46909e72013-02-26 09:20:22 -080070# uncomment to allow tee sink debugging to be enabled by property
71# LOCAL_CFLAGS += -DTEE_SINK
72
Glenn Kastenc15d6652012-05-30 14:52:57 -070073# uncomment to enable the audio watchdog
Glenn Kasten087dd8e2012-09-27 13:49:02 -070074# LOCAL_SRC_FILES += AudioWatchdog.cpp
75# LOCAL_CFLAGS += -DAUDIO_WATCHDOG
Glenn Kastenc15d6652012-05-30 14:52:57 -070076
Alex Rayb3a83642012-11-30 19:42:28 -080077# Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
78ifeq ($(TARGET_CPU_SMP),true)
79 LOCAL_CFLAGS += -DANDROID_SMP=1
80else
81 LOCAL_CFLAGS += -DANDROID_SMP=0
82endif
83
Mathias Agopian65ab4712010-07-14 17:59:35 -070084include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090085
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070086#
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 := \
Ying Wangda0dc0a2013-04-09 21:53:49 -070098 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070099 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -0700100 libutils \
101 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -0700102
103LOCAL_MODULE:= test-resample
104
105LOCAL_MODULE_TAGS := optional
106
107include $(BUILD_EXECUTABLE)
108
ty.leec8823992012-10-01 13:54:14 +0900109include $(call all-makefiles-under,$(LOCAL_PATH))