1 2 ifneq ($(BUILD_TINY_ANDROID),true) 3 4 LOCAL_PATH := $(call my-dir) 5 6 include $(CLEAR_VARS) 7 8 LOCAL_SRC_FILES:= \ 9 AudioPolicyManager.cpp 10 11 LOCAL_SHARED_LIBRARIES := \ 12 libcutils \ 13 libutils \ 14 libmedia 15 16 LOCAL_STATIC_LIBRARIES := libaudiopolicybase 17 18 LOCAL_MODULE:= libaudiopolicy 19 20 ifeq ($(BOARD_HAVE_BLUETOOTH),true) 21 LOCAL_CFLAGS += -DWITH_A2DP 22 endif 23 24 include $(BUILD_SHARED_LIBRARY) 25 26 27 include $(CLEAR_VARS) 28 29 LOCAL_MODULE := libaudio 30 31 LOCAL_SHARED_LIBRARIES := \ 32 libcutils \ 33 libutils \ 34 libmedia \ 35 libhardware_legacy 36 37 ifeq ($TARGET_OS)-$(TARGET_SIMULATOR),linux-true) 38 LOCAL_LDLIBS += -ldl 39 endif 40 41 ifneq ($(TARGET_SIMULATOR),true) 42 LOCAL_SHARED_LIBRARIES += libdl 43 endif 44 45 LOCAL_SRC_FILES += AudioHardware.cpp 46 47 LOCAL_CFLAGS += -fno-short-enums 48 49 LOCAL_STATIC_LIBRARIES += libaudiointerface 50 ifeq ($(BOARD_HAVE_BLUETOOTH),true) 51 LOCAL_SHARED_LIBRARIES += liba2dp 52 endif 53 54 include $(BUILD_SHARED_LIBRARY) 55 56 endif # not BUILD_TINY_ANDROID 57 58