Android.mk revision 0a14c4ce1a41bc09eb7855fa531a3af629a69139
165ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias AgopianLOCAL_PATH:= $(call my-dir) 265ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian 365ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopianinclude $(CLEAR_VARS) 465ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian 5010662326b9c43c703725f933e95e0897f8a6bddGlenn KastenLOCAL_SRC_FILES := \ 61dc28b794587be22c90a97070d928f94586db638Glenn Kasten ISchedulingPolicyService.cpp \ 71dc28b794587be22c90a97070d928f94586db638Glenn Kasten SchedulingPolicyService.cpp 81dc28b794587be22c90a97070d928f94586db638Glenn Kasten 91dc28b794587be22c90a97070d928f94586db638Glenn Kasten# FIXME Move this library to frameworks/native 101dc28b794587be22c90a97070d928f94586db638Glenn KastenLOCAL_MODULE := libscheduling_policy 111dc28b794587be22c90a97070d928f94586db638Glenn Kasten 121dc28b794587be22c90a97070d928f94586db638Glenn Kasteninclude $(BUILD_STATIC_LIBRARY) 131dc28b794587be22c90a97070d928f94586db638Glenn Kasten 141dc28b794587be22c90a97070d928f94586db638Glenn Kasteninclude $(CLEAR_VARS) 151dc28b794587be22c90a97070d928f94586db638Glenn Kasten 161dc28b794587be22c90a97070d928f94586db638Glenn KastenLOCAL_SRC_FILES := \ 17010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten AudioBufferProviderSource.cpp \ 18010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten AudioStreamOutSink.cpp \ 19010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten AudioStreamInSource.cpp \ 20010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten NBAIO.cpp \ 21010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten MonoPipe.cpp \ 22010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten MonoPipeReader.cpp \ 23010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten Pipe.cpp \ 24010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten PipeReader.cpp \ 25010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten roundup.c \ 26010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten SourceAudioBufferProvider.cpp 27010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten 28010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten# libsndfile license is incompatible; uncomment to use for local debug only 29010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten#LOCAL_SRC_FILES += LibsndfileSink.cpp LibsndfileSource.cpp 30010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten#LOCAL_C_INCLUDES += path/to/libsndfile/src 31010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten#LOCAL_STATIC_LIBRARIES += libsndfile 32010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten 3328ed2f93324988767b5658eba7c1fa781a275183Glenn Kasten# uncomment for systrace 3428ed2f93324988767b5658eba7c1fa781a275183Glenn Kasten# LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_AUDIO 3528ed2f93324988767b5658eba7c1fa781a275183Glenn Kasten 36010662326b9c43c703725f933e95e0897f8a6bddGlenn KastenLOCAL_MODULE := libnbaio 37010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten 38010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasteninclude $(BUILD_STATIC_LIBRARY) 39010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten 40010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasteninclude $(CLEAR_VARS) 41010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten 4265ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias AgopianLOCAL_SRC_FILES:= \ 4365ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian AudioFlinger.cpp \ 4465ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian AudioMixer.cpp.arm \ 4565ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian AudioResampler.cpp.arm \ 4644deb053252a3bd2f57a007ab9560f4924f62394Glenn Kasten AudioPolicyService.cpp \ 4744deb053252a3bd2f57a007ab9560f4924f62394Glenn Kasten ServiceUtilities.cpp 48cdf2158f3b9498d6cd0eb228d8bee16e32399e16Glenn Kasten# AudioResamplerSinc.cpp.arm 49cdf2158f3b9498d6cd0eb228d8bee16e32399e16Glenn Kasten# AudioResamplerCubic.cpp.arm 5065ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian 51dc998c809e084b617990b281e2ed5271830cc2e0Glenn KastenLOCAL_SRC_FILES += StateQueue.cpp 52dc998c809e084b617990b281e2ed5271830cc2e0Glenn Kasten 53399930859a75d806ce0ef124ac22025ae4ef0549Glenn Kasten# uncomment for debugging timing problems related to StateQueue::push() 54399930859a75d806ce0ef124ac22025ae4ef0549Glenn KastenLOCAL_CFLAGS += -DSTATE_QUEUE_DUMP 55399930859a75d806ce0ef124ac22025ae4ef0549Glenn Kasten 566d8b694d999e9be7d5dcc336535832a80fb6f61fEric LaurentLOCAL_C_INCLUDES := \ 5733b383948e8f270bff30378476f00dce289004ebGlenn Kasten $(call include-path-for, audio-effects) \ 5833b383948e8f270bff30378476f00dce289004ebGlenn Kasten $(call include-path-for, audio-utils) 596d8b694d999e9be7d5dcc336535832a80fb6f61fEric Laurent 602ee367e444e7b62e02bde8a2e47603a9ad342c6eGlenn Kasten# FIXME keep libmedia_native but remove libmedia after split 6165ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias AgopianLOCAL_SHARED_LIBRARIES := \ 623b21c50ef95fe4e7ac3426ca14b365749e66ff08Glenn Kasten libaudioutils \ 634ff14bae91075eb274eb1c2975982358946e7e63John Grossman libcommon_time_client \ 6465ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian libcutils \ 6565ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian libutils \ 6665ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian libbinder \ 67d12c68ad699ce0ed822a4d4db86e8e02324c6b03Glenn Kasten libmedia \ 682ee367e444e7b62e02bde8a2e47603a9ad342c6eGlenn Kasten libmedia_native \ 69fce7a473248381cc83a01855f92581077d3c9ee2Dima Zavin libhardware \ 7065ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian libhardware_legacy \ 715e0067b486c3862316aa1f293cf9690c0cf54bdaJeff Brown libeffects \ 72feb0db689c17dced50afaee54c659f1676e2d505Eric Laurent libdl \ 73feb0db689c17dced50afaee54c659f1676e2d505Eric Laurent libpowermanager 7465ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian 75fce7a473248381cc83a01855f92581077d3c9ee2Dima ZavinLOCAL_STATIC_LIBRARIES := \ 761dc28b794587be22c90a97070d928f94586db638Glenn Kasten libscheduling_policy \ 77010662326b9c43c703725f933e95e0897f8a6bddGlenn Kasten libnbaio \ 784d8d0c30abfa4b8d75866d42094cc797e05068faGlenn Kasten libcpustats \ 79fce7a473248381cc83a01855f92581077d3c9ee2Dima Zavin libmedia_helper 8065ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian 8165ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias AgopianLOCAL_MODULE:= libaudioflinger 8265ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopian 8397b5d0d5b5ef766eb5dd680d05a5d199662d4ae0Glenn KastenLOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp 8497b5d0d5b5ef766eb5dd680d05a5d199662d4ae0Glenn Kasten 8521e8c50bd13ebe44f3088e26c9c6df0e163c469cGlenn KastenLOCAL_CFLAGS += -DFAST_MIXER_STATISTICS 8697b5d0d5b5ef766eb5dd680d05a5d199662d4ae0Glenn Kasten 870a14c4ce1a41bc09eb7855fa531a3af629a69139Glenn Kasten# uncomment to display CPU load adjusted for CPU frequency 880a14c4ce1a41bc09eb7855fa531a3af629a69139Glenn Kasten# LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS 890a14c4ce1a41bc09eb7855fa531a3af629a69139Glenn Kasten 9097b5d0d5b5ef766eb5dd680d05a5d199662d4ae0Glenn KastenLOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"' 9197b5d0d5b5ef766eb5dd680d05a5d199662d4ae0Glenn Kasten 921dc28b794587be22c90a97070d928f94586db638Glenn KastenLOCAL_CFLAGS += -DHAVE_REQUEST_PRIORITY -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE -USOAKER 933acbd053c842e76e1a40fc8a0bf62de87eebf00fGlenn Kasten 9499c99d00beb43b939dedc9ffb07adb89f6a85ba5Glenn Kasten# uncomment for systrace 9599c99d00beb43b939dedc9ffb07adb89f6a85ba5Glenn Kasten# LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_AUDIO 9699c99d00beb43b939dedc9ffb07adb89f6a85ba5Glenn Kasten 97fbae5dae5187aca9d974cbe15ec818e9c6f56705Glenn Kasten# uncomment for dumpsys to write most recent audio output to .wav file 98fbae5dae5187aca9d974cbe15ec818e9c6f56705Glenn Kasten# 47.5 seconds at 44.1 kHz, 8 megabytes 99fbae5dae5187aca9d974cbe15ec818e9c6f56705Glenn Kasten# LOCAL_CFLAGS += -DTEE_SINK_FRAMES=0x200000 100fbae5dae5187aca9d974cbe15ec818e9c6f56705Glenn Kasten 101c15d6657a17d7cef91f800f40d11760e2e7340afGlenn Kasten# uncomment to enable the audio watchdog 102c15d6657a17d7cef91f800f40d11760e2e7340afGlenn KastenLOCAL_SRC_FILES += AudioWatchdog.cpp 103c15d6657a17d7cef91f800f40d11760e2e7340afGlenn KastenLOCAL_CFLAGS += -DAUDIO_WATCHDOG 104c15d6657a17d7cef91f800f40d11760e2e7340afGlenn Kasten 10565ab47156e1c7dfcd8cc4266253a5ff30219e7f0Mathias Agopianinclude $(BUILD_SHARED_LIBRARY) 106