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