| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| Glenn Kasten | 0106623 | 2012-02-27 11:50:44 -0800 | [diff] [blame] | 5 | LOCAL_SRC_FILES := \ |
| Glenn Kasten | 1dc28b7 | 2012-04-24 10:01:03 -0700 | [diff] [blame] | 6 | ISchedulingPolicyService.cpp \ |
| 7 | SchedulingPolicyService.cpp |
| 8 | |
| 9 | # FIXME Move this library to frameworks/native |
| 10 | LOCAL_MODULE := libscheduling_policy |
| 11 | |
| 12 | include $(BUILD_STATIC_LIBRARY) |
| 13 | |
| 14 | include $(CLEAR_VARS) |
| 15 | |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 16 | LOCAL_SRC_FILES:= \ |
| 17 | AudioFlinger.cpp \ |
| Eric Laurent | 81784c3 | 2012-11-19 14:55:58 -0800 | [diff] [blame] | 18 | Threads.cpp \ |
| 19 | Tracks.cpp \ |
| 20 | Effects.cpp \ |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 21 | AudioMixer.cpp.arm \ |
| 22 | AudioResampler.cpp.arm \ |
| Glenn Kasten | 44deb05 | 2012-02-05 18:09:08 -0800 | [diff] [blame] | 23 | AudioPolicyService.cpp \ |
| SathishKumar Mani | 76b1116 | 2012-01-17 10:49:47 -0800 | [diff] [blame] | 24 | ServiceUtilities.cpp \ |
| Ying Wang | da0dc0a | 2013-04-09 21:53:49 -0700 | [diff] [blame] | 25 | AudioResamplerCubic.cpp.arm \ |
| SathishKumar Mani | 76b1116 | 2012-01-17 10:49:47 -0800 | [diff] [blame] | 26 | AudioResamplerSinc.cpp.arm |
| Glenn Kasten | ac60205 | 2012-10-01 14:04:31 -0700 | [diff] [blame] | 27 | |
| Glenn Kasten | dc998c8 | 2012-03-23 18:53:59 -0700 | [diff] [blame] | 28 | LOCAL_SRC_FILES += StateQueue.cpp |
| 29 | |
| Eric Laurent | 6d8b694 | 2011-06-24 07:01:31 -0700 | [diff] [blame] | 30 | LOCAL_C_INCLUDES := \ |
| Glenn Kasten | 33b3839 | 2012-03-13 15:59:35 -0700 | [diff] [blame] | 31 | $(call include-path-for, audio-effects) \ |
| 32 | $(call include-path-for, audio-utils) |
| Eric Laurent | 6d8b694 | 2011-06-24 07:01:31 -0700 | [diff] [blame] | 33 | |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 34 | LOCAL_SHARED_LIBRARIES := \ |
| Glenn Kasten | 3b21c50 | 2011-12-15 09:52:39 -0800 | [diff] [blame] | 35 | libaudioutils \ |
| John Grossman | 4ff14ba | 2012-02-08 16:37:41 -0800 | [diff] [blame] | 36 | libcommon_time_client \ |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 37 | libcutils \ |
| 38 | libutils \ |
| Ying Wang | da0dc0a | 2013-04-09 21:53:49 -0700 | [diff] [blame] | 39 | liblog \ |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 40 | libbinder \ |
| Glenn Kasten | d12c68a | 2012-03-23 14:04:27 -0700 | [diff] [blame] | 41 | libmedia \ |
| Glenn Kasten | 2dd4bdd | 2012-08-29 11:10:32 -0700 | [diff] [blame] | 42 | libnbaio \ |
| Dima Zavin | fce7a47 | 2011-04-19 22:30:36 -0700 | [diff] [blame] | 43 | libhardware \ |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 44 | libhardware_legacy \ |
| Jeff Brown | 5e0067b | 2011-07-11 22:12:16 -0700 | [diff] [blame] | 45 | libeffects \ |
| Eric Laurent | feb0db6 | 2011-07-22 09:04:31 -0700 | [diff] [blame] | 46 | libdl \ |
| 47 | libpowermanager |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 48 | |
| Alok Kediya | 601e9b5 | 2013-09-27 11:55:10 +0530 | [diff] [blame^] | 49 | # SRS Processing |
| 50 | ifeq ($(strip $(BOARD_USES_SRS_TRUEMEDIA)),true) |
| 51 | LOCAL_SHARED_LIBRARIES += libsrsprocessing |
| 52 | LOCAL_CFLAGS += -DSRS_PROCESSING |
| 53 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio/audio-effects |
| 54 | endif |
| 55 | # SRS Processing |
| 56 | |
| Dima Zavin | fce7a47 | 2011-04-19 22:30:36 -0700 | [diff] [blame] | 57 | LOCAL_STATIC_LIBRARIES := \ |
| Glenn Kasten | 1dc28b7 | 2012-04-24 10:01:03 -0700 | [diff] [blame] | 58 | libscheduling_policy \ |
| Glenn Kasten | 4d8d0c3 | 2011-07-08 15:26:12 -0700 | [diff] [blame] | 59 | libcpustats \ |
| Dima Zavin | fce7a47 | 2011-04-19 22:30:36 -0700 | [diff] [blame] | 60 | libmedia_helper |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 61 | |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 62 | LOCAL_MODULE:= libaudioflinger |
| 63 | |
| Glenn Kasten | 153b9fe | 2013-07-15 11:23:36 -0700 | [diff] [blame] | 64 | LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp AudioWatchdog.cpp |
| Glenn Kasten | 0a14c4c | 2012-06-13 14:58:49 -0700 | [diff] [blame] | 65 | |
| Glenn Kasten | 97b5d0d | 2012-03-23 18:54:19 -0700 | [diff] [blame] | 66 | LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"' |
| 67 | |
| Alex Ray | b3a8364 | 2012-11-30 19:42:28 -0800 | [diff] [blame] | 68 | # Define ANDROID_SMP appropriately. Used to get inline tracing fast-path. |
| 69 | ifeq ($(TARGET_CPU_SMP),true) |
| 70 | LOCAL_CFLAGS += -DANDROID_SMP=1 |
| 71 | else |
| 72 | LOCAL_CFLAGS += -DANDROID_SMP=0 |
| 73 | endif |
| 74 | |
| Mathias Agopian | e762be9 | 2013-05-09 16:26:45 -0700 | [diff] [blame] | 75 | LOCAL_CFLAGS += -fvisibility=hidden |
| 76 | |
| Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 77 | include $(BUILD_SHARED_LIBRARY) |
| ty.lee | c882399 | 2012-10-01 13:54:14 +0900 | [diff] [blame] | 78 | |
| Mathias Agopian | 0fc2cb5 | 2012-10-21 01:01:38 -0700 | [diff] [blame] | 79 | # |
| 80 | # build audio resampler test tool |
| 81 | # |
| 82 | include $(CLEAR_VARS) |
| 83 | |
| 84 | LOCAL_SRC_FILES:= \ |
| 85 | test-resample.cpp \ |
| 86 | AudioResampler.cpp.arm \ |
| 87 | AudioResamplerCubic.cpp.arm \ |
| 88 | AudioResamplerSinc.cpp.arm |
| 89 | |
| 90 | LOCAL_SHARED_LIBRARIES := \ |
| Ying Wang | da0dc0a | 2013-04-09 21:53:49 -0700 | [diff] [blame] | 91 | libdl \ |
| Mathias Agopian | 0fc2cb5 | 2012-10-21 01:01:38 -0700 | [diff] [blame] | 92 | libcutils \ |
| Ying Wang | da0dc0a | 2013-04-09 21:53:49 -0700 | [diff] [blame] | 93 | libutils \ |
| 94 | liblog |
| Mathias Agopian | 0fc2cb5 | 2012-10-21 01:01:38 -0700 | [diff] [blame] | 95 | |
| 96 | LOCAL_MODULE:= test-resample |
| 97 | |
| 98 | LOCAL_MODULE_TAGS := optional |
| 99 | |
| 100 | include $(BUILD_EXECUTABLE) |
| 101 | |
| ty.lee | c882399 | 2012-10-01 13:54:14 +0900 | [diff] [blame] | 102 | include $(call all-makefiles-under,$(LOCAL_PATH)) |