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 \ |
Mathias Agopian | 93d0767 | 2012-10-26 14:11:01 -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 | |
Glenn Kasten | 3999308 | 2012-05-31 13:40:27 -0700 | [diff] [blame] | 30 | # uncomment for debugging timing problems related to StateQueue::push() |
| 31 | LOCAL_CFLAGS += -DSTATE_QUEUE_DUMP |
| 32 | |
Eric Laurent | 6d8b694 | 2011-06-24 07:01:31 -0700 | [diff] [blame] | 33 | LOCAL_C_INCLUDES := \ |
Glenn Kasten | 33b3839 | 2012-03-13 15:59:35 -0700 | [diff] [blame] | 34 | $(call include-path-for, audio-effects) \ |
| 35 | $(call include-path-for, audio-utils) |
Eric Laurent | 6d8b694 | 2011-06-24 07:01:31 -0700 | [diff] [blame] | 36 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 37 | LOCAL_SHARED_LIBRARIES := \ |
Glenn Kasten | 3b21c50 | 2011-12-15 09:52:39 -0800 | [diff] [blame] | 38 | libaudioutils \ |
John Grossman | 4ff14ba | 2012-02-08 16:37:41 -0800 | [diff] [blame] | 39 | libcommon_time_client \ |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 40 | libcutils \ |
| 41 | libutils \ |
| 42 | libbinder \ |
Glenn Kasten | d12c68a | 2012-03-23 14:04:27 -0700 | [diff] [blame] | 43 | libmedia \ |
Glenn Kasten | 2dd4bdd | 2012-08-29 11:10:32 -0700 | [diff] [blame] | 44 | libnbaio \ |
Dima Zavin | fce7a47 | 2011-04-19 22:30:36 -0700 | [diff] [blame] | 45 | libhardware \ |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 46 | libhardware_legacy \ |
Jeff Brown | 5e0067b | 2011-07-11 22:12:16 -0700 | [diff] [blame] | 47 | libeffects \ |
Eric Laurent | feb0db6 | 2011-07-22 09:04:31 -0700 | [diff] [blame] | 48 | libdl \ |
| 49 | libpowermanager |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 50 | |
Dima Zavin | fce7a47 | 2011-04-19 22:30:36 -0700 | [diff] [blame] | 51 | LOCAL_STATIC_LIBRARIES := \ |
Glenn Kasten | 1dc28b7 | 2012-04-24 10:01:03 -0700 | [diff] [blame] | 52 | libscheduling_policy \ |
Glenn Kasten | 4d8d0c3 | 2011-07-08 15:26:12 -0700 | [diff] [blame] | 53 | libcpustats \ |
Dima Zavin | fce7a47 | 2011-04-19 22:30:36 -0700 | [diff] [blame] | 54 | libmedia_helper |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 55 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 56 | LOCAL_MODULE:= libaudioflinger |
| 57 | |
Glenn Kasten | 97b5d0d | 2012-03-23 18:54:19 -0700 | [diff] [blame] | 58 | LOCAL_SRC_FILES += FastMixer.cpp FastMixerState.cpp |
| 59 | |
Glenn Kasten | 21e8c50 | 2012-04-12 09:39:42 -0700 | [diff] [blame] | 60 | LOCAL_CFLAGS += -DFAST_MIXER_STATISTICS |
Glenn Kasten | 97b5d0d | 2012-03-23 18:54:19 -0700 | [diff] [blame] | 61 | |
Glenn Kasten | 0a14c4c | 2012-06-13 14:58:49 -0700 | [diff] [blame] | 62 | # uncomment to display CPU load adjusted for CPU frequency |
| 63 | # LOCAL_CFLAGS += -DCPU_FREQUENCY_STATISTICS |
| 64 | |
Glenn Kasten | 97b5d0d | 2012-03-23 18:54:19 -0700 | [diff] [blame] | 65 | LOCAL_CFLAGS += -DSTATE_QUEUE_INSTANTIATIONS='"StateQueueInstantiations.cpp"' |
| 66 | |
Glenn Kasten | c1dae24 | 2012-07-03 13:13:53 -0700 | [diff] [blame] | 67 | LOCAL_CFLAGS += -UFAST_TRACKS_AT_NON_NATIVE_SAMPLE_RATE |
Glenn Kasten | 3acbd05 | 2012-02-28 10:39:56 -0800 | [diff] [blame] | 68 | |
Glenn Kasten | 46909e7 | 2013-02-26 09:20:22 -0800 | [diff] [blame^] | 69 | # uncomment to allow tee sink debugging to be enabled by property |
| 70 | # LOCAL_CFLAGS += -DTEE_SINK |
| 71 | |
Glenn Kasten | c15d665 | 2012-05-30 14:52:57 -0700 | [diff] [blame] | 72 | # uncomment to enable the audio watchdog |
Glenn Kasten | 087dd8e | 2012-09-27 13:49:02 -0700 | [diff] [blame] | 73 | # LOCAL_SRC_FILES += AudioWatchdog.cpp |
| 74 | # LOCAL_CFLAGS += -DAUDIO_WATCHDOG |
Glenn Kasten | c15d665 | 2012-05-30 14:52:57 -0700 | [diff] [blame] | 75 | |
Alex Ray | b3a8364 | 2012-11-30 19:42:28 -0800 | [diff] [blame] | 76 | # Define ANDROID_SMP appropriately. Used to get inline tracing fast-path. |
| 77 | ifeq ($(TARGET_CPU_SMP),true) |
| 78 | LOCAL_CFLAGS += -DANDROID_SMP=1 |
| 79 | else |
| 80 | LOCAL_CFLAGS += -DANDROID_SMP=0 |
| 81 | endif |
| 82 | |
Mathias Agopian | 65ab471 | 2010-07-14 17:59:35 -0700 | [diff] [blame] | 83 | include $(BUILD_SHARED_LIBRARY) |
ty.lee | c882399 | 2012-10-01 13:54:14 +0900 | [diff] [blame] | 84 | |
Mathias Agopian | 0fc2cb5 | 2012-10-21 01:01:38 -0700 | [diff] [blame] | 85 | # |
| 86 | # build audio resampler test tool |
| 87 | # |
| 88 | include $(CLEAR_VARS) |
| 89 | |
| 90 | LOCAL_SRC_FILES:= \ |
| 91 | test-resample.cpp \ |
| 92 | AudioResampler.cpp.arm \ |
| 93 | AudioResamplerCubic.cpp.arm \ |
| 94 | AudioResamplerSinc.cpp.arm |
| 95 | |
| 96 | LOCAL_SHARED_LIBRARIES := \ |
| 97 | libdl \ |
| 98 | libcutils \ |
| 99 | libutils |
| 100 | |
| 101 | LOCAL_MODULE:= test-resample |
| 102 | |
| 103 | LOCAL_MODULE_TAGS := optional |
| 104 | |
| 105 | include $(BUILD_EXECUTABLE) |
| 106 | |
| 107 | |
ty.lee | c882399 | 2012-10-01 13:54:14 +0900 | [diff] [blame] | 108 | include $(call all-makefiles-under,$(LOCAL_PATH)) |