1 LOCAL_PATH:= $(call my-dir) 2 3 ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) 4 # Any prebuilt files with default TAGS can use the below: 5 6 include $(CLEAR_VARS) 7 #LOCAL_SRC_FILES:= aplay.c alsa_pcm.c alsa_mixer.c 8 LOCAL_SRC_FILES:= aplay.c 9 LOCAL_MODULE:= aplay 10 LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf 11 LOCAL_MODULE_TAGS:= debug 12 include $(BUILD_EXECUTABLE) 13 14 include $(CLEAR_VARS) 15 #LOCAL_SRC_FILES:= arec.c alsa_pcm.c 16 LOCAL_SRC_FILES:= arec.c 17 LOCAL_MODULE:= arec 18 LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf 19 LOCAL_MODULE_TAGS:= debug 20 include $(BUILD_EXECUTABLE) 21 22 include $(CLEAR_VARS) 23 LOCAL_SRC_FILES:= amix.c 24 LOCAL_MODULE:= amix 25 LOCAL_SHARED_LIBRARIES := libc libcutils libalsa-intf 26 LOCAL_MODULE_TAGS:= debug 27 include $(BUILD_EXECUTABLE) 28 29 include $(CLEAR_VARS) 30 LOCAL_SRC_FILES:= alsaucm_test.c 31 LOCAL_MODULE:= alsaucm_test 32 LOCAL_SHARED_LIBRARIES:= libc libcutils libalsa-intf 33 LOCAL_MODULE_TAGS:= debug 34 include $(BUILD_EXECUTABLE) 35 36 include $(CLEAR_VARS) 37 LOCAL_COPY_HEADERS_TO := mm-audio/libalsa-intf 38 LOCAL_COPY_HEADERS := alsa_audio.h 39 LOCAL_COPY_HEADERS += alsa_ucm.h 40 LOCAL_COPY_HEADERS += msm8960_use_cases.h 41 LOCAL_SRC_FILES:= alsa_mixer.c alsa_pcm.c alsa_ucm.c 42 LOCAL_MODULE:= libalsa-intf 43 LOCAL_MODULE_TAGS := optional 44 LOCAL_SHARED_LIBRARIES:= libc libcutils #libutils #libmedia libhardware_legacy 45 LOCAL_CFLAGS := -DQC_PROP -DCONFIG_DIR=\"/system/etc/snd_soc_msm/\" 46 47 ifeq ($(TARGET_SIMULATOR),true) 48 LOCAL_LDLIBS += -ldl 49 else 50 LOCAL_SHARED_LIBRARIES += libdl 51 endif 52 LOCAL_PRELINK_MODULE := false 53 include $(BUILD_SHARED_LIBRARY) 54 endif 55