The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_SRC_FILES:= \ |
| 6 | AudioHardwareGeneric.cpp \ |
| 7 | AudioHardwareStub.cpp \ |
| 8 | AudioDumpInterface.cpp \ |
| 9 | AudioHardwareInterface.cpp |
| 10 | |
| 11 | LOCAL_SHARED_LIBRARIES := \ |
| 12 | libcutils \ |
| 13 | libutils \ |
| 14 | libmedia \ |
| 15 | libhardware_legacy |
| 16 | |
| 17 | ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true) |
| 18 | LOCAL_CFLAGS += -DGENERIC_AUDIO |
| 19 | endif |
| 20 | |
| 21 | LOCAL_MODULE:= libaudiointerface |
| 22 | |
| 23 | include $(BUILD_STATIC_LIBRARY) |
| 24 | |
| 25 | include $(CLEAR_VARS) |
| 26 | |
| 27 | LOCAL_SRC_FILES:= \ |
| 28 | AudioFlinger.cpp \ |
| 29 | AudioMixer.cpp.arm \ |
| 30 | AudioResampler.cpp.arm \ |
| 31 | AudioResamplerSinc.cpp.arm \ |
| 32 | AudioResamplerCubic.cpp.arm |
| 33 | |
| 34 | LOCAL_SHARED_LIBRARIES := \ |
| 35 | libcutils \ |
| 36 | libutils \ |
| 37 | libmedia \ |
| 38 | libhardware_legacy |
| 39 | |
| 40 | ifeq ($(strip $(BOARD_USES_GENERIC_AUDIO)),true) |
| 41 | LOCAL_STATIC_LIBRARIES += libaudiointerface |
| 42 | else |
| 43 | LOCAL_SHARED_LIBRARIES += libaudio |
| 44 | endif |
| 45 | |
| 46 | LOCAL_MODULE:= libaudioflinger |
| 47 | |
| 48 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
| 49 | LOCAL_SRC_FILES += A2dpAudioInterface.cpp |
| 50 | LOCAL_SHARED_LIBRARIES += liba2dp |
| 51 | LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP |
| 52 | LOCAL_C_INCLUDES += $(call include-path-for, bluez-libs) |
| 53 | LOCAL_C_INCLUDES += $(call include-path-for, bluez-utils) |
| 54 | endif |
| 55 | |
| 56 | include $(BUILD_SHARED_LIBRARY) |