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