blob: 24f0d55634a0762c4e4a6c20c4ffd5f6c2cf3e9a [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 \
Andy Hung86eae0e2013-12-09 12:12:46 -080026 AudioResamplerSinc.cpp.arm \
27 AudioResamplerDyn.cpp.arm
Glenn Kastenac602052012-10-01 14:04:31 -070028
Glenn Kastendc998c82012-03-23 18:53:59 -070029LOCAL_SRC_FILES += StateQueue.cpp
30
Eric Laurent6d8b6942011-06-24 07:01:31 -070031LOCAL_C_INCLUDES := \
Glenn Kasten33b38392012-03-13 15:59:35 -070032 $(call include-path-for, audio-effects) \
33 $(call include-path-for, audio-utils)
Eric Laurent6d8b6942011-06-24 07:01:31 -070034
Mathias Agopian65ab4712010-07-14 17:59:35 -070035LOCAL_SHARED_LIBRARIES := \
Glenn Kasten3b21c502011-12-15 09:52:39 -080036 libaudioutils \
John Grossman4ff14ba2012-02-08 16:37:41 -080037 libcommon_time_client \
Mathias Agopian65ab4712010-07-14 17:59:35 -070038 libcutils \
39 libutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070040 liblog \
Mathias Agopian65ab4712010-07-14 17:59:35 -070041 libbinder \
Glenn Kastend12c68a2012-03-23 14:04:27 -070042 libmedia \
Glenn Kasten2dd4bdd2012-08-29 11:10:32 -070043 libnbaio \
Dima Zavinfce7a472011-04-19 22:30:36 -070044 libhardware \
Mathias Agopian65ab4712010-07-14 17:59:35 -070045 libhardware_legacy \
Jeff Brown5e0067b2011-07-11 22:12:16 -070046 libeffects \
Eric Laurentfeb0db62011-07-22 09:04:31 -070047 libdl \
48 libpowermanager
Mathias Agopian65ab4712010-07-14 17:59:35 -070049
Dima Zavinfce7a472011-04-19 22:30:36 -070050LOCAL_STATIC_LIBRARIES := \
Glenn Kasten1dc28b72012-04-24 10:01:03 -070051 libscheduling_policy \
Glenn Kasten4d8d0c32011-07-08 15:26:12 -070052 libcpustats \
Dima Zavinfce7a472011-04-19 22:30:36 -070053 libmedia_helper
Mathias Agopian65ab4712010-07-14 17:59:35 -070054
Mathias Agopian65ab4712010-07-14 17:59:35 -070055LOCAL_MODULE:= libaudioflinger
Glenn Kastenaf783aa2014-03-02 19:48:19 -080056LOCAL_32_BIT_ONLY := true
Mathias Agopian65ab4712010-07-14 17:59:35 -070057
Glenn Kasten153b9fe2013-07-15 11:23:36 -070058LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp AudioWatchdog.cpp
Glenn Kasten0a14c4c2012-06-13 14:58:49 -070059
Glenn Kasten97b5d0d2012-03-23 18:54:19 -070060LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"'
61
Alex Rayb3a83642012-11-30 19:42:28 -080062# Define ANDROID_SMP appropriately. Used to get inline tracing fast-path.
63ifeq ($(TARGET_CPU_SMP),true)
64 LOCAL_CFLAGS += -DANDROID_SMP=1
65else
66 LOCAL_CFLAGS += -DANDROID_SMP=0
67endif
68
Mathias Agopiane762be92013-05-09 16:26:45 -070069LOCAL_CFLAGS += -fvisibility=hidden
70
Mathias Agopian65ab4712010-07-14 17:59:35 -070071include $(BUILD_SHARED_LIBRARY)
ty.leec8823992012-10-01 13:54:14 +090072
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070073#
74# build audio resampler test tool
75#
76include $(CLEAR_VARS)
77
78LOCAL_SRC_FILES:= \
Andy Hung86eae0e2013-12-09 12:12:46 -080079 test-resample.cpp \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070080 AudioResampler.cpp.arm \
Andy Hung86eae0e2013-12-09 12:12:46 -080081 AudioResamplerCubic.cpp.arm \
82 AudioResamplerSinc.cpp.arm \
83 AudioResamplerDyn.cpp.arm
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070084
Glenn Kastenf5293642013-12-17 14:49:17 -080085LOCAL_C_INCLUDES := \
86 $(call include-path-for, audio-utils)
87
88LOCAL_STATIC_LIBRARIES := \
89 libsndfile
90
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070091LOCAL_SHARED_LIBRARIES := \
Glenn Kastenf5293642013-12-17 14:49:17 -080092 libaudioutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070093 libdl \
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070094 libcutils \
Ying Wangda0dc0a2013-04-09 21:53:49 -070095 libutils \
96 liblog
Mathias Agopian0fc2cb52012-10-21 01:01:38 -070097
98LOCAL_MODULE:= test-resample
99
100LOCAL_MODULE_TAGS := optional
101
102include $(BUILD_EXECUTABLE)
103
ty.leec8823992012-10-01 13:54:14 +0900104include $(call all-makefiles-under,$(LOCAL_PATH))