The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 3 | #AUDIO_POLICY_TEST := true |
| 4 | #ENABLE_AUDIO_DUMP := true |
| 5 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 6 | include $(CLEAR_VARS) |
| 7 | |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 8 | |
| 9 | ifeq ($(AUDIO_POLICY_TEST),true) |
| 10 | ENABLE_AUDIO_DUMP := true |
| 11 | endif |
| 12 | |
| 13 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | LOCAL_SRC_FILES:= \ |
| 15 | AudioHardwareGeneric.cpp \ |
| 16 | AudioHardwareStub.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 17 | AudioHardwareInterface.cpp |
| 18 | |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 19 | ifeq ($(ENABLE_AUDIO_DUMP),true) |
| 20 | LOCAL_SRC_FILES += AudioDumpInterface.cpp |
| 21 | LOCAL_CFLAGS += -DENABLE_AUDIO_DUMP |
| 22 | endif |
| 23 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 24 | LOCAL_SHARED_LIBRARIES := \ |
| 25 | libcutils \ |
| 26 | libutils \ |
Mathias Agopian | 25ba5b6 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 27 | libbinder \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 28 | libmedia \ |
| 29 | libhardware_legacy |
| 30 | |
| 31 | ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true) |
| 32 | LOCAL_CFLAGS += -DGENERIC_AUDIO |
| 33 | endif |
| 34 | |
| 35 | LOCAL_MODULE:= libaudiointerface |
| 36 | |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 37 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
| 38 | LOCAL_SRC_FILES += A2dpAudioInterface.cpp |
| 39 | LOCAL_SHARED_LIBRARIES += liba2dp |
| 40 | LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP |
| 41 | LOCAL_C_INCLUDES += $(call include-path-for, bluez) |
| 42 | endif |
| 43 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | include $(BUILD_STATIC_LIBRARY) |
| 45 | |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 46 | |
| 47 | include $(CLEAR_VARS) |
| 48 | |
| 49 | LOCAL_SRC_FILES:= \ |
Eric Laurent | cef3cd7 | 2009-12-10 01:03:50 -0800 | [diff] [blame] | 50 | AudioPolicyManagerBase.cpp |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 51 | |
| 52 | LOCAL_SHARED_LIBRARIES := \ |
| 53 | libcutils \ |
| 54 | libutils \ |
| 55 | libmedia |
| 56 | |
Eric Laurent | 4192cce | 2009-07-24 06:58:44 -0700 | [diff] [blame] | 57 | ifeq ($(TARGET_SIMULATOR),true) |
| 58 | LOCAL_LDLIBS += -ldl |
| 59 | else |
| 60 | LOCAL_SHARED_LIBRARIES += libdl |
| 61 | endif |
| 62 | |
Eric Laurent | cef3cd7 | 2009-12-10 01:03:50 -0800 | [diff] [blame] | 63 | LOCAL_MODULE:= libaudiopolicybase |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 64 | |
| 65 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
| 66 | LOCAL_CFLAGS += -DWITH_A2DP |
| 67 | endif |
| 68 | |
| 69 | ifeq ($(AUDIO_POLICY_TEST),true) |
| 70 | LOCAL_CFLAGS += -DAUDIO_POLICY_TEST |
| 71 | endif |
| 72 | |
Eric Laurent | cef3cd7 | 2009-12-10 01:03:50 -0800 | [diff] [blame] | 73 | include $(BUILD_STATIC_LIBRARY) |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 74 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 75 | include $(CLEAR_VARS) |
| 76 | |
| 77 | LOCAL_SRC_FILES:= \ |
| 78 | AudioFlinger.cpp \ |
| 79 | AudioMixer.cpp.arm \ |
| 80 | AudioResampler.cpp.arm \ |
| 81 | AudioResamplerSinc.cpp.arm \ |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 82 | AudioResamplerCubic.cpp.arm \ |
| 83 | AudioPolicyService.cpp |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 84 | |
| 85 | LOCAL_SHARED_LIBRARIES := \ |
| 86 | libcutils \ |
| 87 | libutils \ |
Mathias Agopian | 25ba5b6 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 88 | libbinder \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 89 | libmedia \ |
Eric Laurent | cef3cd7 | 2009-12-10 01:03:50 -0800 | [diff] [blame] | 90 | libhardware_legacy |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 91 | |
| 92 | ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true) |
Eric Laurent | cef3cd7 | 2009-12-10 01:03:50 -0800 | [diff] [blame] | 93 | LOCAL_STATIC_LIBRARIES += libaudiointerface libaudiopolicybase |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 94 | LOCAL_CFLAGS += -DGENERIC_AUDIO |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 95 | else |
Eric Laurent | a04aaff | 2009-07-25 01:41:52 -0700 | [diff] [blame] | 96 | LOCAL_SHARED_LIBRARIES += libaudio libaudiopolicy |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 97 | endif |
| 98 | |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 99 | ifeq ($(TARGET_SIMULATOR),true) |
| 100 | LOCAL_LDLIBS += -ldl |
| 101 | else |
| 102 | LOCAL_SHARED_LIBRARIES += libdl |
| 103 | endif |
| 104 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 105 | LOCAL_MODULE:= libaudioflinger |
| 106 | |
| 107 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 108 | LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP |
Marco Nelissen | ee028d57 | 2009-07-29 09:47:23 -0700 | [diff] [blame] | 109 | LOCAL_SHARED_LIBRARIES += liba2dp |
Eric Laurent | a553c25 | 2009-07-17 12:17:14 -0700 | [diff] [blame] | 110 | endif |
| 111 | |
| 112 | ifeq ($(AUDIO_POLICY_TEST),true) |
| 113 | LOCAL_CFLAGS += -DAUDIO_POLICY_TEST |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 114 | endif |
| 115 | |
Mathias Agopian | fad6c94 | 2009-07-14 02:08:27 -0700 | [diff] [blame] | 116 | ifeq ($(TARGET_SIMULATOR),true) |
| 117 | ifeq ($(HOST_OS),linux) |
| 118 | LOCAL_LDLIBS += -lrt -lpthread |
| 119 | endif |
| 120 | endif |
| 121 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 122 | include $(BUILD_SHARED_LIBRARY) |